This commit is contained in:
arcan1s
2014-08-09 20:19:52 +04:00
parent e64e8810f8
commit 172624b494
15 changed files with 224 additions and 172 deletions

View File

@ -15,9 +15,9 @@
* along with netctl-gui. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#include "controladaptor.h"
#include "netctlhelper.h"
#include "controladaptor.h"
ControlAdaptor::ControlAdaptor(NetctlHelper *parent, const QMap<QString, QString> configuration)

View File

@ -15,7 +15,6 @@
* along with netctl-gui. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#include "netctladaptor.h"
@ -83,6 +82,12 @@ bool NetctlAdaptor::isNetctlAutoActive()
}
bool NetctlAdaptor::isNetctlAutoEnabled()
{
return netctlCommand->isNetctlAutoEnabled();
}
bool NetctlAdaptor::isProfileActive(const QString profile)
{
return netctlCommand->isProfileActive(profile);

View File

@ -42,6 +42,7 @@ public slots:
bool autoIsProfileEnabled(const QString profile);
QStringList Information();
bool isNetctlAutoActive();
bool isNetctlAutoEnabled();
bool isProfileActive(const QString profile);
bool isProfileEnabled(const QString profile);
QStringList ProfileList();

View File

@ -15,6 +15,7 @@
* along with netctl-gui. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#include "netctlhelper.h"
#include <QCoreApplication>
#include <QDBusConnection>
@ -26,7 +27,6 @@
#include "controladaptor.h"
#include "netctladaptor.h"
#include "netctlhelper.h"
#include "version.h"