mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 06:02:29 -06:00
Web UI improvements
- Optimize translation code - Cosmetic fixes to dialogs - Display qBittorrent version in about dialog
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user