diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-01-22 22:07:03 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-01-22 22:07:03 +0000 |
| commit | 68bb7c9621bc02451f968a3d389a2f6ff2daddfb (patch) | |
| tree | 8dfba6ba7b131b0c93756bbe3ef2af89edacbdee /src/plugins/General/scrobbler | |
| parent | ae5f1ffdb2490ec942346fd9509744292f6de21a (diff) | |
| download | qmmp-68bb7c9621bc02451f968a3d389a2f6ff2daddfb.tar.gz qmmp-68bb7c9621bc02451f968a3d389a2f6ff2daddfb.tar.bz2 qmmp-68bb7c9621bc02451f968a3d389a2f6ff2daddfb.zip | |
added special class for settings
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1523 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/scrobbler')
| -rw-r--r-- | src/plugins/General/scrobbler/scrobbler.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/plugins/General/scrobbler/scrobbler.cpp b/src/plugins/General/scrobbler/scrobbler.cpp index c263ba8b9..5d6b38f76 100644 --- a/src/plugins/General/scrobbler/scrobbler.cpp +++ b/src/plugins/General/scrobbler/scrobbler.cpp @@ -27,6 +27,7 @@ #include <QDateTime> #include <QDir> #include <qmmp/soundcore.h> +#include <qmmp/qmmpsettings.h> #include <qmmp/qmmp.h> #include "scrobbler.h" @@ -51,11 +52,12 @@ Scrobbler::Scrobbler(const QString &url, m_server = url; m_name = name; //load global proxy settings - if (Qmmp::useProxy()) - m_http->setProxy(Qmmp::proxy().host(), - Qmmp::proxy().port(), - Qmmp::useProxyAuth() ? Qmmp::proxy().userName() : QString(), - Qmmp::useProxyAuth() ? Qmmp::proxy().password() : QString()); + QmmpSettings *gs = QmmpSettings::instance(); //TODO use QmmpSettings::networkSettingsChanged() + if (gs->isProxyEnabled()) + m_http->setProxy(gs->proxy().host(), + gs->proxy().port(), + gs->useProxyAuth() ? gs->proxy().userName() : QString(), + gs->useProxyAuth() ? gs->proxy().password() : QString()); m_disabled = m_login.isEmpty() || m_passw.isEmpty(); m_passw = QString(QCryptographicHash::hash(m_passw.toAscii(), QCryptographicHash::Md5).toHex()); |
