Qt 4.8
Signals | Public Functions | Protected Variables | Friends | List of all members
QBearerEngine Class Referenceabstract

#include <qbearerengine_p.h>

Inheritance diagram for QBearerEngine:
QObject QBearerEngineImpl QIcdEngine QBBEngine QConnmanEngine QCoreWlanEngine QGenericEngine QNativeWifiEngine QNetworkManagerEngine QNlaEngine

Signals

void configurationAdded (QNetworkConfigurationPrivatePointer config)
 
void configurationChanged (QNetworkConfigurationPrivatePointer config)
 
void configurationRemoved (QNetworkConfigurationPrivatePointer config)
 
void updateCompleted ()
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 This signal is emitted immediately before the object obj is destroyed, and can not be blocked. More...
 

Public Functions

virtual QNetworkConfigurationManager::Capabilities capabilities () const =0
 
bool configurationsInUse () const
 
virtual QNetworkSessionPrivatecreateSessionBackend ()=0
 
virtual QNetworkConfigurationPrivatePointer defaultConfiguration ()=0
 
virtual bool hasIdentifier (const QString &id)=0
 
 QBearerEngine (QObject *parent=0)
 
virtual bool requiresPolling () const
 
virtual ~QBearerEngine ()
 
- Public Functions inherited from QObject
bool blockSignals (bool b)
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). More...
 
const QObjectListchildren () const
 Returns a list of child objects. More...
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectInfo ()
 Dumps information about signal connections, etc. More...
 
void dumpObjectTree ()
 Dumps a tree of children to the debug output. More...
 
QList< QByteArraydynamicPropertyNames () const
 Returns the names of all properties that were dynamically added to the object using setProperty(). More...
 
virtual bool event (QEvent *)
 This virtual function receives events to an object and should return true if the event e was recognized and processed. More...
 
virtual bool eventFilter (QObject *, QEvent *)
 Filters events if this object has been installed as an event filter for the watched object. More...
 
template<typename T >
findChild (const QString &aName=QString()) const
 Returns the child of this object that can be cast into type T and that is called name, or 0 if there is no such object. More...
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. More...
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false. More...
 
void installEventFilter (QObject *)
 Installs an event filter filterObj on this object. More...
 
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false. More...
 
void killTimer (int id)
 Kills the timer with timer identifier, id. More...
 
virtual const QMetaObjectmetaObject () const
 Returns a pointer to the meta-object of this object. More...
 
void moveToThread (QThread *thread)
 Changes the thread affinity for this object and its children. More...
 
QString objectName () const
 
QObjectparent () const
 Returns a pointer to the parent object. More...
 
QVariant property (const char *name) const
 Returns the value of the object's name property. More...
 
Q_INVOKABLE QObject (QObject *parent=0)
 Constructs an object with parent object parent. More...
 
void removeEventFilter (QObject *)
 Removes an event filter object obj from this object. More...
 
void setObjectName (const QString &name)
 
void setParent (QObject *)
 Makes the object a child of parent. More...
 
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value. More...
 
void setUserData (uint id, QObjectUserData *data)
 
bool signalsBlocked () const
 Returns true if signals are blocked; otherwise returns false. More...
 
int startTimer (int interval)
 Starts a timer and returns a timer identifier, or returns zero if it could not start a timer. More...
 
QThreadthread () const
 Returns the thread in which the object lives. More...
 
QObjectUserDatauserData (uint id) const
 
virtual ~QObject ()
 Destroys the object, deleting all its child objects. More...
 

Protected Variables

QHash< QString, QNetworkConfigurationPrivatePointeraccessPointConfigurations
 
QMutex mutex
 
QHash< QString, QNetworkConfigurationPrivatePointersnapConfigurations
 
QHash< QString, QNetworkConfigurationPrivatePointeruserChoiceConfigurations
 
- Protected Variables inherited from QObject
QScopedPointer< QObjectDatad_ptr
 

Friends

class QNetworkConfigurationManagerPrivate
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 Schedules this object for deletion. More...
 
- Static Public Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 Creates a connection of the given type from the signal in the sender object to the method in the receiver object. More...
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 Disconnects signal in object sender from method in object receiver. More...
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
static QString tr (const char *sourceText, const char *comment=0, int n=-1)
 
