summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/httpget.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-06-02 19:29:54 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-06-02 19:29:54 +0000
commit44bc9157ee5437bd36abbbe483e1e0e81c15b839 (patch)
tree4ec76f6d87e363c89a3a6cb689f8b15b3861baac /rbutil/rbutilqt/httpget.h
parent758072173ec6e3551c451f55b744d38e87b7a9dd (diff)
downloadrockbox-44bc9157ee5437bd36abbbe483e1e0e81c15b839.tar.gz
rockbox-44bc9157ee5437bd36abbbe483e1e0e81c15b839.zip
Extend http class to allow retrieving of the server timestamp once a file has been downloaded.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17680 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/httpget.h')
-rw-r--r--rbutil/rbutilqt/httpget.h5
1 files changed, 4 insertions, 1 deletions
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