diff options
Diffstat (limited to 'rbutil')
-rw-r--r-- | rbutil/rbutilqt/httpget.cpp | 3 | ||||
-rw-r--r-- | rbutil/rbutilqt/httpget.h | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/httpget.cpp b/rbutil/rbutilqt/httpget.cpp index a1385c5755..488155610d 100644 --- a/rbutil/rbutilqt/httpget.cpp +++ b/rbutil/rbutilqt/httpget.cpp | |||
@@ -45,6 +45,9 @@ HttpGet::HttpGet(QObject *parent) | |||
45 | setProxy(m_globalProxy); | 45 | setProxy(m_globalProxy); |
46 | m_usecache = false; | 46 | m_usecache = false; |
47 | m_cachedir = m_globalCache; | 47 | m_cachedir = m_globalCache; |
48 | |||
49 | m_serverTimestamp = QDateTime(); | ||
50 | |||
48 | connect(&http, SIGNAL(done(bool)), this, SLOT(httpDone(bool))); | 51 | connect(&http, SIGNAL(done(bool)), this, SLOT(httpDone(bool))); |
49 | connect(&http, SIGNAL(dataReadProgress(int, int)), this, SLOT(httpProgress(int, int))); | 52 | connect(&http, SIGNAL(dataReadProgress(int, int)), this, SLOT(httpProgress(int, int))); |
50 | connect(&http, SIGNAL(requestFinished(int, bool)), this, SLOT(httpFinished(int, bool))); | 53 | connect(&http, SIGNAL(requestFinished(int, bool)), this, SLOT(httpFinished(int, bool))); |
diff --git a/rbutil/rbutilqt/httpget.h b/rbutil/rbutilqt/httpget.h index 2b3faf18cb..c8d7269fd6 100644 --- a/rbutil/rbutilqt/httpget.h +++ b/rbutil/rbutilqt/httpget.h | |||
@@ -43,7 +43,10 @@ class HttpGet : public QObject | |||
43 | void setCache(bool); | 43 | void setCache(bool); |
44 | int httpResponse(void); | 44 | int httpResponse(void); |
45 | QByteArray readAll(void); | 45 | QByteArray readAll(void); |
46 | bool isCached() { return m_cached; } | 46 | bool isCached() |
47 | { return m_cached; } | ||
48 | QDateTime timestamp(void) | ||
49 | { return m_serverTimestamp; } | ||
47 | void setDumbCache(bool b) //< disable checking of http header timestamp for caching | 50 | void setDumbCache(bool b) //< disable checking of http header timestamp for caching |
48 | { m_dumbCache = b; } | 51 | { m_dumbCache = b; } |
49 | static void setGlobalCache(const QDir d) //< set global cache path | 52 | static void setGlobalCache(const QDir d) //< set global cache path |