Qt 4.8
Functions | Variables
qsharednetworksession.cpp File Reference
#include "qsharednetworksession_p.h"
#include "qbearerengine_p.h"
#include <QThreadStorage>

Go to the source code of this file.

Functions

static void doDeleteLater (QObject *obj)
 
uint qHash (const QNetworkConfiguration &config)
 
QSharedNetworkSessionManagersharedNetworkSessionManager ()
 

Variables

QThreadStorage< QSharedNetworkSessionManager * > tls
 

Function Documentation

◆ doDeleteLater()

static void doDeleteLater ( QObject obj)
static

Definition at line 62 of file qsharednetworksession.cpp.

Referenced by QSharedNetworkSessionManager::getSession().

63 {
64  obj->deleteLater();
65 }
void deleteLater()
Schedules this object for deletion.
Definition: qobject.cpp:2145

◆ qHash()

uint qHash ( const QNetworkConfiguration config)

Definition at line 88 of file qsharednetworksession.cpp.

89 {
90  return ((uint)config.type()) | (((uint)config.bearerType()) << 8) | (((uint)config.purpose()) << 16);
91 }
BearerType bearerType() const
Returns the type of bearer used by this network configuration.
Purpose purpose() const
Returns the purpose of this configuration.
unsigned int uint
Definition: qglobal.h:996
Type type() const
Returns the type of the configuration.

◆ sharedNetworkSessionManager()

QSharedNetworkSessionManager* sharedNetworkSessionManager ( )
inline

Definition at line 52 of file qsharednetworksession.cpp.

Referenced by QSharedNetworkSessionManager::getSession(), and QSharedNetworkSessionManager::setSession().

53 {
54  QSharedNetworkSessionManager* rv = tls.localData();
55  if (!rv) {
57  tls.setLocalData(rv);
58  }
59  return rv;
60 }
QThreadStorage< QSharedNetworkSessionManager * > tls

Variable Documentation

◆ tls