diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-04-15 16:38:41 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-04-15 16:38:41 +0000 |
| commit | 9e6a394052c7fe6846fb5d786d19164c5b877351 (patch) | |
| tree | afdb0df1d9c1ad64d603dd423925e56629544811 /src | |
| parent | ce2f45704a771a84e7c3411255d5d5942a95e4f6 (diff) | |
| download | qmmp-9e6a394052c7fe6846fb5d786d19164c5b877351.tar.gz qmmp-9e6a394052c7fe6846fb5d786d19164c5b877351.tar.bz2 qmmp-9e6a394052c7fe6846fb5d786d19164c5b877351.zip | |
scrobbler: proxy support
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@343 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/General/scrobbler/scrobbler.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/plugins/General/scrobbler/scrobbler.cpp b/src/plugins/General/scrobbler/scrobbler.cpp index 7713161b7..7236bef88 100644 --- a/src/plugins/General/scrobbler/scrobbler.cpp +++ b/src/plugins/General/scrobbler/scrobbler.cpp @@ -45,6 +45,20 @@ Scrobbler::Scrobbler(QObject *parent) m_login = settings.value("login").toString(); m_passw = settings.value("password").toString(); settings.endGroup(); + //use global proxy settings + if (settings.value ("Proxy/use_proxy", FALSE).toBool()) + { + + if (settings.value ("Proxy/authentication", FALSE).toBool()) + m_http->setProxy(settings.value("Proxy/host").toString(), + settings.value("Proxy/port").toInt(), + settings.value("Proxy/user").toString(), + settings.value("Proxy/passw").toString()); + else + m_http->setProxy(settings.value("Proxy/host").toString(), + settings.value("Proxy/port").toInt()); + } + m_disabled = m_login.isEmpty() || m_passw.isEmpty(); m_passw = QString(QCryptographicHash::hash(m_passw.toAscii(), QCryptographicHash::Md5).toHex()); connect(m_http, SIGNAL(requestFinished (int, bool)), SLOT(processResponse(int, bool))); @@ -56,7 +70,6 @@ Scrobbler::Scrobbler(QObject *parent) m_submitid = 0; if (!m_disabled) handshake(); - //TODO proxy support } |