static QString trUtf8 (const char *sourceText, const char *comment=0, int n=-1)
 
- Static Public Variables inherited from QObject
static const QMetaObject staticMetaObject
 This variable stores the meta-object for the class. More...
 
- Protected Functions inherited from QObject
virtual void childEvent (QChildEvent *)
 This event handler can be reimplemented in a subclass to receive child events. More...
 
virtual void connectNotify (const char *signal)
 This virtual function is called when something has been connected to signal in this object. More...
 
virtual void customEvent (QEvent *)
 This event handler can be reimplemented in a subclass to receive custom events. More...
 
virtual void disconnectNotify (const char *signal)
 This virtual function is called when something has been disconnected from signal in this object. More...
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal. More...
 
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns 0. More...
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *)
 This event handler can be reimplemented in a subclass to receive timer events for the object. More...
 
- Static Protected Variables inherited from QObject
static const QMetaObject staticQtMetaObject
 

Detailed Description

Definition at line 74 of file qbearerengine_p.h.

Constructors and Destructors

◆ QBearerEngine()

QBearerEngine::QBearerEngine ( QObject parent = 0)
explicit

Definition at line 48 of file qbearerengine.cpp.

49  : QObject(parent), mutex(QMutex::Recursive)
50 {
51 }
Q_INVOKABLE QObject(QObject *parent=0)
Constructs an object with parent object parent.
Definition: qobject.cpp:753

◆ ~QBearerEngine()

QBearerEngine::~QBearerEngine ( )
virtual

Definition at line 53 of file qbearerengine.cpp.

54 {
57 
58  for (it = snapConfigurations.begin(), end = snapConfigurations.end(); it != end; ++it) {
59  it.value()->isValid = false;
60  it.value()->id.clear();
61  }
62  snapConfigurations.clear();
63 
64  for (it = accessPointConfigurations.begin(), end = accessPointConfigurations.end();
65  it != end; ++it) {
66  it.value()->isValid = false;
67  it.value()->id.clear();
68  }
70 
71  for (it = userChoiceConfigurations.begin(), end = userChoiceConfigurations.end();
72  it != end; ++it) {
73  it.value()->isValid = false;
74  it.value()->id.clear();
75  }
77 }
QHash< QString, QNetworkConfigurationPrivatePointer > userChoiceConfigurations
#define it(className, varName)
T & value() const
Returns a modifiable reference to the current item&#39;s value.
Definition: qhash.h:348
QHash< QString, QNetworkConfigurationPrivatePointer > accessPointConfigurations
QHash< QString, QNetworkConfigurationPrivatePointer > snapConfigurations
The QHash::iterator class provides an STL-style non-const iterator for QHash and QMultiHash.
Definition: qhash.h:330
static const KeyPair *const end

Functions

◆ capabilities()

virtual QNetworkConfigurationManager::Capabilities QBearerEngine::capabilities ( ) const
pure virtual

◆ configurationAdded

void QBearerEngine::configurationAdded ( QNetworkConfigurationPrivatePointer  config)
signal

◆ configurationChanged

void QBearerEngine::configurationChanged ( QNetworkConfigurationPrivatePointer  config)
signal

◆ configurationRemoved

void QBearerEngine::configurationRemoved ( QNetworkConfigurationPrivatePointer  config)
signal

◆ configurationsInUse()

bool QBearerEngine::configurationsInUse ( ) const

Definition at line 90 of file qbearerengine.cpp.

Referenced by QNetworkConfigurationManagerPrivate::pollEngines(), and QNetworkConfigurationManagerPrivate::startPolling().

91 {
94 
95  QMutexLocker locker(&mutex);
96 
97  for (it = accessPointConfigurations.constBegin(),
98  end = accessPointConfigurations.constEnd(); it != end; ++it) {
99  if (it.value()->ref > 1)
100  return true;
101  }
102 
103  for (it = snapConfigurations.constBegin(),
104  end = snapConfigurations.constEnd(); it != end; ++it) {
105  if (it.value()->ref > 1)
106  return true;
107  }
108 
109  for (it = userChoiceConfigurations.constBegin(),
110  end = userChoiceConfigurations.constEnd(); it != end; ++it) {
111  if (it.value()->ref > 1)
112  return true;
113  }
114 
115  return false;
116 }
The QHash::const_iterator class provides an STL-style const iterator for QHash and QMultiHash...
Definition: qhash.h:395
QHash< QString, QNetworkConfigurationPrivatePointer > userChoiceConfigurations
#define it(className, varName)
QHash< QString, QNetworkConfigurationPrivatePointer > accessPointConfigurations
const T & value() const
Returns the current item&#39;s value.
Definition: qhash.h:420
QHash< QString, QNetworkConfigurationPrivatePointer > snapConfigurations
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101
static const KeyPair *const end

◆ createSessionBackend()

virtual QNetworkSessionPrivate* QBearerEngine::createSessionBackend ( )
pure virtual

◆ defaultConfiguration()

virtual QNetworkConfigurationPrivatePointer QBearerEngine::defaultConfiguration ( )
pure virtual

◆ hasIdentifier()

virtual bool QBearerEngine::hasIdentifier ( const QString id)
pure virtual

◆ requiresPolling()

bool QBearerEngine::requiresPolling ( ) const
virtual

◆ updateCompleted

void QBearerEngine::updateCompleted ( )
signal

Friends and Related Functions

◆ QNetworkConfigurationManagerPrivate

Definition at line 78 of file qbearerengine_p.h.

Properties

◆ accessPointConfigurations

QHash<QString, QNetworkConfigurationPrivatePointer> QBearerEngine::accessPointConfigurations
protected

Definition at line 105 of file qbearerengine_p.h.

Referenced by QNetworkManagerEngine::activationFinished(), QNetworkManagerEngine::activeConnectionPropertiesChanged(), QIcdEngine::addConfiguration(), QConnmanEngine::addServiceConfiguration(), QNetworkConfigurationManagerPrivate::allConfigurations(), QNetworkManagerEngine::bytesReceived(), QNetworkManagerEngine::bytesWritten(), QConnmanEngine::configurationChange(), QNetworkConfigurationManagerPrivate::configurationFromIdentifier(), configurationsInUse(), QIcdEngine::connectionStateSignalsSlot(), QCoreWlanEngine::connectToId(), QNetworkConfigurationManagerPrivate::defaultConfiguration(), QBBEngine::defaultConfiguration(), QIcdEngine::deleteConfiguration(), QNetworkManagerEngine::disconnectFromId(), QGenericEngine::doRequestUpdate(), QBBEngine::doRequestUpdate(), QIcdEngine::doRequestUpdate(), QIcdEngine::getIcdInitialState(), QConnmanEngine::hasIdentifier(), QIcdEngine::hasIdentifier(), QIcdEngine::icdServiceOwnerChanged(), QNetworkManagerEngine::interfacePropertiesChanged(), QCoreWlanEngine::networksChanged(), QNlaEngine::networksChanged(), QNetworkManagerEngine::newAccessPoint(), QNetworkManagerEngine::newConnection(), QNetworkManagerEngine::parseConnection(), QConnmanEngine::propertyChangedContext(), QNetworkManagerEngine::removeAccessPoint(), QBBEngine::removeConfiguration(), QConnmanEngine::removeConfiguration(), QNetworkManagerEngine::removeConnection(), QNativeWifiEngine::scanComplete(), QGenericEngine::sessionStateForId(), QBBEngine::sessionStateForId(), QCoreWlanEngine::sessionStateForId(), QNativeWifiEngine::sessionStateForId(), QNetworkManagerEngine::sessionStateForId(), QConnmanEngine::sessionStateForId(), QNlaEngine::sessionStateForId(), QNetworkManagerEngine::updateAccessPoint(), QBBEngine::updateConfiguration(), QNetworkManagerEngine::updateConnection(), and ~QBearerEngine().

◆ mutex

QMutex QBearerEngine::mutex
mutableprotected

Definition at line 109 of file qbearerengine_p.h.

