diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-02-24 22:27:54 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-02-24 22:27:54 +0000 |
| commit | e6ab2fde7478b885f6bf27930295eaef52222f77 (patch) | |
| tree | d06e268bb8ba82396a3db4cdc50b4f41a27fee67 /src/plugins/General/scrobbler/scrobbler.h | |
| parent | 4d1e1bf286bb06f40f77e0466fa29b179ee0718a (diff) | |
| download | qmmp-e6ab2fde7478b885f6bf27930295eaef52222f77.tar.gz qmmp-e6ab2fde7478b885f6bf27930295eaef52222f77.tar.bz2 qmmp-e6ab2fde7478b885f6bf27930295eaef52222f77.zip | |
scrobbler: removed deprecated QHttp class
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1580 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/scrobbler/scrobbler.h')
| -rw-r--r-- | src/plugins/General/scrobbler/scrobbler.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/plugins/General/scrobbler/scrobbler.h b/src/plugins/General/scrobbler/scrobbler.h index b7f25849f..bf2005ac4 100644 --- a/src/plugins/General/scrobbler/scrobbler.h +++ b/src/plugins/General/scrobbler/scrobbler.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2009 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -20,11 +20,11 @@ #ifndef SCROBBLER_H #define SCROBBLER_H -#include <QHttpResponseHeader> #include <QMap> #include <qmmp/qmmp.h> -class QHttp; +class QNetworkAccessManager; +class QNetworkReply; class QTime; class SoundCore; @@ -77,8 +77,7 @@ public: private slots: void setState(Qmmp::State state); void updateMetaData(); - void processResponse(int, bool); - void readResponse(const QHttpResponseHeader&); + void processResponse(QNetworkReply *reply); private: void handshake(); @@ -87,7 +86,7 @@ private: bool isReady(); uint m_start_ts; SongInfo m_song; - QHttp *m_http; + QNetworkAccessManager *m_http; Qmmp::State m_state; SoundCore *m_core; QString m_login; @@ -96,15 +95,14 @@ private: QString m_nowPlayingUrl; QString m_session; QList <SongInfo> m_songCache; + QByteArray m_ua; QTime* m_time; int m_submitedSongs; - int m_handshakeid; - int m_submitid; - int m_notificationid; - QByteArray m_array; + QNetworkReply *m_handshakeReply; + QNetworkReply *m_submitReply; + QNetworkReply *m_notificationReply; bool m_disabled; QString m_server, m_name; - }; #endif |
