add force* slots

This commit is contained in:
arcan1s
2014-08-24 13:08:13 +04:00
parent e21b2201ab
commit 999914926a
7 changed files with 65 additions and 0 deletions

View File

@ -186,6 +186,18 @@ bool ControlAdaptor::Enable(const QString profile)
}
bool ControlAdaptor::forceStart(const QString profile)
{
return netctlCommand->forceStartProfile(profile);
}
bool ControlAdaptor::forceStop(const QString profile)
{
return netctlCommand->forceStopProfile(profile);
}
bool ControlAdaptor::Reenable(const QString profile)
{
return netctlCommand->reenableProfile(profile);

View File

@ -57,6 +57,8 @@ public slots:
bool autoServiceRestart();
bool autoServiceStart();
bool Enable(const QString profile);
bool forceStart(const QString profile);
bool forceStop(const QString profile);
bool Reenable(const QString profile);
bool Restart(const QString profile);
bool Start(const QString profile);