src/network/access/qnetworkaccessmanager_p.h
changeset 30 5dc02b23752f
parent 18 2f34d5167611
--- a/src/network/access/qnetworkaccessmanager_p.h	Wed Jun 23 19:07:03 2010 +0300
+++ b/src/network/access/qnetworkaccessmanager_p.h	Tue Jul 06 15:10:48 2010 +0300
@@ -58,6 +58,7 @@
 #include "qnetworkaccessbackend_p.h"
 #include "private/qobject_p.h"
 #include "QtNetwork/qnetworkproxy.h"
+#include "QtNetwork/qnetworksession.h"
 
 QT_BEGIN_NAMESPACE
 
@@ -74,6 +75,12 @@
 #ifndef QT_NO_NETWORKPROXY
           proxyFactory(0),
 #endif
+#ifndef QT_NO_BEARERMANAGEMENT
+          networkSession(0),
+          networkAccessible(QNetworkAccessManager::Accessible),
+          online(false),
+          initializeSession(true),
+#endif
           cookieJarCreated(false)
     { }
     ~QNetworkAccessManagerPrivate();
@@ -99,6 +106,16 @@
 
     QNetworkAccessBackend *findBackend(QNetworkAccessManager::Operation op, const QNetworkRequest &request);
 
+#ifndef QT_NO_BEARERMANAGEMENT
+    void createSession(const QNetworkConfiguration &config);
+
+    void _q_networkSessionClosed();
+    void _q_networkSessionNewConfigurationActivated();
+    void _q_networkSessionPreferredConfigurationChanged(const QNetworkConfiguration &config,
+                                                        bool isSeamless);
+    void _q_networkSessionStateChanged(QNetworkSession::State state);
+#endif
+
     // this is the cache for storing downloaded files
     QAbstractNetworkCache *networkCache;
 
@@ -110,9 +127,16 @@
     QNetworkProxyFactory *proxyFactory;
 #endif
 
+#ifndef QT_NO_BEARERMANAGEMENT
+    QNetworkSession *networkSession;
+    QString networkConfiguration;
+    QNetworkAccessManager::NetworkAccessibility networkAccessible;
+    bool online;
+    bool initializeSession;
+#endif
+
     bool cookieJarCreated;
 
-
     // 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;