44 #include <QThreadStorage> 46 #ifndef QT_NO_BEARERMANAGEMENT 95 #endif // QT_NO_BEARERMANAGEMENT
BearerType bearerType() const
Returns the type of bearer used by this network configuration.
QHash< QNetworkConfiguration, QWeakPointer< QNetworkSession > > sessions
QSharedPointer< T > toStrongRef() const
Promotes this weak reference to a strong one and returns a QSharedPointer object holding that referen...
#define QT_END_NAMESPACE
This macro expands to.
Purpose purpose() const
Returns the purpose of this configuration.
The QObject class is the base class of all Qt objects.
bool contains(const Key &key) const
Returns true if the hash contains an item with the key; otherwise returns false.
const T value(const Key &key) const
Returns the value associated with the key.
The QNetworkConfiguration class provides an abstraction of one or more access point configurations...
#define QT_BEGIN_NAMESPACE
This macro expands to.
T & localData()
Returns a reference to the data that was set by the calling thread.
static void doDeleteLater(QObject *obj)
QSharedNetworkSessionManager * sharedNetworkSessionManager()
static void setSession(QNetworkConfiguration config, QSharedPointer< QNetworkSession > session)
void setLocalData(T t)
Sets the local data for the calling thread to data.
QNetworkSession(const QNetworkConfiguration &connConfig, QObject *parent=0)
Constructs a session based on connectionConfig with the given parent.
static QSharedPointer< QNetworkSession > getSession(QNetworkConfiguration config)
bool isNull() const
Returns true if this object is holding a reference to a null pointer.
The QThreadStorage class provides per-thread data storage.
void deleteLater()
Schedules this object for deletion.
uint qHash(const QNetworkConfiguration &config)
QThreadStorage< QSharedNetworkSessionManager * > tls
Type type() const
Returns the type of the configuration.