mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 04:38:04 -06:00
Web UI code optimization
This commit is contained in:
@@ -69,6 +69,7 @@ public:
|
||||
int NbFailedAttemptsForIp(const QString& ip) const;
|
||||
void increaseNbFailedAttemptsForIp(const QString& ip);
|
||||
void resetNbFailedAttemptsForIp(const QString& ip);
|
||||
bool isTranslationNeeded();
|
||||
|
||||
#ifndef QT_NO_OPENSSL
|
||||
void enableHttps(const QSslCertificate &certificate, const QSslKey &key);
|
||||
@@ -81,6 +82,7 @@ private:
|
||||
private slots:
|
||||
void onTimer();
|
||||
void UnbanTimerEvent();
|
||||
void onLocaleChanged(const QString &locale);
|
||||
|
||||
private:
|
||||
void handleNewConnection(QTcpSocket *socket);
|
||||
@@ -92,6 +94,7 @@ private:
|
||||
QTimer m_timer;
|
||||
QHash<QString, int> m_clientFailedAttempts;
|
||||
bool m_localAuthEnabled;
|
||||
bool m_needsTranslation;
|
||||
#ifndef QT_NO_OPENSSL
|
||||
bool m_https;
|
||||
QSslCertificate m_certificate;
|
||||
|
||||
Reference in New Issue
Block a user