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

#include <autorunportal.h>

Inheritance diagram for AutorunPortal:
Collaboration diagram for AutorunPortal:

Public Member Functions

 AutorunPortal (QObject *parent=nullptr)
 
 ~AutorunPortal () override=default
 
bool IsEnabled () const override
 
bool IsSupported () const override
 
bool Enable () const override
 
bool Disable () const override
 
- Public Member Functions inherited from AutorunManager
virtual ~AutorunManager ()=default
 

Private Member Functions

bool ChangeAutorunState (const bool, const PortalRequest::BackgroundResult) const
 

Additional Inherited Members

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

Detailed Description

Class for working with autorun configurations using portals.

Constructor & Destructor Documentation

◆ AutorunPortal()

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

Main constructor of the AutorunPortal class.

Parameters
parentParent.

◆ ~AutorunPortal()

AutorunPortal::~AutorunPortal ( )
overridedefault

Destructor of the AutorunPortal class.

Member Function Documentation

◆ ChangeAutorunState()

bool AutorunPortal::ChangeAutorunState ( const bool value,
const PortalRequest::BackgroundResult result ) const
private

Changes the state of the autorun feature.

Parameters
valueNew autorun state.
resultExpected result.
Returns
Result of the requested operation.
Return values
trueThe requested operation completed successfully.
falseAn error occurred when trying to perform the requested operation.

◆ Disable()

bool AutorunPortal::Disable ( ) const
overridevirtual

Disable the autorun feature.

Returns
Result of the requested operation.
Return values
trueThe requested operation completed successfully.
falseAn error occurred when trying to perform the requested operation.

Implements AutorunManager.

◆ Enable()

bool AutorunPortal::Enable ( ) const
overridevirtual

Enable the autorun feature.

Returns
Result of the requested operation.
Return values
trueThe requested operation completed successfully.
falseAn error occurred when trying to perform the requested operation.

Implements AutorunManager.

◆ IsEnabled()

bool AutorunPortal::IsEnabled ( ) const
overridevirtual

Check whether the autorun feature is enabled.

Returns
Whether the autorun feature is enabled.
Return values
trueThe autorun feature is enabled.
falseThe autorun feature is not enabled.

Implements AutorunManager.

◆ IsSupported()

bool AutorunPortal::IsSupported ( ) const
overridevirtual

Check whether the autorun feature is supported on running platform.

Returns
Whether the autorun feature is supported on running platform.
Return values
trueThe autorun feature is supported on running platform.
falseThe autorun feature is not supported on running platform.

Implements AutorunManager.


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