diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-08-21 19:13:47 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-08-21 19:13:47 +0000 |
| commit | ed3828f0df1bcef66b036ce1831a0aed87ed5482 (patch) | |
| tree | 33c21269d4c2556c67a7db22b71c55cb604950db /lib/streamreader.h | |
| parent | f19a1f3ea9aa8080b15b384bbe73896e4407ac41 (diff) | |
| download | qmmp-ed3828f0df1bcef66b036ce1831a0aed87ed5482.tar.gz qmmp-ed3828f0df1bcef66b036ce1831a0aed87ed5482.tar.bz2 qmmp-ed3828f0df1bcef66b036ce1831a0aed87ed5482.zip | |
added shoutcast title update
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@119 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'lib/streamreader.h')
| -rw-r--r-- | lib/streamreader.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/streamreader.h b/lib/streamreader.h index 9b0af5df7..906ddd2ac 100644 --- a/lib/streamreader.h +++ b/lib/streamreader.h @@ -23,6 +23,7 @@ #include <QObject> #include <QIODevice> #include <QUrl> + #define BUFFER_SIZE 524288 class QFileInfo; @@ -62,24 +63,21 @@ public: */ const QString &contentType(); +signals: + void titleChanged(const QString&); + protected: qint64 readData(char*, qint64); qint64 writeData(const char*, qint64); private slots: - void downloadFile(); - void cancelDownload(); - void httpRequestFinished(int, bool); - void updateDataReadProgress(int bytesRead, int totalBytes); + void updateTitle(); private: + void downloadFile(); void fillBuffer(); QUrl m_url; - bool m_httpRequestAborted; - int m_httpGetId; - int m_pos; - int m_size; QString m_contentType; Downloader *m_downloader; }; |
