# netctlgui: wpasupinteract.h Source File

All Classes Files Functions
wpasupinteract.h
Go to the documentation of this file.
/***************************************************************************
* This file is part of netctl-gui *
* *
* netctl-gui is free software: you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* netctl-gui is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with netctl-gui. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef WPASUPINTERACT_H
#define WPASUPINTERACT_H
#include <QDir>
#include <QMap>
#include <QObject>
class Netctl;
class NetctlProfile;
class WpaSup : public QObject
{
Q_OBJECT
public:
explicit WpaSup(const bool debugCmd = false,
const QMap<QString, QString> settings = QMap<QString, QString>());
~WpaSup();
// general information
QString existentProfile(const QString essid);
bool isProfileActive(const QString essid);
bool isProfileExists(const QString essid);
public slots:
// functions
QList<QStringList> scanWifi();
bool startWpaSupplicant();
bool stopWpaSupplicant();
private:
Netctl *netctlCommand;
NetctlProfile *netctlProfile;
bool debug;
QString ctrlDir;
QString ctrlGroup;
QString pidFile;
QString sudoCommand;
QString wpaCliPath;
QString wpaDrivers;
QString wpaSupPath;
// functions
QString getWpaCliOutput(const QString commandLine);
bool wpaCliCall(const QString commandLine);
};
#endif /* WPASUPINTERACT_H */
WpaSup::isProfileExists
bool isProfileExists(const QString essid)
method which checks profile existence by ESSID
WpaSup::stopWpaSupplicant
bool stopWpaSupplicant()
method which send TERMINATE signal to wpa_supplicant
WpaSup::scanWifi
QList< QStringList > scanWifi()
method which scans WiFi networks
WpaSup::WpaSup
WpaSup(const bool debugCmd=false, const QMap< QString, QString > settings=QMap< QString, QString >())
WpaSup class constructor.
NetctlProfile
The NetctlProfile class interacts with netctl profiles.
Definition: netctlprofile.h:37
WpaSup::isProfileActive
bool isProfileActive(const QString essid)
method which checks profile status by ESSID
Netctl
The Netctl class interacts with netctl.
Definition: netctlinteract.h:39
WpaSup::~WpaSup
~WpaSup()
WpaSup class destructor.
WpaSup::existentProfile
QString existentProfile(const QString essid)
method which gets profile name by ESSID
WpaSup::startWpaSupplicant
bool startWpaSupplicant()
method which calls wpa_supplicant
WpaSup
The WpaSup class interacts with wpa_supplicant.
Definition: wpasupinteract.h:40