Qt 4.8
Signals | Public Functions | Public Variables | Protected Functions | Private Functions | Properties | List of all members
QScanThread Class Reference

#include <qcorewlanengine.h>

Inheritance diagram for QScanThread:
QThread QObject

Signals

void networksChanged ()
 
- Signals inherited from QThread
void finished ()
 This signal is emitted when the thread has finished executing. More...
 
void started ()
 This signal is emitted when the thread starts executing. More...
 
void terminated ()
 This signal is emitted when the thread is terminated. More...
 
- 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

QList< QNetworkConfigurationPrivate * > getConfigurations ()
 
QString getNetworkNameFromSsid (const QString &ssid)
 
QString getSsidFromNetworkName (const QString &name)
 
void getUserConfigurations ()
 
bool isKnownSsid (const QString &ssid)
 
 QScanThread (QObject *parent=0)
 
void quit ()
 
 ~QScanThread ()
 
- Public Functions inherited from QThread
void exit (int retcode=0)
 Tells the thread's event loop to exit with a return code. More...
 
bool isFinished () const
 Returns true if the thread is finished; otherwise returns false. More...
 
bool isRunning () const
 Returns true if the thread is running; otherwise returns false. More...
 
Priority priority () const
 Returns the priority for a running thread. More...
 
 QThread (QObject *parent=0)
 Constructs a new QThread to manage a new thread. More...
 
void setPriority (Priority priority)
 This function sets the priority for a running thread. More...
 
void setStackSize (uint stackSize)
 Sets the maximum stack size for the thread to stackSize. More...
 
uint stackSize () const
 Returns the maximum stack size for the thread (if set with setStackSize()); otherwise returns zero. More...
 
bool wait (unsigned long time=ULONG_MAX)
 Blocks the thread until either of these conditions is met: More...
 
 ~QThread ()
 Destroys the QThread. More...
 
- 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...
 

Public Variables

QMap< QString, QStringconfigurationInterface
 
QString interfaceName
 
QMap< QString, QMap< QString, QString > > userProfiles
 

Protected Functions

void run ()
 The starting point for the thread. More...
 
- Protected Functions inherited from QThread
int exec ()
 Enters the event loop and waits until exit() is called, returning the value that was passed to exit(). More...
 
 QThread (QThreadPrivate &dd, QObject *parent=0)
 
- 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 Functions

QStringList foundNetwork (const QString &id, const QString &ssid, const QNetworkConfiguration::StateFlags state, const QString &interfaceName, const QNetworkConfiguration::Purpose purpose)
 

Properties

QList< QNetworkConfigurationPrivate * > fetchedConfigurations
 
QMutex mutex
 

Additional Inherited Members

- Public Types inherited from QThread
enum  Priority {
  IdlePriority, LowestPriority, LowPriority, NormalPriority,
  HighPriority, HighestPriority, TimeCriticalPriority, InheritPriority
}
 This enum type indicates how the operating system should schedule newly created threads. More...
 
- Public Slots inherited from QThread
void quit ()
 Tells the thread's event loop to exit with return code 0 (success). More...
 
void start (Priority=InheritPriority)
 Begins execution of the thread by calling run(). More...
 
void terminate ()
 Terminates the execution of the thread. More...
 
- Public Slots inherited from QObject
void deleteLater ()
 Schedules this object for deletion. More...
 
- Static Public Functions inherited from QThread
static QThreadcurrentThread ()
 Returns a pointer to a QThread which manages the currently executing thread. More...
 
static Qt::HANDLE currentThreadId ()
 Returns the thread handle of the currently executing thread. More...
 
static int idealThreadCount ()
 Returns the ideal number of threads that can be run on the system. More...
 
static void yieldCurrentThread ()
 Yields execution of the current thread to another runnable thread, if any. 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...
 
- Static Protected Functions inherited from QThread
static void msleep (unsigned long)
 Forces the current thread to sleep for msecs milliseconds. More...
 
static void setTerminationEnabled (bool enabled=true)
 Enables or disables termination of the current thread based on the enabled parameter. More...
 
