26 #ifndef NETCTLINTERACT_H
27 #define NETCTLINTERACT_H
67 bool netctlAuto =
false;
92 explicit Netctl(
const bool debugCmd =
false,
93 const QMap<QString, QString> settings = QMap<QString, QString>());
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);
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);
QString getProfileStatus(const QString profile)
method which gets profile status
QStringList getActiveProfile()
method which returns active profile name
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: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:62
~Netctl()
Netctl class destructor.
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: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:73
bool autoEnableService()
method which sets netctl-auto service enabled or disabled
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
bool startProfile(const QString profile)
method which starts or stops profile
QStringList getWirelessInterfaceList()
method which gets wireless interface list from PREFERED_IFACE and IFACE_DIR
bool isNetctlAutoRunning()
method which checks netctl-auto status
QString autoGetActiveProfile()
method which returns active profile name from netctl-auto
bool autoRestartService()
method which restarted netctl-auto service
Netctl(const bool debugCmd=false, const QMap< QString, QString > settings=QMap< QString, QString >())
Netctl class constructor.
bool forceStopProfile(const QString profile)
method which force stops profile
QList< netctlProfileInfo > getProfileListFromNetctlAuto()
method which returns profile informations from netctl-auto
bool autoStartService()
method which starts or stops netctl-auto service
bool autoIsProfileEnabled(const QString profile)
method which checks if profile is enabled (netctl-auto)
bool autoDisableAllProfiles()
method which sets all profiles disabled (netctl-auto)
bool switchToProfile(const QString profile)
method which starts another profile