aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/scrobbler/scrobbler.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-02-25 15:41:01 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-02-25 15:41:01 +0000
commit246adbc50e73574d9f188b33fff1f5b35b743829 (patch)
treeedbcbeb7ccbed1762905b33b228214471084f388 /src/plugins/General/scrobbler/scrobbler.h
parente6ab2fde7478b885f6bf27930295eaef52222f77 (diff)
downloadqmmp-246adbc50e73574d9f188b33fff1f5b35b743829.tar.gz
qmmp-246adbc50e73574d9f188b33fff1f5b35b743829.tar.bz2
qmmp-246adbc50e73574d9f188b33fff1f5b35b743829.zip
scrobbler: added hard failure handling
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1581 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/scrobbler/scrobbler.h')
-rw-r--r--src/plugins/General/scrobbler/scrobbler.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/General/scrobbler/scrobbler.h b/src/plugins/General/scrobbler/scrobbler.h
index bf2005ac4..44c5592ce 100644
--- a/src/plugins/General/scrobbler/scrobbler.h
+++ b/src/plugins/General/scrobbler/scrobbler.h
@@ -26,6 +26,7 @@
class QNetworkAccessManager;
class QNetworkReply;
class QTime;
+class QTimer;
class SoundCore;
/**
@@ -78,9 +79,10 @@ private slots:
void setState(Qmmp::State state);
void updateMetaData();
void processResponse(QNetworkReply *reply);
+ void setupProxy();
+ void handshake();
private:
- void handshake();
void submit();
void sendNotification(const SongInfo &info);
bool isReady();
@@ -98,11 +100,14 @@ private:
QByteArray m_ua;
QTime* m_time;
int m_submitedSongs;
+ int m_failure_count;
+ int m_handshake_count;
QNetworkReply *m_handshakeReply;
QNetworkReply *m_submitReply;
QNetworkReply *m_notificationReply;
bool m_disabled;
QString m_server, m_name;
+ QTimer *m_timer;
};
#endif