mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-08 03:15:54 +00:00
add new API to the helper
This commit is contained in:
@ -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);
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user