26 #ifndef NETCTLINTERACT_H
27 #define NETCTLINTERACT_H
57 explicit Netctl(
const bool debugCmd =
false,
58 const QMap<QString, QString> settings = QMap<QString, QString>());
235 QDir *ifaceDirectory;
239 QString mainInterface;
243 QString netctlCommand;
247 QString netctlAutoCommand;
251 QString netctlAutoService;
255 QDir *profileDirectory;
263 QString systemctlCommand;
272 QString getNetctlOutput(
const bool sudo,
const QString commandLine,
const QString profile = 0);
281 bool netctlCall(
const bool sudo,
const QString commandLine,
const QString profile = 0);
290 bool netctlAutoCall(
const bool sudo,
const QString commandLine,
const QString profile = 0);
298 bool systemctlCall(
const bool sudo,
const QString commandLine);
QString getProfileStatus(const QString profile)
method which gets profile status
bool autoIsProfileActive(const QString profile)
method which checks if profile is active (netctl-auto)
QStringList getProfileStatuses(const QStringList profileList)
method which gets statuses of profile list
bool autoEnableProfile(const QString profile)
method which sets profile disabled or enabled (netctl-auto)
bool restartProfile(const QString profile)
method which restarts profile
QList< QStringList > getProfileListFromNetctlAuto()
method which returns profile informations from netctl-auto
bool autoEnableAllProfiles()
method which sets all profiles enabled (netctl-auto)
bool autoStartProfile(const QString profile)
method which switchs to profile (netctl-auto)
~Netctl()
Netctl class destructor.
bool enableProfile(const QString profile)
method which sets profile disabled or enabled
The NetctlProfile class interacts with netctl profiles.
Definition: netctlprofile.h:37
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:39
bool autoEnableService()
method which sets netctl-auto service enabled or disabled
QString getProfileDescription(const QString profile)
method which gets description from profile
bool isNetctlAutoEnabled()
method which checks netctl-auto autoload status
bool startProfile(const QString profile)
method which starts or stops profile
QStringList getInterfaceList()
method which gets interface list from PREFERED_IFACE and IFACE_DIR
bool isNetctlAutoRunning()
method which checks netctl-auto status
bool autoRestartService()
method which restarted netctl-auto service
Netctl(const bool debugCmd=false, const QMap< QString, QString > settings=QMap< QString, QString >())
Netctl class constructor.
QList< QStringList > getProfileList()
method which returns profile informations from netctl
QStringList getProfileDescriptions(const QStringList profileList)
method which gets descriptions from profile list
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)