mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-04-24 15:37:23 +00:00
add stopAllProfiles and reenableProfile slots
This commit is contained in:
parent
ec8fc79dd7
commit
fea0bedef0
@ -171,6 +171,13 @@ public slots:
|
|||||||
* @return true if the method was completed without errors
|
* @return true if the method was completed without errors
|
||||||
*/
|
*/
|
||||||
bool enableProfile(const QString profile);
|
bool enableProfile(const QString profile);
|
||||||
|
/**
|
||||||
|
* @brief method which reenables profile
|
||||||
|
* @param profile profile name
|
||||||
|
* @return false if components are not found or command exit code is not equal to 0
|
||||||
|
* @return true if the method was completed without errors
|
||||||
|
*/
|
||||||
|
bool reenableProfile(const QString profile);
|
||||||
/**
|
/**
|
||||||
* @brief method which restarts profile
|
* @brief method which restarts profile
|
||||||
* @param profile profile name
|
* @param profile profile name
|
||||||
@ -185,6 +192,12 @@ public slots:
|
|||||||
* @return true if the method was completed without errors
|
* @return true if the method was completed without errors
|
||||||
*/
|
*/
|
||||||
bool startProfile(const QString profile);
|
bool startProfile(const QString profile);
|
||||||
|
/**
|
||||||
|
* @brief method which stops all profiles
|
||||||
|
* @return false if components are not found or command exit code is not equal to 0
|
||||||
|
* @return true if the method was completed without errors
|
||||||
|
*/
|
||||||
|
bool stopAllProfiles();
|
||||||
/**
|
/**
|
||||||
* @brief method which starts another profile
|
* @brief method which starts another profile
|
||||||
* @param profile profile name
|
* @param profile profile name
|
||||||
|
@ -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
|
* @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
|
* @fn switchToProfile
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user