Qt 4.8
Public Functions | Protected Functions | Private Slots | Private Functions | Static Private Functions | Properties | List of all members
QBBEngine Class Reference

#include <qbbengine.h>

Inheritance diagram for QBBEngine:
QBearerEngineImpl QBearerEngine QObject

Public Functions

QNetworkConfigurationManager::Capabilities capabilities () const
 
void connectToId (const QString &id)
 
QNetworkSessionPrivatecreateSessionBackend ()
 
QNetworkConfigurationPrivatePointer defaultConfiguration ()
 
void disconnectFromId (const QString &id)
 
QString getInterfaceFromId (const QString &id)
 
bool hasIdentifier (const QString &id)
 
Q_INVOKABLE void initialize ()
 
 QBBEngine (QObject *parent=0)
 
Q_INVOKABLE void requestUpdate ()
 
bool requiresPolling () const
 
QNetworkSession::State sessionStateForId (const QString &id)
 
 ~QBBEngine ()
 
- Public Functions inherited from QBearerEngineImpl
virtual quint64 bytesReceived (const QString &)
 
virtual quint64 bytesWritten (const QString &)
 
 QBearerEngineImpl (QObject *parent=0)
 
virtual quint64 startTime (const QString &)
 
 ~QBearerEngineImpl ()
 
- Public Functions inherited from QBearerEngine
bool configurationsInUse () const
 
 QBearerEngine (QObject *parent=0)
 
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 Functions

void removeConfiguration (const QString &id)
 
void updateConfiguration (const char *interface)
 
- 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...
 

Private Slots

void doRequestUpdate ()
 

Private Functions

void filterEvent (bps_event_t *event)
 

Static Private Functions

static bool filterEvent (void *message)
 

Properties

QHash< QString, QStringconfigurationInterface
 
bool initialized
 
QMutex pollingMutex
 
bool pollingRequired
 
QAbstractEventDispatcher::EventFilter previousEventFilter
 

Additional Inherited Members

- Public Types inherited from QBearerEngineImpl
enum  ConnectionError { InterfaceLookupError = 0, ConnectError, OperationNotSupported, DisconnectionError }
 
- Public Slots inherited from QObject
void deleteLater ()
 Schedules this object for deletion. More...
 
- Signals inherited from QBearerEngineImpl
void connectionError (const QString &id, QBearerEngineImpl::ConnectionError error)
 
- Signals inherited from QBearerEngine
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...
 
- 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 Variables inherited from QBearerEngine
QHash< QString, QNetworkConfigurationPrivatePointeraccessPointConfigurations
 
QMutex mutex
 
QHash< QString, QNetworkConfigurationPrivatePointersnapConfigurations
 
QHash< QString, QNetworkConfigurationPrivatePointeruserChoiceConfigurations
 
- Protected Variables inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Variables inherited from QObject
static const QMetaObject staticQtMetaObject
 

Detailed Description

Definition at line 58 of file qbbengine.h.

Constructors and Destructors

◆ QBBEngine()

QBBEngine::QBBEngine ( QObject parent = 0)
explicit

Definition at line 124 of file qbbengine.cpp.

124  :
125  QBearerEngineImpl(parent),
127  pollingRequired(false),
128  initialized(false)
129 {
130 }
QBearerEngineImpl(QObject *parent=0)
QAbstractEventDispatcher::EventFilter previousEventFilter
Definition: qbbengine.h:99
bool initialized
Definition: qbbengine.h:104
bool pollingRequired
Definition: qbbengine.h:103

◆ ~QBBEngine()

QBBEngine::~QBBEngine ( )

Definition at line 132 of file qbbengine.cpp.

133 {
135 }
static QAbstractEventDispatcher * instance(QThread *thread=0)
Returns a pointer to the event dispatcher object for the specified thread.
QAbstractEventDispatcher::EventFilter previousEventFilter
Definition: qbbengine.h:99
EventFilter setEventFilter(EventFilter filter)
Replaces the event filter function for this QAbstractEventDispatcher with filter and returns the repl...

Functions

