From 246adbc50e73574d9f188b33fff1f5b35b743829 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 25 Feb 2010 15:41:01 +0000 Subject: 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 --- src/plugins/General/scrobbler/scrobbler.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/plugins/General/scrobbler/scrobbler.h') 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 -- cgit v1.2.3-13-gbd6f