From 61173774e047442d677a5e504fe076403e8349b3 Mon Sep 17 00:00:00 2001 From: arcan1s Date: Mon, 29 Jun 2015 00:13:05 +0300 Subject: [PATCH] update netctl-gui docs --- TODO | 8 - _config.yml | 2 +- devs/netctl-gui-dbus-api.html | 2 +- devs/netctl-gui-security-notes.html | 2 +- devs/netctl-gui/annotated.html | 4 +- devs/netctl-gui/class_netctl-members.html | 4 +- devs/netctl-gui/class_netctl.html | 4 +- .../class_netctl_interface-members.html | 4 +- devs/netctl-gui/class_netctl_interface.html | 4 +- .../class_netctl_profile-members.html | 4 +- devs/netctl-gui/class_netctl_profile.html | 4 +- devs/netctl-gui/class_wpa_sup-members.html | 4 +- devs/netctl-gui/class_wpa_sup.html | 4 +- devs/netctl-gui/classes.html | 4 +- .../dir_08d237fc27d4ecd563f71c5d52f2fecc.html | 4 +- .../dir_65c9e01252fc41f6e848ebca2af7e47b.html | 4 +- .../dir_e335b5ab077db6a8c30879452b1fc605.html | 4 +- .../dir_fe59a2a0e1774c507781b7be7e3787b8.html | 4 +- devs/netctl-gui/files.html | 4 +- devs/netctl-gui/functions.html | 4 +- devs/netctl-gui/functions_func.html | 4 +- devs/netctl-gui/functions_vars.html | 4 +- devs/netctl-gui/globals.html | 4 +- devs/netctl-gui/globals_enum.html | 4 +- devs/netctl-gui/globals_eval.html | 4 +- devs/netctl-gui/hierarchy.html | 4 +- devs/netctl-gui/index.html | 4 +- devs/netctl-gui/netctlgui_8h.html | 4 +- devs/netctl-gui/netctlgui_8h_source.html | 4 +- devs/netctl-gui/netctlinteract_8h.html | 4 +- devs/netctl-gui/netctlinteract_8h_source.html | 180 +++++++++--------- devs/netctl-gui/netctlinterface_8h.html | 4 +- .../netctl-gui/netctlinterface_8h_source.html | 10 +- devs/netctl-gui/netctlprofile_8h.html | 4 +- devs/netctl-gui/netctlprofile_8h_source.html | 60 +++--- .../structnetctl_current-members.html | 4 +- devs/netctl-gui/structnetctl_current.html | 4 +- .../structnetctl_information-members.html | 4 +- devs/netctl-gui/structnetctl_information.html | 4 +- .../structnetctl_profile_info-members.html | 4 +- .../netctl-gui/structnetctl_profile_info.html | 4 +- .../structnetctl_wifi_info-members.html | 4 +- devs/netctl-gui/structnetctl_wifi_info.html | 4 +- devs/netctl-gui/wpasupinteract_8h.html | 4 +- devs/netctl-gui/wpasupinteract_8h_source.html | 160 ++++++++-------- resources/css/styles.css | 4 +- 46 files changed, 287 insertions(+), 289 deletions(-) delete mode 100644 TODO diff --git a/TODO b/TODO deleted file mode 100644 index 16a2633..0000000 --- a/TODO +++ /dev/null @@ -1,8 +0,0 @@ -Для блога: - -Для проектов: -* запилить домашние страницы для тех проектов, которые должны их иметь (осталось только moldyn). -* И НЕ ПОЛЕНИТЬСЯ ОПИСАТЬ АРХИТЕКТУРУ для тех мест, где это нужно. - -Суммарно: -* баг фиксы (если найду). diff --git a/_config.yml b/_config.yml index 927b989..7ffa1a3 100644 --- a/_config.yml +++ b/_config.yml @@ -3,7 +3,7 @@ destination: ./_site plugins: ./_plugins layouts: ./_layouts include: ['.htaccess'] -exclude: ['.gitignore','Gemfile','Gemfile.lock','README.md','TODO','README.md'] +exclude: ['.gitignore','Gemfile','Gemfile.lock','README.md'] keep_files: ['.git','.svn'] gems: [] diff --git a/devs/netctl-gui-dbus-api.html b/devs/netctl-gui-dbus-api.html index c084e4f..6be9bcb 100644 --- a/devs/netctl-gui-dbus-api.html +++ b/devs/netctl-gui-dbus-api.html @@ -30,7 +30,7 @@ small {

netctl-gui DBus API description

-

Project version : 1.4.5

+

Project version : 1.4.7

  1. DBus API
  2. Helper API
  3. diff --git a/devs/netctl-gui-security-notes.html b/devs/netctl-gui-security-notes.html index cdbc389..11401ea 100644 --- a/devs/netctl-gui-security-notes.html +++ b/devs/netctl-gui-security-notes.html @@ -16,7 +16,7 @@ small {

    netctl-gui security notes

    -

    Project version : 1.4.5

    +

    Project version : 1.4.7

    1. Architecture
    2. Library
    3. diff --git a/devs/netctl-gui/annotated.html b/devs/netctl-gui/annotated.html index 4bee54d..6ef2d88 100644 --- a/devs/netctl-gui/annotated.html +++ b/devs/netctl-gui/annotated.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -104,7 +104,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/class_netctl-members.html b/devs/netctl-gui/class_netctl-members.html index 77e96fa..0f2ad29 100644 --- a/devs/netctl-gui/class_netctl-members.html +++ b/devs/netctl-gui/class_netctl-members.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -126,7 +126,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/class_netctl.html b/devs/netctl-gui/class_netctl.html index c2aa620..0d3846e 100644 --- a/devs/netctl-gui/class_netctl.html +++ b/devs/netctl-gui/class_netctl.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -1075,7 +1075,7 @@ true if the method was completed without errors diff --git a/devs/netctl-gui/class_netctl_interface-members.html b/devs/netctl-gui/class_netctl_interface-members.html index 6b21d72..19744ed 100644 --- a/devs/netctl-gui/class_netctl_interface-members.html +++ b/devs/netctl-gui/class_netctl_interface-members.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -110,7 +110,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/class_netctl_interface.html b/devs/netctl-gui/class_netctl_interface.html index 410fff7..a17ceb0 100644 --- a/devs/netctl-gui/class_netctl_interface.html +++ b/devs/netctl-gui/class_netctl_interface.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -607,7 +607,7 @@ InterfaceAnswer::Error if an error occurs diff --git a/devs/netctl-gui/class_netctl_profile-members.html b/devs/netctl-gui/class_netctl_profile-members.html index b7cbc38..eb24d2d 100644 --- a/devs/netctl-gui/class_netctl_profile-members.html +++ b/devs/netctl-gui/class_netctl_profile-members.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -104,7 +104,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/class_netctl_profile.html b/devs/netctl-gui/class_netctl_profile.html index 7d8555d..6a782d8 100644 --- a/devs/netctl-gui/class_netctl_profile.html +++ b/devs/netctl-gui/class_netctl_profile.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -421,7 +421,7 @@ true if the method was completed without errors diff --git a/devs/netctl-gui/class_wpa_sup-members.html b/devs/netctl-gui/class_wpa_sup-members.html index 82a3b1a..eac80f2 100644 --- a/devs/netctl-gui/class_wpa_sup-members.html +++ b/devs/netctl-gui/class_wpa_sup-members.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -105,7 +105,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/class_wpa_sup.html b/devs/netctl-gui/class_wpa_sup.html index 084fa15..4915688 100644 --- a/devs/netctl-gui/class_wpa_sup.html +++ b/devs/netctl-gui/class_wpa_sup.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -428,7 +428,7 @@ true if the method was completed without errors diff --git a/devs/netctl-gui/classes.html b/devs/netctl-gui/classes.html index 6826a38..b06848c 100644 --- a/devs/netctl-gui/classes.html +++ b/devs/netctl-gui/classes.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -105,7 +105,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/dir_08d237fc27d4ecd563f71c5d52f2fecc.html b/devs/netctl-gui/dir_08d237fc27d4ecd563f71c5d52f2fecc.html index d521825..ecbf76e 100644 --- a/devs/netctl-gui/dir_08d237fc27d4ecd563f71c5d52f2fecc.html +++ b/devs/netctl-gui/dir_08d237fc27d4ecd563f71c5d52f2fecc.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -94,7 +94,7 @@ Directories diff --git a/devs/netctl-gui/dir_65c9e01252fc41f6e848ebca2af7e47b.html b/devs/netctl-gui/dir_65c9e01252fc41f6e848ebca2af7e47b.html index 743924e..2b120e1 100644 --- a/devs/netctl-gui/dir_65c9e01252fc41f6e848ebca2af7e47b.html +++ b/devs/netctl-gui/dir_65c9e01252fc41f6e848ebca2af7e47b.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -94,7 +94,7 @@ Directories diff --git a/devs/netctl-gui/dir_e335b5ab077db6a8c30879452b1fc605.html b/devs/netctl-gui/dir_e335b5ab077db6a8c30879452b1fc605.html index 589c58d..e130d76 100644 --- a/devs/netctl-gui/dir_e335b5ab077db6a8c30879452b1fc605.html +++ b/devs/netctl-gui/dir_e335b5ab077db6a8c30879452b1fc605.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -94,7 +94,7 @@ Directories diff --git a/devs/netctl-gui/dir_fe59a2a0e1774c507781b7be7e3787b8.html b/devs/netctl-gui/dir_fe59a2a0e1774c507781b7be7e3787b8.html index f7c8a35..74dd419 100644 --- a/devs/netctl-gui/dir_fe59a2a0e1774c507781b7be7e3787b8.html +++ b/devs/netctl-gui/dir_fe59a2a0e1774c507781b7be7e3787b8.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -102,7 +102,7 @@ Files diff --git a/devs/netctl-gui/files.html b/devs/netctl-gui/files.html index eb39633..88600e1 100644 --- a/devs/netctl-gui/files.html +++ b/devs/netctl-gui/files.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -99,7 +99,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/functions.html b/devs/netctl-gui/functions.html index 0de9995..f36be8a 100644 --- a/devs/netctl-gui/functions.html +++ b/devs/netctl-gui/functions.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -409,7 +409,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/functions_func.html b/devs/netctl-gui/functions_func.html index 2ab703f..68fdc22 100644 --- a/devs/netctl-gui/functions_func.html +++ b/devs/netctl-gui/functions_func.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -334,7 +334,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/functions_vars.html b/devs/netctl-gui/functions_vars.html index cac9853..4ef12b8 100644 --- a/devs/netctl-gui/functions_vars.html +++ b/devs/netctl-gui/functions_vars.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -159,7 +159,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/globals.html b/devs/netctl-gui/globals.html index 33cc351..1dd0d3f 100644 --- a/devs/netctl-gui/globals.html +++ b/devs/netctl-gui/globals.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -122,7 +122,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/globals_enum.html b/devs/netctl-gui/globals_enum.html index 961d73a..f27aa5d 100644 --- a/devs/netctl-gui/globals_enum.html +++ b/devs/netctl-gui/globals_enum.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -101,7 +101,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/globals_eval.html b/devs/netctl-gui/globals_eval.html index baccec1..a7f3bbd 100644 --- a/devs/netctl-gui/globals_eval.html +++ b/devs/netctl-gui/globals_eval.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -116,7 +116,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/hierarchy.html b/devs/netctl-gui/hierarchy.html index 487d49c..52a847d 100644 --- a/devs/netctl-gui/hierarchy.html +++ b/devs/netctl-gui/hierarchy.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -105,7 +105,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/index.html b/devs/netctl-gui/index.html index 21b4124..c578bc3 100644 --- a/devs/netctl-gui/index.html +++ b/devs/netctl-gui/index.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -84,7 +84,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/netctlgui_8h.html b/devs/netctl-gui/netctlgui_8h.html index cb9739d..03cc9f7 100644 --- a/devs/netctl-gui/netctlgui_8h.html +++ b/devs/netctl-gui/netctlgui_8h.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -99,7 +99,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/netctlgui_8h_source.html b/devs/netctl-gui/netctlgui_8h_source.html index 63a7ccb..f5b12ad 100644 --- a/devs/netctl-gui/netctlgui_8h_source.html +++ b/devs/netctl-gui/netctlgui_8h_source.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -117,7 +117,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/netctlinteract_8h.html b/devs/netctl-gui/netctlinteract_8h.html index d7d2ae2..2f1b64b 100644 --- a/devs/netctl-gui/netctlinteract_8h.html +++ b/devs/netctl-gui/netctlinteract_8h.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -111,7 +111,7 @@ Classes diff --git a/devs/netctl-gui/netctlinteract_8h_source.html b/devs/netctl-gui/netctlinteract_8h_source.html index 4437c67..444a646 100644 --- a/devs/netctl-gui/netctlinteract_8h_source.html +++ b/devs/netctl-gui/netctlinteract_8h_source.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -114,110 +114,112 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
      30 #include <QMap>
      31 #include <QObject>
      32 
      -
      33 
      -
      34 class NetctlProfile;
      +
      33 #include "version.h"
      +
      34 
      35 
      -
      56 typedef struct
      -
      57 {
      -
      58  QString name;
      -
      59  QString description;
      -
      60  QString essid;
      -
      61  QString interface;
      -
      62  QString type;
      -
      63  bool active = false;
      -
      64  bool enabled = false;
      -
      65  bool netctlAuto = false;
      - -
      67 
      -
      71 class Netctl : public QObject
      -
      72 {
      -
      73  Q_OBJECT
      -
      74 
      -
      75 public:
      -
      90  explicit Netctl(const bool debugCmd = false,
      -
      91  const QMap<QString, QString> settings = QMap<QString, QString>());
      -
      95  ~Netctl();
      -
      96  // general information
      -
      101  QStringList getActiveProfile();
      -
      106  QString autoGetActiveProfile();
      -
      111  QList<netctlProfileInfo> getProfileList();
      -
      116  QList<netctlProfileInfo> getProfileListFromNetctlAuto();
      -
      122  Q_DECL_DEPRECATED QString getProfileDescription(const QString profile);
      -
      129  QString getProfileStatus(const QString profile);
      -
      136  bool isProfileActive(const QString profile);
      -
      143  bool isProfileEnabled(const QString profile);
      -
      150  bool autoIsProfileActive(const QString profile);
      -
      157  bool autoIsProfileEnabled(const QString profile);
      -
      163  bool isNetctlAutoEnabled();
      -
      169  bool isNetctlAutoRunning();
      -
      174  static QMap<QString, QString> getRecommendedConfiguration();
      -
      179  QStringList getWirelessInterfaceList();
      -
      180 
      -
      181 public slots:
      -
      182  // functions
      -
      183  // netctl
      -
      190  bool enableProfile(const QString profile);
      -
      197  bool forceStartProfile(const QString profile);
      -
      204  bool forceStopProfile(const QString profile);
      -
      211  bool reenableProfile(const QString profile);
      -
      218  bool restartProfile(const QString profile);
      -
      225  bool startProfile(const QString profile);
      -
      231  bool stopAllProfiles();
      -
      238  bool switchToProfile(const QString profile);
      -
      239  // netctl-auto
      -
      245  bool autoDisableAllProfiles();
      -
      252  bool autoEnableProfile(const QString profile);
      -
      258  bool autoEnableAllProfiles();
      -
      265  bool autoStartProfile(const QString profile);
      -
      266  // netctl-auto service
      -
      272  bool autoEnableService();
      -
      278  bool autoRestartService();
      -
      284  bool autoStartService();
      -
      285 
      -
      286 private:
      -
      290  NetctlProfile *netctlProfile = nullptr;
      -
      294  bool debug = false;
      -
      298  bool useSuid = true;
      -
      302  QDir *ifaceDirectory = nullptr;
      -
      306  QString mainInterface = QString("");
      -
      310  QString netctlCommand = QString("/usr/bin/netctl");
      -
      314  QString netctlAutoCommand = QString("/usr/bin/netctl-auto");
      -
      318  QString netctlAutoService = QString("netctl-auto");
      -
      322  QString sudoCommand = QString("/usr/bin/kdesu");
      -
      326  QString systemctlCommand = QString("/usr/bin/systemctl");
      -
      327  // functions
      -
      337  bool cmdCall(const bool sudo, const QString command,
      -
      338  const QString commandLine, const QString argument = 0);
      -
      347  QString getCmdOutput(const bool sudo, const QString command,
      -
      348  const QString commandLine, const QString argument = 0);
      -
      349 };
      -
      350 
      -
      351 
      -
      352 #endif /* NETCTLINTERACT_H */
      +
      36 class NetctlProfile;
      +
      37 
      +
      58 typedef struct
      +
      59 {
      +
      60  QString name;
      +
      61  QString description;
      +
      62  QString essid;
      +
      63  QString interface;
      +
      64  QString type;
      +
      65  bool active = false;
      +
      66  bool enabled = false;
      +
      67  bool netctlAuto = false;
      + +
      69 
      +
      73 class Netctl : public QObject
      +
      74 {
      +
      75  Q_OBJECT
      +
      76 
      +
      77 public:
      +
      92  explicit Netctl(const bool debugCmd = false,
      +
      93  const QMap<QString, QString> settings = QMap<QString, QString>());
      +
      97  ~Netctl();
      +
      98  // general information
      +
      103  QStringList getActiveProfile();
      +
      108  QString autoGetActiveProfile();
      +
      113  QList<netctlProfileInfo> getProfileList();
      +
      118  QList<netctlProfileInfo> getProfileListFromNetctlAuto();
      +
      124  Q_DECL_DEPRECATED QString getProfileDescription(const QString profile);
      +
      131  QString getProfileStatus(const QString profile);
      +
      138  bool isProfileActive(const QString profile);
      +
      145  bool isProfileEnabled(const QString profile);
      +
      152  bool autoIsProfileActive(const QString profile);
      +
      159  bool autoIsProfileEnabled(const QString profile);
      +
      165  bool isNetctlAutoEnabled();
      +
      171  bool isNetctlAutoRunning();
      +
      176  static QMap<QString, QString> getRecommendedConfiguration();
      +
      181  QStringList getWirelessInterfaceList();
      +
      182 
      +
      183 public slots:
      +
      184  // functions
      +
      185  // netctl
      +
      192  bool enableProfile(const QString profile);
      +
      199  bool forceStartProfile(const QString profile);
      +
      206  bool forceStopProfile(const QString profile);
      +
      213  bool reenableProfile(const QString profile);
      +
      220  bool restartProfile(const QString profile);
      +
      227  bool startProfile(const QString profile);
      +
      233  bool stopAllProfiles();
      +
      240  bool switchToProfile(const QString profile);
      +
      241  // netctl-auto
      +
      247  bool autoDisableAllProfiles();
      +
      254  bool autoEnableProfile(const QString profile);
      +
      260  bool autoEnableAllProfiles();
      +
      267  bool autoStartProfile(const QString profile);
      +
      268  // netctl-auto service
      +
      274  bool autoEnableService();
      +
      280  bool autoRestartService();
      +
      286  bool autoStartService();
      +
      287 
      +
      288 private:
      +
      292  NetctlProfile *netctlProfile = nullptr;
      +
      296  bool debug = false;
      +
      300  bool useSuid = true;
      +
      304  QDir *ifaceDirectory = nullptr;
      +
      308  QString mainInterface = QString(PREFERED_IFACE);
      +
      312  QString netctlCommand = QString(NETCTL_PATH);
      +
      316  QString netctlAutoCommand = QString(NETCTLAUTO_PATH);
      +
      320  QString netctlAutoService = QString(NETCTLAUTO_SERVICE);
      +
      324  QString sudoCommand = QString(SUDO_PATH);
      +
      328  QString systemctlCommand = QString(SYSTEMCTL_PATH);
      +
      329  // functions
      +
      339  bool cmdCall(const bool sudo, const QString command,
      +
      340  const QString commandLine, const QString argument = 0);
      +
      349  QString getCmdOutput(const bool sudo, const QString command,
      +
      350  const QString commandLine, const QString argument = 0);
      +
      351 };
      +
      352 
      +
      353 
      +
      354 #endif /* NETCTLINTERACT_H */
      QString getProfileStatus(const QString profile)
      method which gets profile status
      QStringList getActiveProfile()
      method which returns active profile name
      -
      QString name
      Definition: netctlinteract.h:58
      +
      QString name
      Definition: netctlinteract.h:60
      bool autoIsProfileActive(const QString profile)
      method which checks if profile is active (netctl-auto)
      bool autoEnableProfile(const QString profile)
      method which sets profile disabled or enabled (netctl-auto)
      bool forceStartProfile(const QString profile)
      method which force starts profile
      bool restartProfile(const QString profile)
      method which restarts profile
      -
      QString interface
      Definition: netctlinteract.h:61
      -
      netctl profile information structure
      Definition: netctlinteract.h:56
      +
      QString interface
      Definition: netctlinteract.h:63
      +
      netctl profile information structure
      Definition: netctlinteract.h:58
      bool stopAllProfiles()
      method which stops all profiles
      static QMap< QString, QString > getRecommendedConfiguration()
      method which check system configuration and return recommended values to keys
      bool autoEnableAllProfiles()
      method which sets all profiles enabled (netctl-auto)
      bool autoStartProfile(const QString profile)
      method which switchs to profile (netctl-auto)
      Q_DECL_DEPRECATED QString getProfileDescription(const QString profile)
      method which gets description from profile
      -
      QString essid
      Definition: netctlinteract.h:60
      +
      QString essid
      Definition: netctlinteract.h:62
      ~Netctl()
      Netctl class destructor.
      -
      QString type
      Definition: netctlinteract.h:62
      +
      QString type
      Definition: netctlinteract.h:64
      bool enableProfile(const QString profile)
      method which sets profile disabled or enabled
      -
      The NetctlProfile class interacts with netctl profiles.
      Definition: netctlprofile.h:37
      +
      The NetctlProfile class interacts with netctl profiles.
      Definition: netctlprofile.h:39
      bool isProfileActive(const QString profile)
      method which checks if profile is active
      bool isProfileEnabled(const QString profile)
      method which checks if profile is enabled
      -
      The Netctl class interacts with netctl.
      Definition: netctlinteract.h:71
      +
      The Netctl class interacts with netctl.
      Definition: netctlinteract.h:73
      bool autoEnableService()
      method which sets netctl-auto service enabled or disabled
      -
      QString description
      Definition: netctlinteract.h:59
      +
      QString description
      Definition: netctlinteract.h:61
      bool reenableProfile(const QString profile)
      method which reenables profile
      bool isNetctlAutoEnabled()
      method which checks netctl-auto autoload status
      QList< netctlProfileInfo > getProfileList()
      method which returns profile informations from netctl
      @@ -236,7 +238,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/netctlinterface_8h.html b/devs/netctl-gui/netctlinterface_8h.html index c951fac..8b9fa4c 100644 --- a/devs/netctl-gui/netctlinterface_8h.html +++ b/devs/netctl-gui/netctlinterface_8h.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -150,7 +150,7 @@ Enumerations diff --git a/devs/netctl-gui/netctlinterface_8h_source.html b/devs/netctl-gui/netctlinterface_8h_source.html index 5dfa9ed..1fe211a 100644 --- a/devs/netctl-gui/netctlinterface_8h_source.html +++ b/devs/netctl-gui/netctlinterface_8h_source.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -185,8 +185,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
      InterfaceAnswer startProfile(const QString profile)
      method which starts/stops or switchs to selected profile and returns its status
      The NetctlInterface class provides complex methods to get access to library.
      Definition: netctlinterface.h:97
      QList< netctlProfileInfo > netctlAutoProfiles
      Definition: netctlinterface.h:89
      -
      The NetctlProfile class interacts with netctl profiles.
      Definition: netctlprofile.h:37
      -
      The Netctl class interacts with netctl.
      Definition: netctlinteract.h:71
      +
      The NetctlProfile class interacts with netctl profiles.
      Definition: netctlprofile.h:39
      +
      The Netctl class interacts with netctl.
      Definition: netctlinteract.h:73
      QList< bool > enables
      Definition: netctlinterface.h:69
      InterfaceAnswer enableProfile(const QString profile)
      method which enables or disables selected profile and returns its status
      InterfaceAnswer connectToEssid(const QString essid, QMap< QString, QString > settings)
      method which connects to ESSID
      @@ -201,7 +201,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
      general information structure
      Definition: netctlinterface.h:86
      NetctlInterface(const bool debugCmd=false, const QMap< QString, QString > settings=QMap< QString, QString >())
      NetctlInterface class constructor.
      -
      The WpaSup class interacts with wpa_supplicant.
      Definition: wpasupinteract.h:91
      +
      The WpaSup class interacts with wpa_supplicant.
      Definition: wpasupinteract.h:93
      InterfaceAnswer switchToProfile(const QString profile)
      method which switchs to selected profile and returns its status
      netctlInformation information()
      method which returns general information
      InterfaceAnswer removeProfile(const QString profile)
      method which removes selected profile
      @@ -210,7 +210,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/netctlprofile_8h.html b/devs/netctl-gui/netctlprofile_8h.html index 697c8c9..48e4ed5 100644 --- a/devs/netctl-gui/netctlprofile_8h.html +++ b/devs/netctl-gui/netctlprofile_8h.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -108,7 +108,7 @@ Classes diff --git a/devs/netctl-gui/netctlprofile_8h_source.html b/devs/netctl-gui/netctlprofile_8h_source.html index 86449ce..3e57396 100644 --- a/devs/netctl-gui/netctlprofile_8h_source.html +++ b/devs/netctl-gui/netctlprofile_8h_source.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -114,37 +114,39 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
      30 #include <QMap>
      31 #include <QObject>
      32 
      -
      33 
      -
      37 class NetctlProfile : public QObject
      -
      38 {
      -
      39  Q_OBJECT
      -
      40 
      -
      41 public:
      -
      50  explicit NetctlProfile(const bool debugCmd = false,
      -
      51  const QMap<QString, QString> settings = QMap<QString, QString>());
      - -
      62  bool copyProfile(const QString oldPath);
      -
      69  QString createProfile(const QString profile, const QMap<QString, QString> settings);
      -
      74  static QMap<QString, QString> getRecommendedConfiguration();
      -
      80  QMap<QString, QString> getSettingsFromProfile(const QString profile);
      -
      87  QString getValueFromProfile(const QString profile, const QString key);
      -
      94  QStringList getValuesFromProfile(const QString profile, const QStringList keys);
      -
      101  bool removeProfile(const QString profile);
      -
      102 
      -
      103 private:
      -
      107  bool debug = false;
      -
      111  bool useSuid = true;
      -
      115  QDir *profileDirectory = nullptr;
      -
      119  QString sudoCommand = QString("/usr/bin/kdesu");
      -
      120 };
      -
      121 
      -
      122 
      -
      123 #endif /* NETCTLPROFILE_H */
      +
      33 #include "version.h"
      +
      34 
      +
      35 
      +
      39 class NetctlProfile : public QObject
      +
      40 {
      +
      41  Q_OBJECT
      +
      42 
      +
      43 public:
      +
      52  explicit NetctlProfile(const bool debugCmd = false,
      +
      53  const QMap<QString, QString> settings = QMap<QString, QString>());
      + +
      64  bool copyProfile(const QString oldPath);
      +
      71  QString createProfile(const QString profile, const QMap<QString, QString> settings);
      +
      76  static QMap<QString, QString> getRecommendedConfiguration();
      +
      82  QMap<QString, QString> getSettingsFromProfile(const QString profile);
      +
      89  QString getValueFromProfile(const QString profile, const QString key);
      +
      96  QStringList getValuesFromProfile(const QString profile, const QStringList keys);
      +
      103  bool removeProfile(const QString profile);
      +
      104 
      +
      105 private:
      +
      109  bool debug = false;
      +
      113  bool useSuid = true;
      +
      117  QDir *profileDirectory = nullptr;
      +
      121  QString sudoCommand = QString(SUDO_PATH);
      +
      122 };
      +
      123 
      +
      124 
      +
      125 #endif /* NETCTLPROFILE_H */
      QString createProfile(const QString profile, const QMap< QString, QString > settings)
      method which creates temporary profile
      QMap< QString, QString > getSettingsFromProfile(const QString profile)
      method which reads settings from profile
      QString getValueFromProfile(const QString profile, const QString key)
      method which return value from profile by key
      NetctlProfile(const bool debugCmd=false, const QMap< QString, QString > settings=QMap< QString, QString >())
      NetctlProfile class constructor.
      -
      The NetctlProfile class interacts with netctl profiles.
      Definition: netctlprofile.h:37
      +
      The NetctlProfile class interacts with netctl profiles.
      Definition: netctlprofile.h:39
      static QMap< QString, QString > getRecommendedConfiguration()
      method which check system configuration and return recommended values to keys
      ~NetctlProfile()
      Netctl class destructor.
      bool copyProfile(const QString oldPath)
      method which copies temporary profile to PROFILE_DIR
      @@ -153,7 +155,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/structnetctl_current-members.html b/devs/netctl-gui/structnetctl_current-members.html index 11f014f..64fb67f 100644 --- a/devs/netctl-gui/structnetctl_current-members.html +++ b/devs/netctl-gui/structnetctl_current-members.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -99,7 +99,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/structnetctl_current.html b/devs/netctl-gui/structnetctl_current.html index b098926..5bc69a5 100644 --- a/devs/netctl-gui/structnetctl_current.html +++ b/devs/netctl-gui/structnetctl_current.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -168,7 +168,7 @@ Public Attributes diff --git a/devs/netctl-gui/structnetctl_information-members.html b/devs/netctl-gui/structnetctl_information-members.html index 10b84eb..ee3c736 100644 --- a/devs/netctl-gui/structnetctl_information-members.html +++ b/devs/netctl-gui/structnetctl_information-members.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -99,7 +99,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/structnetctl_information.html b/devs/netctl-gui/structnetctl_information.html index c0e2794..2390993 100644 --- a/devs/netctl-gui/structnetctl_information.html +++ b/devs/netctl-gui/structnetctl_information.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -168,7 +168,7 @@ Public Attributes diff --git a/devs/netctl-gui/structnetctl_profile_info-members.html b/devs/netctl-gui/structnetctl_profile_info-members.html index f7f6c12..87a83e4 100644 --- a/devs/netctl-gui/structnetctl_profile_info-members.html +++ b/devs/netctl-gui/structnetctl_profile_info-members.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -103,7 +103,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/structnetctl_profile_info.html b/devs/netctl-gui/structnetctl_profile_info.html index cc68c60..5224306 100644 --- a/devs/netctl-gui/structnetctl_profile_info.html +++ b/devs/netctl-gui/structnetctl_profile_info.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -228,7 +228,7 @@ Public Attributes diff --git a/devs/netctl-gui/structnetctl_wifi_info-members.html b/devs/netctl-gui/structnetctl_wifi_info-members.html index 58d2eb2..e4fe028 100644 --- a/devs/netctl-gui/structnetctl_wifi_info-members.html +++ b/devs/netctl-gui/structnetctl_wifi_info-members.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -103,7 +103,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/netctl-gui/structnetctl_wifi_info.html b/devs/netctl-gui/structnetctl_wifi_info.html index 0d63374..784d5dd 100644 --- a/devs/netctl-gui/structnetctl_wifi_info.html +++ b/devs/netctl-gui/structnetctl_wifi_info.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -228,7 +228,7 @@ Public Attributes diff --git a/devs/netctl-gui/wpasupinteract_8h.html b/devs/netctl-gui/wpasupinteract_8h.html index d193cdb..daacaf5 100644 --- a/devs/netctl-gui/wpasupinteract_8h.html +++ b/devs/netctl-gui/wpasupinteract_8h.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -151,7 +151,7 @@ Enumerations diff --git a/devs/netctl-gui/wpasupinteract_8h_source.html b/devs/netctl-gui/wpasupinteract_8h_source.html index e7a69d8..4cd59b5 100644 --- a/devs/netctl-gui/wpasupinteract_8h_source.html +++ b/devs/netctl-gui/wpasupinteract_8h_source.html @@ -25,7 +25,7 @@ Logo
      netctlgui -  1.4.5 +  1.4.7
      Qt library which interacts with netctl
      @@ -114,97 +114,99 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
      30 #include <QMap>
      31 #include <QObject>
      32 
      -
      33 
      -
      34 class Netctl;
      -
      35 class NetctlProfile;
      -
      36 
      -
      49 enum PointType {
      -
      50  None = 0,
      - - - -
      54 };
      -
      55 
      -
      76 typedef struct
      -
      77 {
      -
      78  QList<int> frequencies;
      -
      79  QStringList macs;
      -
      80  QString name;
      -
      81  QString security;
      -
      82  int signal = 0;
      - -
      84  bool active = false;
      -
      85  bool exists = false;
      - -
      87 
      -
      91 class WpaSup : public QObject
      -
      92 {
      -
      93  Q_OBJECT
      -
      94 
      -
      95 public:
      -
      109  explicit WpaSup(const bool debugCmd = false,
      -
      110  const QMap<QString, QString> settings = QMap<QString, QString>());
      -
      114  ~WpaSup();
      -
      115  // general information
      -
      121  QString existentProfile(const QString essid);
      -
      126  static QMap<QString, QString> getRecommendedConfiguration();
      -
      133  bool isProfileActive(const QString essid);
      -
      140  Q_DECL_DEPRECATED bool isProfileExists(const QString essid);
      -
      141 
      -
      142 public slots:
      -
      143  // functions
      - -
      153  QList<netctlWifiInfo> scanWifi();
      -
      159  bool startWpaSupplicant();
      -
      165  bool stopWpaSupplicant();
      -
      166 
      -
      167 private:
      -
      171  Netctl *netctlCommand = nullptr;
      -
      175  NetctlProfile *netctlProfile = nullptr;
      -
      179  bool debug = false;
      -
      183  bool useSuid = true;
      -
      187  QString ctrlDir = QString("/run/wpa_supplicant");
      -
      191  QString ctrlGroup = QString("users");
      -
      195  QString pidFile = QString("/run/wpa_supplicant_$i.pid");
      -
      199  QString sudoCommand = QString("/usr/bin/kdesu");
      -
      203  QString wpaCliPath = QString("/usr/bin/wpa_cli");
      -
      207  QString wpaDrivers = QString("nl80211,wext");
      -
      211  QString wpaSupPath = QString("/usr/bin/wpa_supplicant");
      -
      212  // functions
      -
      218  QString getWpaCliOutput(const QString commandLine);
      -
      223  bool waitForProcess(const int sec);
      -
      230  bool wpaCliCall(const QString commandLine);
      -
      231 };
      -
      232 
      -
      233 
      -
      234 #endif /* WPASUPINTERACT_H */
      -
      Definition: wpasupinteract.h:53
      +
      33 #include "version.h"
      +
      34 
      +
      35 
      +
      36 class Netctl;
      +
      37 class NetctlProfile;
      +
      38 
      +
      51 enum PointType {
      +
      52  None = 0,
      + + + +
      56 };
      +
      57 
      +
      78 typedef struct
      +
      79 {
      +
      80  QList<int> frequencies;
      +
      81  QStringList macs;
      +
      82  QString name;
      +
      83  QString security;
      +
      84  int signal = 0;
      + +
      86  bool active = false;
      +
      87  bool exists = false;
      + +
      89 
      +
      93 class WpaSup : public QObject
      +
      94 {
      +
      95  Q_OBJECT
      +
      96 
      +
      97 public:
      +
      111  explicit WpaSup(const bool debugCmd = false,
      +
      112  const QMap<QString, QString> settings = QMap<QString, QString>());
      +
      116  ~WpaSup();
      +
      117  // general information
      +
      123  QString existentProfile(const QString essid);
      +
      128  static QMap<QString, QString> getRecommendedConfiguration();
      +
      135  bool isProfileActive(const QString essid);
      +
      142  Q_DECL_DEPRECATED bool isProfileExists(const QString essid);
      +
      143 
      +
      144 public slots:
      +
      145  // functions
      + +
      155  QList<netctlWifiInfo> scanWifi();
      +
      161  bool startWpaSupplicant();
      +
      167  bool stopWpaSupplicant();
      +
      168 
      +
      169 private:
      +
      173  Netctl *netctlCommand = nullptr;
      +
      177  NetctlProfile *netctlProfile = nullptr;
      +
      181  bool debug = false;
      +
      185  bool useSuid = true;
      +
      189  QString ctrlDir = QString(CTRL_DIR);
      +
      193  QString ctrlGroup = QString(CTRL_GROUP);
      +
      197  QString pidFile = QString(PID_FILE);
      +
      201  QString sudoCommand = QString(SUDO_PATH);
      +
      205  QString wpaCliPath = QString(WPACLI_PATH);
      +
      209  QString wpaDrivers = QString(WPA_DRIVERS);
      +
      213  QString wpaSupPath = QString(WPASUP_PATH);
      +
      214  // functions
      +
      220  QString getWpaCliOutput(const QString commandLine);
      +
      225  bool waitForProcess(const int sec);
      +
      232  bool wpaCliCall(const QString commandLine);
      +
      233 };
      +
      234 
      +
      235 
      +
      236 #endif /* WPASUPINTERACT_H */
      +
      Definition: wpasupinteract.h:55
      bool stopWpaSupplicant()
      method which send TERMINATE signal to wpa_supplicant
      netctlWifiInfo current()
      method which returns active point information
      QList< netctlWifiInfo > scanWifi()
      method which scans WiFi networks
      WpaSup(const bool debugCmd=false, const QMap< QString, QString > settings=QMap< QString, QString >())
      WpaSup class constructor.
      Q_DECL_DEPRECATED bool isProfileExists(const QString essid)
      method which checks profile existence by ESSID
      -
      QList< int > frequencies
      Definition: wpasupinteract.h:78
      -
      QString name
      Definition: wpasupinteract.h:80
      -
      QString security
      Definition: wpasupinteract.h:81
      -
      The NetctlProfile class interacts with netctl profiles.
      Definition: netctlprofile.h:37
      -
      Definition: wpasupinteract.h:51
      -
      Definition: wpasupinteract.h:52
      +
      QList< int > frequencies
      Definition: wpasupinteract.h:80
      +
      QString name
      Definition: wpasupinteract.h:82
      +
      QString security
      Definition: wpasupinteract.h:83
      +
      The NetctlProfile class interacts with netctl profiles.
      Definition: netctlprofile.h:39
      +
      Definition: wpasupinteract.h:53
      +
      Definition: wpasupinteract.h:54
      bool isProfileActive(const QString essid)
      method which checks profile status by ESSID
      -
      The Netctl class interacts with netctl.
      Definition: netctlinteract.h:71
      -
      PointType
      WiFi point type.
      Definition: wpasupinteract.h:49
      +
      The Netctl class interacts with netctl.
      Definition: netctlinteract.h:73
      +
      PointType
      WiFi point type.
      Definition: wpasupinteract.h:51
      ~WpaSup()
      WpaSup class destructor.
      QString existentProfile(const QString essid)
      method which gets profile name by ESSID
      -
      Definition: wpasupinteract.h:50
      -
      QStringList macs
      Definition: wpasupinteract.h:79
      +
      Definition: wpasupinteract.h:52
      +
      QStringList macs
      Definition: wpasupinteract.h:81
      bool startWpaSupplicant()
      method which calls wpa_supplicant
      -
      The WpaSup class interacts with wpa_supplicant.
      Definition: wpasupinteract.h:91
      -
      WiFi information structure.
      Definition: wpasupinteract.h:76
      +
      The WpaSup class interacts with wpa_supplicant.
      Definition: wpasupinteract.h:93
      +
      WiFi information structure.
      Definition: wpasupinteract.h:78
      static QMap< QString, QString > getRecommendedConfiguration()
      method which check system configuration and return recommended values to keys
      diff --git a/resources/css/styles.css b/resources/css/styles.css index 0732bc0..e7ce9b0 100644 --- a/resources/css/styles.css +++ b/resources/css/styles.css @@ -42,7 +42,7 @@ height: auto !important; padding: 0; color: #222222; - font: 13px/1.5 "Liberation Serif", Helvetica, Arial, sans-serif; + font: 13px/1.5 "Liberation Sans", Helvetica, Arial, sans-serif; } /* in-text images */ @@ -133,7 +133,7 @@ figure.img figcaption { body { padding: 50px; - font: 14px/1.5 "Liberation Serif", Helvetica, Arial, sans-serif; + font: 14px/1.5 "Liberation Sans", Helvetica, Arial, sans-serif; color: #555555; background: #eaeaea }