|
tuned-switcher 1.1.0
Performance profile manager
|
#include <servicemanager.h>


Public Member Functions | |
| virtual | ~ServiceManager ()=default |
| virtual bool | IsSupported () const =0 |
| virtual bool | IsRunning () const =0 |
| virtual bool | Start () const =0 |
| virtual bool | Stop () const =0 |
Static Public Member Functions | |
| static ServiceManager * | Create (QObject *parent=nullptr) |
Protected Member Functions | |
| ServiceManager (QObject *parent=nullptr) | |
Class for working with the system service manager.
|
virtualdefault |
Destructor of the ServiceManager class.
|
explicitprotected |
Main constructor of the ServiceManager class. Cannot be called directly. A special factory method Create() should be used instead.
| parent | Parent. |
|
static |
Create an instance of the ServiceManager class. Factory method.
| parent | Parent. |
|
pure virtual |
Check whether the Tuned service is running.
| true | The Tuned service is running. |
| false | The Tuned servic is not running. |
Implemented in DummyService, and SystemdService.
|
pure virtual |
Check whether the service control feature is supported on running platform.
| true | The service control feature is supported on running platform. |
| false | The service control feature is not supported on running platform. |
Implemented in DummyService, and SystemdService.
|
pure virtual |
Start the Tuned service.
| true | The Tuned service was successfully started. |
| false | An error occurred when trying to start the Tuned service. |
Implemented in DummyService, and SystemdService.
|
pure virtual |
Stop the Tuned service.
| true | The Tuned service was successfully stopped. |
| false | An error occurred when trying to stop the Tuned service. |
Implemented in DummyService, and SystemdService.