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);