◆ capabilities()

QNetworkConfigurationManager::Capabilities QBBEngine::capabilities ( ) const
virtual

◆ connectToId()

void QBBEngine::connectToId ( const QString id)
virtual

Implements QBearerEngineImpl.

Definition at line 152 of file qbbengine.cpp.

153 {
155 }
#define Q_EMIT
Definition: qobjectdefs.h:74
void connectionError(const QString &id, QBearerEngineImpl::ConnectionError error)

◆ createSessionBackend()

QNetworkSessionPrivate * QBBEngine::createSessionBackend ( )
virtual

Implements QBearerEngine.

Definition at line 255 of file qbbengine.cpp.

◆ defaultConfiguration()

QNetworkConfigurationPrivatePointer QBBEngine::defaultConfiguration ( )
virtual

Implements QBearerEngine.

Definition at line 260 of file qbbengine.cpp.

261 {
262  char *interface = 0;
263 
264  if (netstatus_get_default_interface(&interface) != BPS_SUCCESS)
266 
267  if (!interface)
269 
271 
272  const QString id = idForName(QString::fromLatin1(interface));
273 
274  const QMutexLocker locker(&mutex);
275 
276  if (accessPointConfigurations.contains(id)) {
277  qBearerDebug() << Q_FUNC_INFO << "found default interface:" << id;
278 
279  return accessPointConfigurations.value(id);
280  }
281 
283 }
#define qBearerDebug
Definition: qbbengine.cpp:57
static QString idForName(const QString &name)
Definition: qbbengine.cpp:116
The QString class provides a Unicode character string.
Definition: qstring.h:83
The QScopedPointer class stores a pointer to a dynamically allocated object, and deletes it upon dest...
QHash< QString, QNetworkConfigurationPrivatePointer > accessPointConfigurations
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101
QExplicitlySharedDataPointer< QNetworkConfigurationPrivate > QNetworkConfigurationPrivatePointer
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Definition: qstring.cpp:4188
#define Q_FUNC_INFO
Definition: qglobal.h:1871

◆ disconnectFromId()

void QBBEngine::disconnectFromId ( const QString id)
virtual

Implements QBearerEngineImpl.

Definition at line 157 of file qbbengine.cpp.

158 {
160 }
#define Q_EMIT
Definition: qobjectdefs.h:74
void connectionError(const QString &id, QBearerEngineImpl::ConnectionError error)

◆ doRequestUpdate

void QBBEngine::doRequestUpdate ( )
privateslot

Definition at line 189 of file qbbengine.cpp.

Referenced by filterEvent(), initialize(), requestUpdate(), and updateConfiguration().

190 {
191  qBearerDebug() << Q_FUNC_INFO << "entered method";
192 
193  netstatus_interface_list_t interfaceList;
194 
195  if ((netstatus_get_interfaces(&interfaceList)) != BPS_SUCCESS) {
196  qBearerDebug() << Q_FUNC_INFO << "cannot retrieve interface list";
197  return;
198  }
199 
200  const QScopedPointer<netstatus_interface_list_t,
201  NetstatusInterfaceListCleanupHelper> holder(&interfaceList);
202 
203  QSet<QString> currentConfigurations;
204 
205  for (int i = 0; i < interfaceList.num_interfaces; i++) {
206  const char *interface = interfaceList.interfaces[i];
207 
208  qBearerDebug() << Q_FUNC_INFO << "discovered interface" << interface;
209 
210  updateConfiguration(interface);
211 
212  currentConfigurations << idForName(QString::fromLatin1(interface));
213  }
214 
215  QMutexLocker locker(&mutex);
216 
217  const QStringList keys = accessPointConfigurations.uniqueKeys();
218 
219  locker.unlock();
220 
221  Q_FOREACH (const QString &id, keys) {
222  if (!currentConfigurations.contains(id))
224  }
225 
227 }
#define qBearerDebug
Definition: qbbengine.cpp:57
static QString idForName(const QString &name)
Definition: qbbengine.cpp:116
#define Q_EMIT
Definition: qobjectdefs.h:74
void updateCompleted()
The QString class provides a Unicode character string.
Definition: qstring.h:83
QStringList keys
The QScopedPointer class stores a pointer to a dynamically allocated object, and deletes it upon dest...
QHash< QString, QNetworkConfigurationPrivatePointer > accessPointConfigurations
bool contains(const T &value) const
Definition: qset.h:91
void updateConfiguration(const char *interface)
Definition: qbbengine.cpp:320
The QStringList class provides a list of strings.
Definition: qstringlist.h:66
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Definition: qstring.cpp:4188
#define Q_FOREACH(variable, container)
Same as foreach(variable, container).
Definition: qglobal.h:2435
void removeConfiguration(const QString &id)
Definition: qbbengine.cpp:420
#define Q_FUNC_INFO
Definition: qglobal.h:1871

