Web UI improvements

- Optimize translation code
- Cosmetic fixes to dialogs
- Display qBittorrent version in about dialog
This commit is contained in:
Christophe Dumez
2011-09-24 21:37:34 +03:00
parent b298f9a06e
commit 246903fa0a
11 changed files with 72 additions and 432 deletions

View File

@@ -47,13 +47,10 @@ class HttpConnection : public QObject
Q_OBJECT
Q_DISABLE_COPY(HttpConnection)
private:
QTcpSocket *socket;
HttpServer *httpserver;
protected:
HttpRequestParser parser;
HttpResponseGenerator generator;
public:
HttpConnection(QTcpSocket *socket, HttpServer *httpserver);
~HttpConnection();
void translateDocument(QString& data);
protected slots:
void write();
@@ -73,12 +70,6 @@ protected slots:
void decreaseTorrentsPriority(const QStringList& hashes);
void increaseTorrentsPriority(const QStringList& hashes);
public:
HttpConnection(QTcpSocket *socket, HttpServer *httpserver);
~HttpConnection();
QString translateDocument(QString data);
private slots:
void read();
@@ -93,6 +84,15 @@ signals:
void decreasePrioTorrent(QString hash);
void resumeAllTorrents();
void pauseAllTorrents();
private:
QTcpSocket *socket;
HttpServer *httpserver;
private:
HttpRequestParser parser;
HttpResponseGenerator generator;
bool m_needsTranslation;
};
#endif