- Torrents can now be rechecked from Web UI (patch by Stephanos Antaris)

- Torrents paused/resumed state is not reflected in GUI if the action was executed from Web UI
This commit is contained in:
Christophe Dumez
2009-11-17 08:15:26 +00:00
parent e30268cf3b
commit 4e8eaafd53
13 changed files with 77 additions and 49 deletions

View File

@@ -38,6 +38,7 @@
class QTcpSocket;
class HttpServer;
class bittorrent;
class HttpConnection : public QObject
{
@@ -45,6 +46,7 @@ class HttpConnection : public QObject
private:
QTcpSocket *socket;
HttpServer *parent;
bittorrent *BTSession;
protected:
HttpRequestParser parser;
@@ -58,9 +60,11 @@ class HttpConnection : public QObject
void respondNotFound();
void processDownloadedFile(QString, QString);
void handleDownloadFailure(QString, QString);
void recheckTorrent(QString hash);
void recheckAllTorrents();
public:
HttpConnection(QTcpSocket *socket, HttpServer *parent);
HttpConnection(QTcpSocket *socket, bittorrent* BTSession, HttpServer *parent);
~HttpConnection();
private slots: