tuned-switcher 1.1.0
Performance profile manager
Loading...
Searching...
No Matches
autorunmanager.h
Go to the documentation of this file.
1
7#ifndef AUTORUNMANAGER_H
8#define AUTORUNMANAGER_H
9
15#include <QObject>
16
20class AutorunManager : public QObject
21{
22 Q_OBJECT
23public:
29 static AutorunManager* Create(QObject* parent = nullptr);
30
34 virtual ~AutorunManager() = default;
35
42 virtual bool IsEnabled() const = 0;
43
50 virtual bool IsSupported() const = 0;
51
58 virtual bool Enable() const = 0;
59
66 virtual bool Disable() const = 0;
67
68protected:
75 explicit AutorunManager(QObject* parent = nullptr);
76
77private:
82 static bool CheckSandbox();
83};
84
85#endif // AUTORUNMANAGER_H
Definition autorunmanager.h:21
virtual bool Disable() const =0
static AutorunManager * Create(QObject *parent=nullptr)
Definition autorunmanager.cpp:21
AutorunManager(QObject *parent=nullptr)
Definition autorunmanager.cpp:29
virtual bool Enable() const =0
virtual bool IsSupported() const =0
virtual bool IsEnabled() const =0
virtual ~AutorunManager()=default
static bool CheckSandbox()
Definition autorunmanager.cpp:33