tuned-switcher 1.1.0
Performance profile manager
Loading...
Searching...
No Matches
DummyService Class Reference

#include <dummyservice.h>

Inheritance diagram for DummyService:
Collaboration diagram for DummyService:

Public Member Functions

 DummyService (QObject *parent=nullptr)
 
 ~DummyService () override=default
 
bool IsSupported () const override
 
bool IsRunning () const override
 
bool Start () const override
 
bool Stop () const override
 
- Public Member Functions inherited from ServiceManager
virtual ~ServiceManager ()=default
 

Additional Inherited Members

- Static Public Member Functions inherited from ServiceManager
static ServiceManagerCreate (QObject *parent=nullptr)
 
- Protected Member Functions inherited from ServiceManager
 ServiceManager (QObject *parent=nullptr)
 

Detailed Description

Stub class with methods used when the service control feature is disabled.

Constructor & Destructor Documentation

◆ DummyService()

DummyService::DummyService ( QObject * parent = nullptr)
explicit

Main constructor of the DummyService class.

Parameters
parentParent.

◆ ~DummyService()

DummyService::~DummyService ( )
overridedefault

Destructor of the DummyService class.

Member Function Documentation

◆ IsRunning()

bool DummyService::IsRunning ( ) const
overridevirtual

Check whether the Tuned service is running.

Returns
Whether the Tuned sevice is running.
Return values
trueThe Tuned service is running.
falseThe Tuned servic is not running.

Implements ServiceManager.

◆ IsSupported()

bool DummyService::IsSupported ( ) const
overridevirtual

Check whether the service control feature is supported.

Returns
Whether the service control feature is supported.
Return values
trueThe service control feature is supported.
falseThe service control feature is not supported.

Implements ServiceManager.

◆ Start()

bool DummyService::Start ( ) const
overridevirtual

Start the Tuned service.

Returns
Result of the requested operation.
Return values
trueThe Tuned service was successfully started.
falseAn error occurred when trying to start the Tuned service.

Implements ServiceManager.

◆ Stop()

bool DummyService::Stop ( ) const
overridevirtual

Stop the Tuned service.

Returns
Result of the requested operation.
Return values
trueThe Tuned service was successfully stopped.
falseAn error occurred when trying to stop the Tuned service.

Implements ServiceManager.


The documentation for this class was generated from the following files: