1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-02 09:55:55 +00:00

Web UI code clean up

This commit is contained in:
Christophe Dumez 2011-09-25 11:50:58 +03:00
parent 28d1671bb8
commit 1038376cdb
2 changed files with 4 additions and 4 deletions

View File

@ -96,7 +96,7 @@ HttpServer::HttpServer(int msec, QObject* parent) : QTcpServer(parent),
m_username = pref.getWebUiUsername().toLocal8Bit(); m_username = pref.getWebUiUsername().toLocal8Bit();
m_passwordSha1 = pref.getWebUiPassword().toLocal8Bit(); m_passwordSha1 = pref.getWebUiPassword().toLocal8Bit();
m_localAuth = pref.isWebUiLocalAuthEnabled(); m_localAuthEnabled = pref.isWebUiLocalAuthEnabled();
// HTTPS-related // HTTPS-related
#ifndef QT_NO_OPENSSL #ifndef QT_NO_OPENSSL
@ -331,9 +331,9 @@ EventManager* HttpServer::eventManager() const {
} }
void HttpServer::setlocalAuthEnabled(bool enabled) { void HttpServer::setlocalAuthEnabled(bool enabled) {
m_localAuth = enabled; m_localAuthEnabled = enabled;
} }
bool HttpServer::isLocalAuthEnabled() const { bool HttpServer::isLocalAuthEnabled() const {
return m_localAuth; return m_localAuthEnabled;
} }

View File

@ -91,7 +91,7 @@ private:
EventManager *m_eventManager; EventManager *m_eventManager;
QTimer m_timer; QTimer m_timer;
QHash<QString, int> m_clientFailedAttempts; QHash<QString, int> m_clientFailedAttempts;
bool m_localAuth; bool m_localAuthEnabled;
#ifndef QT_NO_OPENSSL #ifndef QT_NO_OPENSSL
bool m_https; bool m_https;
QSslCertificate m_certificate; QSslCertificate m_certificate;