refactoring of dataengine

This commit is contained in:
arcan1s
2014-04-12 16:31:19 +04:00
parent 92ec04cae1
commit 2778f654ef
4 changed files with 130 additions and 102 deletions

View File

@ -27,6 +27,13 @@ class Netctl : public Plasma::DataEngine
public:
Netctl(QObject *parent, const QVariantList &args);
QString getCurrentProfile(const QString cmd);
QString getExtIp(const QString cmd);
QStringList getInterfaceList(const QString dir);
QString getIntIp(const QString cmd, const QString dir);
QStringList getProfileList(const QString cmd);
bool getProfileStatus(const QString cmd);
QString getProfileStringStatus(const QString cmd);
protected:
bool sourceRequestEvent(const QString &name);