mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-12 21:35:51 +00:00
add stopAllProfiles and reenableProfile slots
This commit is contained in:
@ -429,6 +429,18 @@ bool Netctl::enableProfile(const QString profile)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @fn reenableProfile
|
||||
*/
|
||||
bool Netctl::reenableProfile(const QString profile)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Profile" << profile;
|
||||
|
||||
return cmdCall(true, netctlCommand, QString("reenable"), profile);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @fn restartProfile
|
||||
*/
|
||||
@ -456,6 +468,17 @@ bool Netctl::startProfile(const QString profile)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @fn stopAllProfiles
|
||||
*/
|
||||
bool Netctl::stopAllProfiles()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return cmdCall(true, netctlCommand, QString("restart"));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @fn switchToProfile
|
||||
*/
|
||||
|
Reference in New Issue
Block a user