aboutsummaryrefslogtreecommitdiff
path: root/lib/streamreader.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/streamreader.h')
-rw-r--r--lib/streamreader.h14
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;
};