Qt 4.8
Classes | Functions
qnetworksession_impl.cpp File Reference
#include "qnetworksession_impl.h"
#include "qbearerengine_impl.h"
#include <QtNetwork/qnetworksession.h>
#include <QtNetwork/private/qnetworkconfigmanager_p.h>
#include <QtCore/qdatetime.h>
#include <QtCore/qdebug.h>
#include <QtCore/qmutex.h>
#include <QtCore/qstringlist.h>
#include "qnetworksession_impl.moc"

Go to the source code of this file.

Classes

class  QNetworkSessionManagerPrivate
 

Functions

static QBearerEngineImplgetEngineFromId (const QString &id)
 
 Q_GLOBAL_STATIC (QNetworkSessionManagerPrivate, sessionManager)
 

Function Documentation

◆ getEngineFromId()

static QBearerEngineImpl* getEngineFromId ( const QString id)
static

Definition at line 57 of file qnetworksession_impl.cpp.

Referenced by QNetworkSessionManagerPrivate::forceSessionClose().

58 {
60 
61  foreach (QBearerEngine *engine, priv->engines()) {
62  QBearerEngineImpl *engineImpl = qobject_cast<QBearerEngineImpl *>(engine);
63  if (engineImpl && engineImpl->hasIdentifier(id))
64  return engineImpl;
65  }
66 
67  return 0;
68 }
T * qobject_cast(QObject *object)
Definition: qobject.h:375
QNetworkConfigurationManagerPrivate * qNetworkConfigurationManagerPrivate()
virtual bool hasIdentifier(const QString &id)=0
static const QMetaObjectPrivate * priv(const uint *data)
QList< QBearerEngine * > engines() const

◆ Q_GLOBAL_STATIC()

Q_GLOBAL_STATIC ( QNetworkSessionManagerPrivate  ,
sessionManager   
)