From 6eead162266621160c78c0b06b904cc5955c29af Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 17 Jul 2007 11:11:31 +0000 Subject: added contentType() function for StreamReader class git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@27 90c681e8-e032-0410-971d-27865f9a5e38 --- lib/streamreader.h | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'lib/streamreader.h') diff --git a/lib/streamreader.h b/lib/streamreader.h index f8bcc753c..a469932b7 100644 --- a/lib/streamreader.h +++ b/lib/streamreader.h @@ -23,9 +23,9 @@ #include #include #include +#include #define BUFFER_SIZE 524288 -class QUrl; class QFileInfo; /** @@ -39,6 +39,9 @@ public: ~StreamReader(); + /** + * QIODevice API + */ bool atEnd () const; qint64 bytesAvailable () const; qint64 bytesToWrite () const; @@ -53,6 +56,11 @@ public: bool waitForBytesWritten ( int msecs ); bool waitForReadyRead ( int msecs ); + /** + * returns content type of a stream + */ + const QString &contentType(); + protected: qint64 readData(char*, qint64); qint64 writeData(const char*, qint64); @@ -67,11 +75,13 @@ private slots: private: void fillBuffer(); - QString m_name; - QHttp *http; - bool httpRequestAborted; - int httpGetId; - bool f; + QUrl m_url; + QHttp* m_http; + bool m_httpRequestAborted; + int m_httpGetId; + int m_pos; + int m_size; + QString m_contentType; }; #endif -- cgit v1.2.3-13-gbd6f