diff options
Diffstat (limited to 'rbutil/rbutilqt/httpget.h')
-rw-r--r-- | rbutil/rbutilqt/httpget.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/httpget.h b/rbutil/rbutilqt/httpget.h index 86eddf9df6..4a3d811e05 100644 --- a/rbutil/rbutilqt/httpget.h +++ b/rbutil/rbutilqt/httpget.h | |||
@@ -21,8 +21,8 @@ | |||
21 | #ifndef HTTPGET_H | 21 | #ifndef HTTPGET_H |
22 | #define HTTPGET_H | 22 | #define HTTPGET_H |
23 | 23 | ||
24 | #include <QFile> | 24 | #include <QtCore> |
25 | #include <QHttp> | 25 | #include <QtNetwork> |
26 | 26 | ||
27 | class QUrl; | 27 | class QUrl; |
28 | 28 | ||
@@ -38,8 +38,11 @@ class HttpGet : public QObject | |||
38 | QHttp::Error error(void); | 38 | QHttp::Error error(void); |
39 | QString errorString(void); | 39 | QString errorString(void); |
40 | void setFile(QFile*); | 40 | void setFile(QFile*); |
41 | void setCache(QDir); | ||
42 | void setCache(bool); | ||
41 | int httpResponse(void); | 43 | int httpResponse(void); |
42 | QByteArray readAll(void); | 44 | QByteArray readAll(void); |
45 | bool isCached() { return cached; } | ||
43 | 46 | ||
44 | public slots: | 47 | public slots: |
45 | void abort(void); | 48 | void abort(void); |
@@ -65,6 +68,10 @@ class HttpGet : public QObject | |||
65 | QByteArray dataBuffer; | 68 | QByteArray dataBuffer; |
66 | bool outputToBuffer; | 69 | bool outputToBuffer; |
67 | QString query; | 70 | QString query; |
71 | bool m_usecache; | ||
72 | QDir m_cachedir; | ||
73 | QString cachefile; | ||
74 | bool cached; | ||
68 | }; | 75 | }; |
69 | 76 | ||
70 | #endif | 77 | #endif |