47 #include <QtCore/qstringlist.h> 48 #include <QtCore/qcoreapplication.h> 49 #include <QtCore/qmutex.h> 50 #include <QtCore/qthread.h> 51 #include <QtCore/private/qcoreapplication_p.h> 53 #ifndef QT_NO_BEARERMANAGEMENT 64 int shutdown = appShutdown.fetchAndStoreAcquire(1);
376 return QNetworkConfigurationManager::Capabilities(0);
400 #include "moc_qnetworkconfigmanager.cpp" 404 #endif // QT_NO_BEARERMANAGEMENT static QBasicAtomicPointer< QNetworkConfigurationManagerPrivate > connManager_ptr
void updateConfigurations()
Initiates an update of all configurations.
#define QT_END_NAMESPACE
This macro expands to.
The QMutex class provides access serialization between threads.
void qAddPostRoutine(QtCleanUpFunction p)
void configurationChanged(const QNetworkConfiguration &config)
This signal is emitted when the QNetworkConfiguration::state(){state} of config changes.
QNetworkConfigurationManager(QObject *parent=0)
Constructs a QNetworkConfigurationManager with the given parent.
T * fetchAndStoreRelease(T *newValue)
static QNetworkConfigurationManagerPrivate * connManager()
The QString class provides a Unicode character string.
T * fetchAndAddAcquire(qptrdiff valueToAdd)
QNetworkConfigurationManager::Capabilities capabilities() const
Returns the capabilities supported by the current platform.
static void addPostRoutine()
The QObject class is the base class of all Qt objects.
virtual ~QNetworkConfigurationManager()
Frees the resources associated with the QNetworkConfigurationManager object.
static QBasicAtomicInt appShutdown
QNetworkConfiguration defaultConfiguration() const
static QThread * currentThread()
Returns a pointer to a QThread which manages the currently executing thread.
The QNetworkConfiguration class provides an abstraction of one or more access point configurations...
#define QT_BEGIN_NAMESPACE
This macro expands to.
QNetworkConfigurationManagerPrivate()
bool isOnline() const
Returns true if the system is considered to be connected to another device via an active network inte...
void configurationUpdateComplete()
void destroyed(QObject *=0)
This signal is emitted immediately before the object obj is destroyed, and can not be blocked...
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 rece...
#define Q_GLOBAL_STATIC(TYPE, NAME)
Declares a global static variable with the given type and name.
QNetworkConfigurationManagerPrivate * qNetworkConfigurationManagerPrivate()
QList< QNetworkConfiguration > allConfigurations(QNetworkConfiguration::StateFlags filter) const
void onlineStateChanged(bool isOnline)
This signal is emitted when the device changes from online to offline mode or vice versa...
void moveToThread(QThread *thread)
Changes the thread affinity for this object and its children.
const T * ptr(const T &t)
QList< QNetworkConfiguration > allConfigurations(QNetworkConfiguration::StateFlags flags=0) const
Returns the list of configurations which comply with the given filter.
void performAsyncConfigurationUpdate()
void configurationRemoved(const QNetworkConfiguration &config)
This signal is emitted when a configuration is about to be removed from the system.
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
QNetworkConfiguration defaultConfiguration() const
Returns the default configuration to be used.
static QThread * mainThread()
Q_INVOKABLE QObject(QObject *parent=0)
Constructs an object with parent object parent.
QObject * parent() const
Returns a pointer to the parent object.
QFuture< void > filter(Sequence &sequence, FilterFunction filterFunction)
QNetworkConfiguration configurationFromIdentifier(const QString &identifier) const
Returns the QNetworkConfiguration for identifier; otherwise returns an invalid QNetworkConfiguration...
static void connManager_cleanup()
void updateCompleted()
This signal is emitted when the configuration update has been completed.
QNetworkConfiguration configurationFromIdentifier(const QString &identifier) const
QNetworkConfigurationManager::Capabilities capabilities() const
void deleteLater()
Schedules this object for deletion.
void configurationAdded(const QNetworkConfiguration &config)
This signal is emitted whenever a new network configuration is added to the system.
The QList class is a template class that provides lists.