static void sleep (unsigned long)
 Forces the current thread to sleep for secs seconds. More...
 
static void usleep (unsigned long)
 Forces the current thread to sleep for usecs microseconds. More...
 
- Protected Variables inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Variables inherited from QObject
static const QMetaObject staticQtMetaObject
 

Detailed Description

Definition at line 112 of file qcorewlanengine.h.

Constructors and Destructors

◆ QScanThread()

QScanThread::QScanThread ( QObject parent = 0)

Definition at line 125 of file qcorewlanengine_10_6.mm.

126  :QThread(parent)
127 {
128 }
QThread(QObject *parent=0)
Constructs a new QThread to manage a new thread.
Definition: qthread.cpp:433

◆ ~QScanThread()

QScanThread::~QScanThread ( )

Definition at line 130 of file qcorewlanengine_10_6.mm.

131 {
132 }

Functions

◆ foundNetwork()

QStringList QScanThread::foundNetwork ( const QString id,
const QString ssid,
const QNetworkConfiguration::StateFlags  state,
const QString interfaceName,
const QNetworkConfiguration::Purpose  purpose 
)
private

Definition at line 234 of file qcorewlanengine_10_6.mm.

Referenced by run().

235 {
236  QStringList found;
237  QMutexLocker locker(&mutex);
239 
240  ptr->name = name;
241  ptr->isValid = true;
242  ptr->id = id;
243  ptr->state = state;
246  ptr->purpose = purpose;
247 
249  configurationInterface.insert(ptr->id, interfaceName);
250 
251  locker.unlock();
252  locker.relock();
253  found.append(id);
254  return found;
255 }
QNetworkConfiguration::StateFlags state
QNetworkConfiguration::BearerType bearerType
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
QList< QNetworkConfigurationPrivate * > fetchedConfigurations
const char * name
The QStringList class provides a list of strings.
Definition: qstringlist.h:66
const T * ptr(const T &t)
QMap< QString, QString > configurationInterface
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101
QNetworkConfiguration::Purpose purpose
QNetworkConfiguration::Type type
iterator insert(const Key &key, const T &value)
Inserts a new item with the key key and a value of value.
Definition: qmap.h:559

◆ getConfigurations()

QList< QNetworkConfigurationPrivate * > QScanThread::getConfigurations ( )

Definition at line 257 of file qcorewlanengine_10_6.mm.

Referenced by QCoreWlanEngine::networksChanged().

258 {
259  QMutexLocker locker(&mutex);
260 
263 
264  return foundConfigurations;
265 }
QList< QNetworkConfigurationPrivate * > fetchedConfigurations
void clear()
Removes all items from the list.
Definition: qlist.h:764
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101
The QList class is a template class that provides lists.
Definition: qdatastream.h:62

◆ getNetworkNameFromSsid()

QString QScanThread::getNetworkNameFromSsid ( const QString ssid)

Definition at line 362 of file qcorewlanengine_10_6.mm.

Referenced by QCoreWlanEngine::connectToId().

363 {
364  QMutexLocker locker(&mutex);
365 
366  QMapIterator<QString, QMap<QString,QString> > i(userProfiles);
367  while (i.hasNext()) {
368  i.next();
369  QMap<QString,QString> map = i.value();
370  QMapIterator<QString, QString> ij(i.value());
371  while (ij.hasNext()) {
372  ij.next();
373  if(ij.key() == ssid) {
374  return i.key();
375  }
376  }
377  }
378  return QString();
379 }
The QString class provides a Unicode character string.
Definition: qstring.h:83
QMap< QString, QMap< QString, QString > > userProfiles
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101

◆ getSsidFromNetworkName()

QString QScanThread::getSsidFromNetworkName ( const QString name)

Definition at line 342 of file qcorewlanengine_10_6.mm.

Referenced by QCoreWlanEngine::connectToId(), and run().

