add new API to the helper

This commit is contained in:
arcan1s
2014-08-13 07:53:22 +04:00
parent fea0bedef0
commit 1d34a65f38
5 changed files with 26 additions and 2 deletions

View File

@ -161,6 +161,12 @@ bool ControlAdaptor::Enable(const QString profile)
}
bool ControlAdaptor::Reenable(const QString profile)
{
return netctlCommand->reenableProfile(profile);
}
bool ControlAdaptor::Restart(const QString profile)
{
return netctlCommand->restartProfile(profile);
@ -173,6 +179,12 @@ bool ControlAdaptor::Start(const QString profile)
}
bool ControlAdaptor::StopAll()
{
return netctlCommand->stopAllProfiles();
}
bool ControlAdaptor::SwitchTo(const QString profile)
{
return netctlCommand->switchToProfile(profile);

View File

@ -56,8 +56,10 @@ public slots:
bool autoServiceRestart();
bool autoServiceStart();
bool Enable(const QString profile);
bool Reenable(const QString profile);
bool Restart(const QString profile);
bool Start(const QString profile);
bool StopAll();
bool SwitchTo(const QString profile);
// netctlProfile
bool Create(const QString profile, const QStringList settingsList);