mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 20:58:07 -06:00
Further rewriting of the JSON-related code
This commit is contained in:
@@ -64,12 +64,10 @@ public:
|
||||
bool isAuthorized(const QByteArray& auth, const QString& method) const;
|
||||
void setlocalAuthEnabled(bool enabled);
|
||||
bool isLocalAuthEnabled() const;
|
||||
EventManager *eventManager() const;
|
||||
QString generateNonce() const;
|
||||
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,7 +79,6 @@ private:
|
||||
|
||||
private slots:
|
||||
void UnbanTimerEvent();
|
||||
void onLocaleChanged(const QString &locale);
|
||||
|
||||
private:
|
||||
void handleNewConnection(QTcpSocket *socket);
|
||||
@@ -89,10 +86,8 @@ private:
|
||||
private:
|
||||
QByteArray m_username;
|
||||
QByteArray m_passwordSha1;
|
||||
EventManager *m_eventManager; // TODO: Remove
|
||||
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