343 {
344  QMutexLocker locker(&mutex);
345 
346  QMapIterator<QString, QMap<QString,QString> > i(userProfiles);
347  while (i.hasNext()) {
348  i.next();
349  QMap<QString,QString> map = i.value();
350  QMapIterator<QString, QString> ij(i.value());
351  while (ij.hasNext()) {
352  ij.next();
353  const QString networkNameHash = QString::number(qHash(QLatin1String("corewlan:") +i.key()));
354  if(name == i.key() || name == networkNameHash) {
355  return ij.key();
356  }
357  }
358  }
359  return QString();
360 }
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: qstring.cpp:6448
uint qHash(const QProcEnvKey &key)
Definition: qprocess_p.h:96
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
Definition: qstring.h:83
QMap< QString, QMap< QString, QString > > userProfiles
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101

◆ getUserConfigurations()

void QScanThread::getUserConfigurations ( )

Definition at line 267 of file qcorewlanengine_10_6.mm.

Referenced by QCoreWlanEngine::requestUpdate().

268 {
269  QMutexLocker locker(&mutex);
270 
271  NSAutoreleasePool *autoreleasepool = [[NSAutoreleasePool alloc] init];
273 
274  NSArray *wifiInterfaces = [CWInterface supportedInterfaces];
275  for(uint row=0; row < [wifiInterfaces count]; row++ ) {
276 
277  CWInterface *wifiInterface = [CWInterface interfaceWithName: [wifiInterfaces objectAtIndex:row]];
278  if ( ![wifiInterface power] )
279  continue;
280 
281  NSString *nsInterfaceName = [wifiInterface name];
282 // add user configured system networks
283  SCDynamicStoreRef dynRef = SCDynamicStoreCreate(kCFAllocatorSystemDefault, (CFStringRef)@"Qt corewlan", nil, nil);
284  NSDictionary * airportPlist = (NSDictionary *)SCDynamicStoreCopyValue(dynRef, (CFStringRef)[NSString stringWithFormat:@"Setup:/Network/Interface/%@/AirPort", nsInterfaceName]);
285  CFRelease(dynRef);
286  if(airportPlist != nil) {
287  NSDictionary *prefNetDict = [airportPlist objectForKey:@"PreferredNetworks"];
288 
289  NSArray *thisSsidarray = [prefNetDict valueForKey:@"SSID_STR"];
290  for(NSString *ssidkey in thisSsidarray) {
291  QString thisSsid = QCFString::toQString(CFStringRef(ssidkey));
292  if(!userProfiles.contains(thisSsid)) {
294  map.insert(thisSsid, QCFString::toQString(CFStringRef(nsInterfaceName)));
295  userProfiles.insert(thisSsid, map);
296  }
297  }
298  CFRelease(airportPlist);
299  }
300 
301  // 802.1X user profiles
302  QString userProfilePath = QDir::homePath() + "/Library/Preferences/com.apple.eap.profiles.plist";
303  NSDictionary* eapDict = [[[NSDictionary alloc] initWithContentsOfFile: (NSString *)QCFString::toCFStringRef(userProfilePath)] autorelease];
304  if(eapDict != nil) {
305  NSString *profileStr= @"Profiles";
306  NSString *nameStr = @"UserDefinedName";
307  NSString *networkSsidStr = @"Wireless Network";
308  for (id profileKey in eapDict) {
309  if ([profileStr isEqualToString:profileKey]) {
310  NSDictionary *itemDict = [eapDict objectForKey:profileKey];
311  for (id itemKey in itemDict) {
312 
313  NSInteger dictSize = [itemKey count];
314  id objects[dictSize];
315  id keys[dictSize];
316 
317  [itemKey getObjects:objects andKeys:keys];
318  QString networkName;
319  QString ssid;
320  for(int i = 0; i < dictSize; i++) {
321  if([nameStr isEqualToString:keys[i]]) {
322  networkName = QCFString::toQString(CFStringRef(objects[i]));
323  }
324  if([networkSsidStr isEqualToString:keys[i]]) {
325  ssid = QCFString::toQString(CFStringRef(objects[i]));
326  }
327  if(!userProfiles.contains(networkName)
328  && !ssid.isEmpty()) {
330  map.insert(ssid, QCFString::toQString(CFStringRef(nsInterfaceName)));
331  userProfiles.insert(networkName, map);
332  }
333  }
334  }
335  }
336  }
337  }
338  }
339  [autoreleasepool release];
340 }
const struct __CFString * CFStringRef
static CFStringRef toCFStringRef(const QString &str)
Definition: qcore_mac.cpp:69
static QString toQString(CFStringRef cfstr)
Definition: qcore_mac.cpp:47
The QString class provides a Unicode character string.
Definition: qstring.h:83
QStringList keys
QFuture< void > map(Sequence &sequence, MapFunction function)
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Definition: qstring.h:704
QMap< QString, QMap< QString, QString > > userProfiles
static bool init
const char * name
unsigned int uint
Definition: qglobal.h:996
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101
iterator insert(const Key &key, const T &value)
Inserts a new item with the key key and a value of value.
Definition: qmap.h:559
bool contains(const Key &key) const
Returns true if the map contains an item with key key; otherwise returns false.
Definition: qmap.h:553
void clear()
Removes all items from the map.
Definition: qmap.h:444
static QString homePath()
Returns the absolute path of the user&#39;s home directory.
Definition: qdir.cpp:1942

