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


Public Member Functions | |
| AutorunFile (QObject *parent=nullptr) | |
| ~AutorunFile () 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 | |
| QString | GetAutorunDirectoryName () const |
| QString | GetAutorunFileName () const |
| QString | GetExecutablePath () const |
| void | CreateAutorunDirectory () const |
| QString | GenerateAutorunFile () const |
| void | WriteAutorunFile (const QString &) const |
Private Attributes | |
| QString | AutorunDirectoryName |
| QString | AutorunFileName |
Additional Inherited Members | |
Static Public Member Functions inherited from AutorunManager | |
| static AutorunManager * | Create (QObject *parent=nullptr) |
Protected Member Functions inherited from AutorunManager | |
| AutorunManager (QObject *parent=nullptr) | |
Class for working with standard autorun files.
|
explicit |
Main constructor of the AutorunFile class.
| parent | Parent. |
|
overridedefault |
Destructor of the AutorunFile class.
|
private |
Create the autorun directory if it doesn't exists.
|
overridevirtual |
Disable the autorun feature.
| true | The requested operation completed successfully. |
| false | An error occurred when trying to perform the requested operation. |
Implements AutorunManager.
|
overridevirtual |
Enable the autorun feature.
| true | The requested operation completed successfully. |
| false | An error occurred when trying to perform the requested operation. |
Implements AutorunManager.
|
private |
Generate the autorun file contents using stored template.
|
private |
Get the fully-qualified autorun directory path.
|
private |
Get the fully-qualified autorun file name.
|
private |
Get the application executable path: relative if the running executable is located in the $PATH or absolute if it doesn't.
|
overridevirtual |
Check whether the autorun feature is enabled.
| true | The autorun feature is enabled. |
| false | The autorun feature is not enabled. |
Implements AutorunManager.
|
overridevirtual |
Check whether the autorun feature is supported on running platform.
| true | The autorun feature is supported on running platform. |
| false | The autorun feature is not supported on running platform. |
Implements AutorunManager.
|
private |
Write the autorun file contents to disk.
| value | Autorun file contents. |
|
private |
Stores the full path to the autorun directory.
|
private |
Stores the full path to the autorun file.