tuned-switcher 1.1.0
Performance profile manager
Loading...
Searching...
No Matches
AutorunManager Class Referenceabstract

#include <autorunmanager.h>

Inheritance diagram for AutorunManager:
Collaboration diagram for AutorunManager:

Public Member Functions

virtual ~AutorunManager ()=default
 
virtual bool IsEnabled () const =0
 
virtual bool IsSupported () const =0
 
virtual bool Enable () const =0
 
virtual bool Disable () const =0
 

Static Public Member Functions

static AutorunManagerCreate (QObject *parent=nullptr)
 

Protected Member Functions

 AutorunManager (QObject *parent=nullptr)
 

Static Private Member Functions

static bool CheckSandbox ()
 

Detailed Description

Abstract class for working with autorun configurations.

Constructor & Destructor Documentation

◆ ~AutorunManager()

virtual AutorunManager::~AutorunManager ( )
virtualdefault

Destructor of the AutorunManager class.

◆ AutorunManager()

AutorunManager::AutorunManager ( QObject * parent = nullptr)
explicitprotected

Main constructor of the AutorunManager class. Cannot be called directly. A special factory method Create() should be used instead.

Parameters
parentParent.

Member Function Documentation

◆ CheckSandbox()

bool AutorunManager::CheckSandbox ( )
staticprivate

Check whether the application is running in a sandbox.

Returns
Whether the application is running in a sandbox.

◆ Create()

AutorunManager * AutorunManager::Create ( QObject * parent = nullptr)
static

Create an instance of the AutorunManager class. Factory method.

Parameters
parentParent.
Returns
Instance of the AutorunManager class.

◆ Disable()

virtual bool AutorunManager::Disable ( ) const
pure virtual

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.

Implemented in AutorunFile, and AutorunPortal.

◆ Enable()

virtual bool AutorunManager::Enable ( ) const
pure virtual

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.

Implemented in AutorunFile, and AutorunPortal.

◆ IsEnabled()

virtual bool AutorunManager::IsEnabled ( ) const
pure virtual

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.

Implemented in AutorunFile, and AutorunPortal.

◆ IsSupported()

virtual bool AutorunManager::IsSupported ( ) const
pure virtual

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.

Implemented in AutorunFile, and AutorunPortal.


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