◆ isKnownSsid()

bool QScanThread::isKnownSsid ( const QString ssid)

Definition at line 381 of file qcorewlanengine_10_6.mm.

Referenced by run().

382 {
383  QMutexLocker locker(&mutex);
384 
385  QMapIterator<QString, QMap<QString,QString> > i(userProfiles);
386  while (i.hasNext()) {
387  i.next();
388  QMap<QString,QString> map = i.value();
389  if(map.keys().contains(ssid)) {
390  return true;
391  }
392  }
393  return false;
394 }
QBool contains(const T &t) const
Returns true if the list contains an occurrence of value; otherwise returns false.
Definition: qlist.h:880
QMap< QString, QMap< QString, QString > > userProfiles
QList< Key > keys() const
Returns a list containing all the keys in the map in ascending order.
Definition: qmap.h:818
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101

◆ networksChanged

void QScanThread::networksChanged ( )
signal

Referenced by run().

◆ quit()

void QScanThread::quit ( )

Definition at line 134 of file qcorewlanengine_10_6.mm.

135 {
136  wait();
137 }
bool wait(unsigned long time=ULONG_MAX)
Blocks the thread until either of these conditions is met:

◆ run()

void QScanThread::run ( void  )
protectedvirtual

The starting point for the thread.

After calling start(), the newly created thread calls this function. The default implementation simply calls exec().

You can reimplement this function to facilitate advanced thread management. Returning from this method will end the execution of the thread.

See also
start() wait()

Reimplemented from QThread.

Definition at line 139 of file qcorewlanengine_10_6.mm.

140 {
141  NSAutoreleasePool *autoreleasepool = [[NSAutoreleasePool alloc] init];
142  QStringList found;
143  mutex.lock();
144  CWInterface *currentInterface = [CWInterface interfaceWithName: (NSString *)QCFString::toCFStringRef(interfaceName)];
145  mutex.unlock();
146 
147  if([currentInterface power]) {
148  NSError *err = nil;
149  NSDictionary *parametersDict = [NSDictionary dictionaryWithObjectsAndKeys:
150  [NSNumber numberWithBool:YES], kCWScanKeyMerge,
151  [NSNumber numberWithInt:kCWScanTypeFast], kCWScanKeyScanType,
152  [NSNumber numberWithInteger:100], kCWScanKeyRestTime, nil];
153 
154  NSArray* apArray = [currentInterface scanForNetworksWithParameters:parametersDict error:&err];
155  CWNetwork *apNetwork;
156 
157  if (!err) {
158 
159  for(uint row=0; row < [apArray count]; row++ ) {
160  apNetwork = [apArray objectAtIndex:row];
161 
162  const QString networkSsid = QCFString::toQString(CFStringRef([apNetwork ssid]));
163  const QString id = QString::number(qHash(QLatin1String("corewlan:") + networkSsid));
164  found.append(id);
165 
166  QNetworkConfiguration::StateFlags state = QNetworkConfiguration::Undefined;
167  bool known = isKnownSsid(networkSsid);
168  if( [currentInterface.interfaceState intValue] == kCWInterfaceStateRunning) {
169  if( networkSsid == QCFString::toQString(CFStringRef([currentInterface ssid]))) {
171  }
172  }
173  if(state == QNetworkConfiguration::Undefined) {
174  if(known) {
176  } else {
178  }
179  }
181  if([[apNetwork securityMode] intValue] == kCWSecurityModeOpen) {
183  } else {
185  }
186 
187  found.append(foundNetwork(id, networkSsid, state, interfaceName, purpose));
188 
189  }
190  }
191  }
192  // add known configurations that are not around.
193  QMapIterator<QString, QMap<QString,QString> > i(userProfiles);
194  while (i.hasNext()) {
195  i.next();
196 
197  QString networkName = i.key();
198  const QString id = QString::number(qHash(QLatin1String("corewlan:") + networkName));
199 
200  if(!found.contains(id)) {
201  QString networkSsid = getSsidFromNetworkName(networkName);
202  const QString ssidId = QString::number(qHash(QLatin1String("corewlan:") + networkSsid));
203  QNetworkConfiguration::StateFlags state = QNetworkConfiguration::Undefined;
205  QMapIterator<QString, QString> ij(i.value());
206  while (ij.hasNext()) {
207  ij.next();
208  interfaceName = ij.value();
209  }
210 
211  if( [currentInterface.interfaceState intValue] == kCWInterfaceStateRunning) {
212  if( networkSsid == QCFString::toQString(CFStringRef([currentInterface ssid]))) {
214  }
215  }
216  if(state == QNetworkConfiguration::Undefined) {
217  if( userProfiles.contains(networkName)
218  && found.contains(ssidId)) {
220  }
221  }
222 
223  if(state == QNetworkConfiguration::Undefined) {
225  }
226 
227  found.append(foundNetwork(id, networkName, state, interfaceName, QNetworkConfiguration::UnknownPurpose));
228  }
229  }
231  [autoreleasepool release];
232 }
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: qstring.cpp:6448
uint qHash(const QProcEnvKey &key)
Definition: qprocess_p.h:96
const struct __CFString * CFStringRef
Purpose
Specifies the purpose of the configuration.
void lock()
Locks the mutex.
Definition: qmutex.cpp:151
#define error(msg)
static CFStringRef toCFStringRef(const QString &str)
Definition: qcore_mac.cpp:69
static QString toQString(CFStringRef cfstr)
Definition: qcore_mac.cpp:47
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QString getSsidFromNetworkName(const QString &name)
The QString class provides a Unicode character string.
Definition: qstring.h:83
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
QMap< QString, QMap< QString, QString > > userProfiles
static bool init
#define emit
Definition: qobjectdefs.h:76
The QStringList class provides a list of strings.
Definition: qstringlist.h:66
unsigned int uint
Definition: qglobal.h:996
QBool contains(const QString &str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the list contains the string str; otherwise returns false.
Definition: qstringlist.h:172
void unlock()
Unlocks the mutex.
Definition: qmutex.cpp:296
void networksChanged()
bool isKnownSsid(const QString &ssid)
bool contains(const Key &key) const
Returns true if the map contains an item with key key; otherwise returns false.
Definition: qmap.h:553
QString interfaceName
QStringList foundNetwork(const QString &id, const QString &ssid, const QNetworkConfiguration::StateFlags state, const QString &interfaceName, const QNetworkConfiguration::Purpose purpose)

Properties

◆ configurationInterface

QMap<QString, QString> QScanThread::configurationInterface

◆ fetchedConfigurations

QList<QNetworkConfigurationPrivate *> QScanThread::fetchedConfigurations
private

Definition at line 137 of file qcorewlanengine.h.

Referenced by foundNetwork(), and getConfigurations().

◆ interfaceName

QString QScanThread::interfaceName

Definition at line 122 of file qcorewlanengine.h.

Referenced by QCoreWlanEngine::doRequestUpdate(), and run().

◆ mutex

QMutex QScanThread::mutex
private

◆ userProfiles

QMap<QString, QMap<QString,QString> > QScanThread::userProfiles

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