◆ filterEvent() [1/2]

bool QBBEngine::filterEvent ( void *  message)
staticprivate

Definition at line 292 of file qbbengine.cpp.

Referenced by initialize().

293 {
294  bps_event_t * const event = static_cast<bps_event_t *>(message);
295 
296  Q_ASSERT(event);
297 
298  QBBEngine *self = instanceStorage()->localData()->instance;
299 
300  Q_ASSERT(self);
301 
302  if (bps_event_get_domain(event) == netstatus_get_domain())
303  self->filterEvent(event);
304 
305  if (self->previousEventFilter)
306  return self->previousEventFilter(message);
307 
308  return false;
309 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
virtual bool event(QEvent *)
This virtual function receives events to an object and should return true if the event e was recogniz...
Definition: qobject.cpp:1200

◆ filterEvent() [2/2]

void QBBEngine::filterEvent ( bps_event_t *  event)
private

Definition at line 311 of file qbbengine.cpp.

312 {
313  Q_UNUSED(event);
314 
315  qBearerDebug() << Q_FUNC_INFO << "got update request.";
316 
317  doRequestUpdate();
318 }
#define qBearerDebug
Definition: qbbengine.cpp:57
void doRequestUpdate()
Definition: qbbengine.cpp:189
virtual bool event(QEvent *)
This virtual function receives events to an object and should return true if the event e was recogniz...
Definition: qobject.cpp:1200
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729
#define Q_FUNC_INFO
Definition: qglobal.h:1871

◆ getInterfaceFromId()

QString QBBEngine::getInterfaceFromId ( const QString id)
virtual

Implements QBearerEngineImpl.

Definition at line 138 of file qbbengine.cpp.

139 {
140  const QMutexLocker locker(&mutex);
141 
142  return configurationInterface.value(id);
143 }
const T value(const Key &key) const
Returns the value associated with the key.
Definition: qhash.h:606
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101
QHash< QString, QString > configurationInterface
Definition: qbbengine.h:97

◆ hasIdentifier()

bool QBBEngine::hasIdentifier ( const QString id)
virtual

Implements QBearerEngine.

Definition at line 145 of file qbbengine.cpp.

146 {
147  const QMutexLocker locker(&mutex);
148 
149  return configurationInterface.contains(id);
150 }
bool contains(const Key &key) const
Returns true if the hash contains an item with the key; otherwise returns false.
Definition: qhash.h:872
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101
QHash< QString, QString > configurationInterface
Definition: qbbengine.h:97

◆ initialize()

void QBBEngine::initialize ( )

Definition at line 162 of file qbbengine.cpp.

163 {
164  if (initialized) {
165  qWarning() << Q_FUNC_INFO << "called, but instance already initialized.";
166  return;
167  }
168 
169  instanceStorage()->setLocalData(new EngineInstanceHolder(this));
170 
171  if (netstatus_request_events(0) != BPS_SUCCESS) {
172  qWarning() << Q_FUNC_INFO << "cannot register for network events. Polling enabled.";
173 
174  const QMutexLocker locker(&pollingMutex);
175  pollingRequired = true;
176  } else {
179  }
180 
181  doRequestUpdate();
182 }
void doRequestUpdate()
Definition: qbbengine.cpp:189
static QAbstractEventDispatcher * instance(QThread *thread=0)
Returns a pointer to the event dispatcher object for the specified thread.
QAbstractEventDispatcher::EventFilter previousEventFilter
Definition: qbbengine.h:99
QMutex pollingMutex
Definition: qbbengine.h:101
Q_CORE_EXPORT void qWarning(const char *,...)
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101
EventFilter setEventFilter(EventFilter filter)
Replaces the event filter function for this QAbstractEventDispatcher with filter and returns the repl...
static bool filterEvent(void *message)
Definition: qbbengine.cpp:292
bool initialized
Definition: qbbengine.h:104
bool pollingRequired
Definition: qbbengine.h:103
#define Q_FUNC_INFO
Definition: qglobal.h:1871

◆ removeConfiguration()

void QBBEngine::removeConfiguration ( const QString id)
protected

Definition at line 420 of file qbbengine.cpp.

Referenced by doRequestUpdate().

421 {
422  QMutexLocker locker(&mutex);
423 
425  accessPointConfigurations.take(id);
426 
428 
429  locker.unlock();
430 
432 }
int remove(const Key &key)
Removes all the items that have the key from the hash.
Definition: qhash.h:784
#define Q_EMIT
Definition: qobjectdefs.h:74
QHash< QString, QNetworkConfigurationPrivatePointer > accessPointConfigurations
const T * ptr(const T &t)
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101
QHash< QString, QString > configurationInterface
Definition: qbbengine.h:97
void configurationRemoved(QNetworkConfigurationPrivatePointer config)

◆ requestUpdate()

void QBBEngine::requestUpdate ( )

Definition at line 184 of file qbbengine.cpp.

185 {
186  doRequestUpdate();
187 }
void doRequestUpdate()
Definition: qbbengine.cpp:189

◆ requiresPolling()

bool QBBEngine::requiresPolling ( ) const
virtual

Reimplemented from QBearerEngine.

Definition at line 285 of file qbbengine.cpp.

286 {
287  const QMutexLocker locker(&pollingMutex);
288 
289  return pollingRequired;
290 }
QMutex pollingMutex
Definition: qbbengine.h:101
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101
bool pollingRequired
Definition: qbbengine.h:103

◆ sessionStateForId()

QNetworkSession::State QBBEngine::sessionStateForId ( const QString id)
virtual

Implements QBearerEngineImpl.

Definition at line 229 of file qbbengine.cpp.

230 {
231  const QMutexLocker locker(&mutex);
232 
234 
235  if (!ptr || !ptr->isValid)
237 
246 
248 }
QNetworkConfiguration::StateFlags state
QHash< QString, QNetworkConfigurationPrivatePointer > accessPointConfigurations
const T * ptr(const T &t)
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101

◆ updateConfiguration()

void QBBEngine::updateConfiguration ( const char *  interface)
protected

Definition at line 320 of file qbbengine.cpp.

Referenced by doRequestUpdate().

321 {
322  netstatus_interface_details_t *details = 0;
323 
324  if (netstatus_get_interface_details(interface, &details) != BPS_SUCCESS) {
325  qBearerDebug() << Q_FUNC_INFO << "cannot retrieve details for interface" << interface;
326 
327  return;
328  }
329 
330  const QString name = QString::fromLatin1(netstatus_interface_get_name(details));
331  const QString id = idForName(name);
332 
333 
334  const netstatus_interface_type_t type = netstatus_interface_get_type(details);
335  const netstatus_ip_status_t ipStatus = netstatus_interface_get_ip_status(details);
336 
337  netstatus_free_interface_details(&details);
338 
339  QNetworkConfiguration::StateFlags state = QNetworkConfiguration::Defined;
340 
341  if (ipStatus == NETSTATUS_IP_STATUS_OK)
343 
344  QMutexLocker locker(&mutex);
345 
346  if (accessPointConfigurations.contains(id)) {
348 
349  bool changed = false;
350 
351  QMutexLocker ptrLocker(&ptr->mutex);
352 
353  if (!ptr->isValid) {
354  ptr->isValid = true;
355  changed = true;
356  }
357 
358  if (ptr->name != name) {
359  ptr->name = name;
360  changed = true;
361  }
362 
363  if (ptr->id != id) {
364  ptr->id = id;
365  changed = true;
366  }
367 
368  if (ptr->state != state) {
369  ptr->state = state;
370  changed = true;
371  }
372 
373  const netstatus_ip_status_t oldIpStatus = ptr->oldIpStatus;
374  ptr->oldIpStatus = ipStatus;
375 
376  ptrLocker.unlock();
377 
378  locker.unlock();
379 
380  if (changed) {
381  qBearerDebug() << Q_FUNC_INFO << "configuration changed:" << interface;
382 
384  } else {
385  // maybe Wifi has changed but gateway not yet ready etc.
386  qBearerDebug() << Q_FUNC_INFO << "configuration has not changed.";
387  if (oldIpStatus != ipStatus) { // if IP status changed
388  if (ipStatus != NETSTATUS_IP_STATUS_OK
389  && ipStatus != NETSTATUS_IP_STATUS_ERROR_NOT_UP
390  && ipStatus != NETSTATUS_IP_STATUS_ERROR_NOT_CONFIGURED) {
391  // work around race condition in netstatus API by just checking
392  // again in 300 ms
393  QTimer::singleShot(300, this, SLOT(doRequestUpdate()));
394  }
395  }
396  }
397 
398  return;
399  }
400 
402 
403  ptr->name = name;
404  ptr->isValid = true;
405  ptr->id = id;
406  ptr->state = state;
408  ptr->bearerType = interfaceType(type);
409 
410  accessPointConfigurations.insert(id, ptr);
411  configurationInterface.insert(id, name);
412 
413  locker.unlock();
414 
415  qBearerDebug() << Q_FUNC_INFO << "configuration added:" << interface;
416 
418 }
#define qBearerDebug
Definition: qbbengine.cpp:57
int type
Definition: qmetatype.cpp:239
void doRequestUpdate()
Definition: qbbengine.cpp:189
static QString idForName(const QString &name)
Definition: qbbengine.cpp:116
QNetworkConfiguration::StateFlags state
#define Q_EMIT
Definition: qobjectdefs.h:74
void configurationChanged(QNetworkConfigurationPrivatePointer config)
#define SLOT(a)
Definition: qobjectdefs.h:226
The QString class provides a Unicode character string.
Definition: qstring.h:83
QNetworkConfiguration::BearerType bearerType
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
Definition: qhash.h:753
QHash< QString, QNetworkConfigurationPrivatePointer > accessPointConfigurations
const char * name
void configurationAdded(QNetworkConfigurationPrivatePointer config)
static QNetworkConfiguration::BearerType interfaceType(netstatus_interface_type_t type)
Definition: qbbengine.cpp:87
const T * ptr(const T &t)
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101
QHash< QString, QString > configurationInterface
Definition: qbbengine.h:97
QNetworkConfiguration::Type type
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Definition: qstring.cpp:4188
bool singleShot
This static function calls a slot after a given time interval.
Definition: qtimer.h:59
#define Q_FUNC_INFO
Definition: qglobal.h:1871

Properties

◆ configurationInterface

QHash<QString, QString> QBBEngine::configurationInterface
private

◆ initialized

bool QBBEngine::initialized
private

Definition at line 104 of file qbbengine.h.

Referenced by initialize().

◆ pollingMutex

QMutex QBBEngine::pollingMutex
mutableprivate

Definition at line 101 of file qbbengine.h.

Referenced by initialize(), and requiresPolling().

◆ pollingRequired

bool QBBEngine::pollingRequired
private

Definition at line 103 of file qbbengine.h.

Referenced by initialize(), and requiresPolling().

◆ previousEventFilter

QAbstractEventDispatcher::EventFilter QBBEngine::previousEventFilter
private

Definition at line 99 of file qbbengine.h.

Referenced by initialize(), and ~QBBEngine().


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