rewrite tables

This commit is contained in:
arcan1s
2014-08-06 13:12:18 +04:00
parent 0bade9c42f
commit 2aa6b43e61
11 changed files with 297 additions and 201 deletions

View File

@ -41,9 +41,9 @@ class NetctlProfile;
* @var netctlProfileInfo::description
* profile description
* @var netctlProfileInfo::active
* profile status
* whether profile is active
* @var netctlProfileInfo::enabled
* profile status
* whether profile is enabled
*/
typedef struct
{
@ -81,6 +81,16 @@ public:
*/
~Netctl();
// general information
/**
* @brief method which returns active profile name
* @return profile name or ""
*/
QString getActiveProfile();
/**
* @brief method which returns active profile name from netctl-auto
* @return profile name or ""
*/
QString autoGetActiveProfile();
/**
* @brief method which returns profile informations from netctl
* @return list of profiles
@ -174,6 +184,13 @@ public slots:
* @return true if the method was completed without errors
*/
bool startProfile(const QString profile);
/**
* @brief method which starts another profile
* @param profile profile name
* @return false if components are not found or command exit code is not equal to 0
* @return true if the method was completed without errors
*/
bool switchToProfile(const QString profile);
// netctl-auto
/**
* @brief method which sets all profiles disabled (netctl-auto)

View File

@ -43,15 +43,18 @@ class NetctlProfile;
* may be "WPA2", "WEP", "WEP", "none"
* @var netctlWifiInfo::signal
* Wifi point signal
* @var netctlWifiInfo::status
* netctl status, may be "new", "exist (active)", "exist (inactive)"
* @var netctlWifiInfo::active
* whether associated profile is active
* @var netctlWifiInfo::exists
* whether associated profile exists
*/
typedef struct
{
QString name;
QString security;
QString signal;
QString status;
bool active;
bool exists;
} netctlWifiInfo;
/**