From ed3828f0df1bcef66b036ce1831a0aed87ed5482 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 21 Aug 2007 19:13:47 +0000 Subject: added shoutcast title update git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@119 90c681e8-e032-0410-971d-27865f9a5e38 --- lib/streamreader.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'lib/streamreader.h') 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 #include #include + #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; }; -- cgit v1.2.3-13-gbd6f