netctlgui  1.2.0
Qt library which interacts with netctl
 All Classes Files Functions
Public Slots | Public Member Functions | List of all members
WpaSup Class Reference

The WpaSup class interacts with wpa_supplicant. More...

Inheritance diagram for WpaSup:

Public Slots

QList< QStringList > scanWifi ()
 method which scans WiFi networks More...
 
bool startWpaSupplicant ()
 method which calls wpa_supplicant More...
 
bool stopWpaSupplicant ()
 method which send TERMINATE signal to wpa_supplicant More...
 

Public Member Functions

 WpaSup (const bool debugCmd=false, const QMap< QString, QString > settings=QMap< QString, QString >())
 WpaSup class constructor. More...
 
 ~WpaSup ()
 WpaSup class destructor. More...
 
QString existentProfile (const QString essid)
 method which gets profile name by ESSID More...
 
bool isProfileActive (const QString essid)
 method which checks profile status by ESSID More...
 
bool isProfileExists (const QString essid)
 method which checks profile existence by ESSID More...
 

Detailed Description

The WpaSup class interacts with wpa_supplicant.

Constructor & Destructor Documentation

WpaSup::WpaSup ( const bool  debugCmd = false,
const QMap< QString, QString >  settings = QMap< QString, QString >() 
)
explicit

WpaSup class constructor.

Parameters
debugCmdshow debug messages
settingsdefault 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)
WpaSup::~WpaSup ( )

WpaSup class destructor.

Member Function Documentation

QString WpaSup::existentProfile ( const QString  essid)

method which gets profile name by ESSID

Parameters
essidESSID name
Returns
profile name
bool WpaSup::isProfileActive ( const QString  essid)

method which checks profile status by ESSID

Parameters
essidESSID name
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
essidESSID name
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: