-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsystemmanager.h
More file actions
35 lines (32 loc) · 846 Bytes
/
systemmanager.h
File metadata and controls
35 lines (32 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef SYSTEMMANAGER_H
#define SYSTEMMANAGER_H
#include <QObject>
#include "utilsexport.h"
class UTILS_EXPORT SystemManager :
public QObject
{
Q_OBJECT
struct SystemManagerData;
public:
static SystemManager *instance();
static int systemIdle();
static bool isSystemIdleActive();
static bool isWorkstationLocked();
static bool isScreenSaverRunning();
static bool isFullScreenMode();
static QString systemOSVersion();
public:
void startSystemIdle();
void stopSystemIdle();
signals:
void systemIdleChanged(int ASeconds);
void screenSaverChanged(bool ARunning);
void workstationLockChanged(bool ALocked);
void fullScreenModeChanged(bool AFullScreen);
protected slots:
void onTimerTimeout();
void onIdleChanged(int ASeconds);
private:
static SystemManagerData *d;
};
#endif // SYSTEMMANAGER_H