summaryrefslogtreecommitdiffstats
path: root/src/network/access/qnetworkaccessmanager_p.h
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-06-17 15:01:45 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-06-17 15:17:49 (GMT)
commit652b2ca3379715f757776654b406c1ac08573f22 (patch)
tree3be7c3c6be00992d60a7aa448e643f20914392db /src/network/access/qnetworkaccessmanager_p.h
parent38ef45edb1955b07c537be37bc4283749d8f28b2 (diff)
downloadQt-652b2ca3379715f757776654b406c1ac08573f22.zip
Qt-652b2ca3379715f757776654b406c1ac08573f22.tar.gz
Qt-652b2ca3379715f757776654b406c1ac08573f22.tar.bz2
QNAM: More comments, some renamings
Renamed some classes and member variables. Their names were causing confusion before because. Reviewed-by: Peter Hartmann
Diffstat (limited to 'src/network/access/qnetworkaccessmanager_p.h')
-rw-r--r--src/network/access/qnetworkaccessmanager_p.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/network/access/qnetworkaccessmanager_p.h b/src/network/access/qnetworkaccessmanager_p.h
index c80613b..bcf9a2b 100644
--- a/src/network/access/qnetworkaccessmanager_p.h
+++ b/src/network/access/qnetworkaccessmanager_p.h
@@ -98,10 +98,12 @@ public:
QNetworkAccessBackend *findBackend(QNetworkAccessManager::Operation op, const QNetworkRequest &request);
+ // this is the cache for storing downloaded files
QAbstractNetworkCache *networkCache;
+
QNetworkCookieJar *cookieJar;
- QNetworkAccessCache cache;
+
#ifndef QT_NO_NETWORKPROXY
QNetworkProxy proxy;
QNetworkProxyFactory *proxyFactory;
@@ -109,8 +111,12 @@ public:
bool cookieJarCreated;
- static inline QNetworkAccessCache *getCache(QNetworkAccessBackend *backend)
- { return &backend->manager->cache; }
+
+ // this cache can be used by individual backends to cache e.g. their TCP connections to a server
+ // and use the connections for multiple requests.
+ QNetworkAccessCache objectCache;
+ static inline QNetworkAccessCache *getObjectCache(QNetworkAccessBackend *backend)
+ { return &backend->manager->objectCache; }
Q_AUTOTEST_EXPORT static void clearCache(QNetworkAccessManager *manager);
Q_DECLARE_PUBLIC(QNetworkAccessManager)