Referenced by QNetworkManagerEngine::activationFinished(), QNetworkManagerEngine::activeConnectionPropertiesChanged(), QIcdEngine::addConfiguration(), QConnmanEngine::addServiceConfiguration(), QNetworkConfigurationManagerPrivate::allConfigurations(), QIcdEngine::asyncUpdateConfigurationsSlot(), QCoreWlanEngine::bytesReceived(), QNetworkManagerEngine::bytesReceived(), QConnmanEngine::bytesReceived(), QCoreWlanEngine::bytesWritten(), QNetworkManagerEngine::bytesWritten(), QConnmanEngine::bytesWritten(), QConnmanEngine::configurationChange(), QNetworkConfigurationManagerPrivate::configurationFromIdentifier(), configurationsInUse(), QIcdEngine::connectionStateSignalsSlot(), QCoreWlanEngine::connectToId(), QNativeWifiEngine::connectToId(), QConnmanEngine::connectToId(), QNetworkManagerEngine::connectToId(), QConnmanEngine::connmanAvailable(), QNetworkConfigurationManagerPrivate::defaultConfiguration(), QBBEngine::defaultConfiguration(), QIcdEngine::defaultConfiguration(), QIcdEngine::deleteConfiguration(), QNetworkManagerEngine::deviceAdded(), QNetworkManagerEngine::deviceRemoved(), QCoreWlanEngine::disconnectFromId(), QNativeWifiEngine::disconnectFromId(), QConnmanEngine::disconnectFromId(), QNetworkManagerEngine::disconnectFromId(), QGenericEngine::doRequestUpdate(), QBBEngine::doRequestUpdate(), QCoreWlanEngine::doRequestUpdate(), QIcdEngine::doRequestUpdate(), QIcdEngine::finishAsyncConfigurationUpdate(), QConnmanEngine::getConfigurations(), QIcdEngine::getIcdInitialState(), QGenericEngine::getInterfaceFromId(), QBBEngine::getInterfaceFromId(), QCoreWlanEngine::getInterfaceFromId(), QNativeWifiEngine::getInterfaceFromId(), QNetworkManagerEngine::getInterfaceFromId(), QConnmanEngine::getInterfaceFromId(), QNlaEngine::getInterfaceFromId(), QConnmanEngine::getStateForService(), QGenericEngine::hasIdentifier(), QBBEngine::hasIdentifier(), QCoreWlanEngine::hasIdentifier(), QNativeWifiEngine::hasIdentifier(), QNetworkManagerEngine::hasIdentifier(), QConnmanEngine::hasIdentifier(), QNlaEngine::hasIdentifier(), QIcdEngine::hasIdentifier(), QIcdEngine::icdServiceOwnerChanged(), QCoreWlanEngine::initialize(), QNetworkManagerEngine::initialize(), QIcdEngine::initialize(), QNetworkManagerEngine::interfacePropertiesChanged(), QCoreWlanEngine::isWifiReady(), QNetworkManagerEngine::networkManagerAvailable(), QCoreWlanEngine::networksChanged(), QNlaEngine::networksChanged(), QNetworkManagerEngine::newAccessPoint(), QNetworkManagerEngine::newConnection(), QNetworkManagerEngine::parseConnection(), QConnmanEngine::propertyChangedContext(), QNetworkManagerEngine::removeAccessPoint(), QBBEngine::removeConfiguration(), QConnmanEngine::removeConfiguration(), QNetworkManagerEngine::removeConnection(), QNativeWifiEngine::requestUpdate(), QConnmanEngine::requestUpdate(), QNlaEngine::requestUpdate(), QIcdEngine::requestUpdate(), QNativeWifiEngine::scanComplete(), QConnmanEngine::serviceFromId(), QConnmanEngine::servicePropertyChangedContext(), QGenericEngine::sessionStateForId(), QBBEngine::sessionStateForId(), QCoreWlanEngine::sessionStateForId(), QNativeWifiEngine::sessionStateForId(), QNetworkManagerEngine::sessionStateForId(), QConnmanEngine::sessionStateForId(), QNlaEngine::sessionStateForId(), QCoreWlanEngine::startTime(), QNetworkManagerEngine::startTime(), QConnmanEngine::startTime(), QNetworkManagerEngine::updateAccessPoint(), QBBEngine::updateConfiguration(), and QNetworkManagerEngine::updateConnection().

◆ snapConfigurations

QHash<QString, QNetworkConfigurationPrivatePointer> QBearerEngine::snapConfigurations
protected

◆ userChoiceConfigurations

QHash<QString, QNetworkConfigurationPrivatePointer> QBearerEngine::userChoiceConfigurations
protected

The documentation for this class was generated from the following files: