The WpaSup class interacts with wpa_supplicant.
More...
The WpaSup class interacts with wpa_supplicant.
WpaSup::WpaSup |
( |
const bool |
debugCmd = false , |
|
|
const QMap< QString, QString > |
settings = QMap< QString, QString >() |
|
) |
| |
|
explicit |
WpaSup class constructor.
- Parameters
-
debugCmd | show debug messages |
settings | default settings. Needed keys are CTRL_DIR (path to ctrl_directory), CTRL_GROUP (group which is owner of CTRL_DIR), PID_FILE (wpa_supplicant PID file), SUDO_PATH (path to sudo command), WPACLI_PATH (path to wpa_cli command), WPA_DRIVERS (wpa_supplicant drivers comma separated), WPASUP_PATH (path to wpa_supplicant command) |
QString WpaSup::existentProfile |
( |
const QString |
essid | ) |
|
method which gets profile name by ESSID
- Parameters
-
- Returns
- profile name
bool WpaSup::isProfileActive |
( |
const QString |
essid | ) |
|
method which checks profile status by ESSID
- Parameters
-
- Returns
- false if profile is inactive
-
true if profile is active
bool WpaSup::isProfileExists |
( |
const QString |
essid | ) |
|
method which checks profile existence by ESSID
- Parameters
-
- Returns
- false if profile does not exist
-
true if profile exists
QList<QStringList> WpaSup::scanWifi |
( |
| ) |
|
|
slot |
method which scans WiFi networks
- Returns
- list of essids. Available information is [NAME, NETCTL_STATUS, SIGNAL, SECUITY]: NAME is WiFi point name or "<hidden>", NETCTL_STATUS may be "new", "exist (active)", "exist (inactive)", SIGNAL is Wifi point signal, SECURITY may be "WPA2", "WEP", "WEP", "none"
bool WpaSup::startWpaSupplicant |
( |
| ) |
|
|
slot |
method which calls wpa_supplicant
- Returns
- false if components are not found or command exit code is not equal to 0
-
true if the method was completed without errors
bool WpaSup::stopWpaSupplicant |
( |
| ) |
|
|
slot |
method which send TERMINATE signal to wpa_supplicant
- Returns
- false if components are not found or command exit code is not equal to 0
-
true if the method was completed without errors
The documentation for this class was generated from the following file: