28 lines
780 B
C++
28 lines
780 B
C++
#ifndef OPENRC_KCM_H
|
|
#define OPENRC_KCM_H
|
|
|
|
#include <KQuickManagedConfigModule>
|
|
#include <QSettings>
|
|
#include "openrckcmsettings.h"
|
|
#include <KAboutData>
|
|
|
|
class OpenRCKCM : public KQuickManagedConfigModule {
|
|
Q_OBJECT
|
|
public:
|
|
OpenRCKCM(QObject *parent, const KPluginMetaData &metaData);
|
|
|
|
public:
|
|
Q_PROPERTY(QStringList allServiceTitles READ getAllServiceTitles CONSTANT)
|
|
Q_PROPERTY(QStringList allServices READ getAllServices CONSTANT)
|
|
|
|
Q_INVOKABLE void tryDisableService(QString serviceName);
|
|
Q_INVOKABLE void tryStopService(QString serviceName);
|
|
const QStringList getAllServiceTitles();
|
|
const QStringList getAllServices();
|
|
Q_INVOKABLE void tryRestartService(QString serviceName);
|
|
|
|
private:
|
|
QSettings settings;
|
|
};
|
|
|
|
#endif /* OPENRC_KCM_H */ |