small commit

This commit is contained in:
arcan1s
2014-02-06 11:06:36 +04:00
parent fc43861ba6
commit 4a2a27176f
8 changed files with 203 additions and 18 deletions

View File

@ -29,15 +29,26 @@ class WpaSup : public QWidget
Q_OBJECT
public:
WpaSup(MainWindow *wid, QString wpaCliPath, QString ifaceDir);
WpaSup(MainWindow *wid, QStringList wpaConfig, QString sudoPath, QString ifaceDir, QString preferedInterface);
~WpaSup();
// general information
QStringList getInterfaceList();
// functions
bool wpaCliCall(QString commandLine);
QString getWpaCliOutput(QString commandLine);
public slots:
// functions
bool startWpaSupplicant();
bool stopWpaSupplicant();
QList<QStringList> scanWifi();
private:
MainWindow *parent;
QString wpaCliCommand;
QStringList wpaConf;
QString sudoCommand;
QDir *ifaceDirectory;
QString mainInterface;
};