tuned-switcher 1.1.0
Performance profile manager
Loading...
Searching...
No Matches
servicemanager.h
Go to the documentation of this file.
1
7#ifndef SERVICEMANAGER_H
8#define SERVICEMANAGER_H
9
15#include <QObject>
16
20class ServiceManager : public QObject
21{
22 Q_OBJECT
23public:
29 static ServiceManager* Create(QObject* parent = nullptr);
30
34 virtual ~ServiceManager() = default;
35
42 virtual bool IsSupported() const = 0;
43
50 virtual bool IsRunning() const = 0;
51
58 virtual bool Start() const = 0;
59
66 virtual bool Stop() const = 0;
67
68protected:
75 explicit ServiceManager(QObject* parent = nullptr);
76};
77
78#endif // SERVICEMANAGER_H
Definition servicemanager.h:21
virtual ~ServiceManager()=default
virtual bool IsRunning() const =0
virtual bool Stop() const =0
virtual bool Start() const =0
virtual bool IsSupported() const =0
ServiceManager(QObject *parent=nullptr)
Definition servicemanager.cpp:27
static ServiceManager * Create(QObject *parent=nullptr)
Definition servicemanager.cpp:19