|
|
@ -76,6 +76,7 @@ void HttpServer::newHttpConnection() |
|
|
|
|
|
|
|
|
|
|
|
void HttpServer::onTimer() |
|
|
|
void HttpServer::onTimer() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
qDebug("EventManager Timer Start"); |
|
|
|
QStringList list = BTSession->getUnfinishedTorrents(); |
|
|
|
QStringList list = BTSession->getUnfinishedTorrents(); |
|
|
|
foreach(QString hash, list) { |
|
|
|
foreach(QString hash, list) { |
|
|
|
QTorrentHandle h = BTSession->getTorrentHandle(hash); |
|
|
|
QTorrentHandle h = BTSession->getTorrentHandle(hash); |
|
|
@ -86,6 +87,7 @@ void HttpServer::onTimer() |
|
|
|
QTorrentHandle h = BTSession->getTorrentHandle(hash); |
|
|
|
QTorrentHandle h = BTSession->getTorrentHandle(hash); |
|
|
|
if(h.is_valid()) manager->modifiedTorrent(h); |
|
|
|
if(h.is_valid()) manager->modifiedTorrent(h); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
qDebug("EventManager Timer Stop"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void HttpServer::setAuthorization(QString username, QString password) |
|
|
|
void HttpServer::setAuthorization(QString username, QString password) |
|
|
|