]> git.sur5r.net Git - minitube/blob - src/idle/src/idle.h
6a004afab24e12a2ab39deb812dfc3cc0d44e251
[minitube] / src / idle / src / idle.h
1 #ifndef IDLE_H
2 #define IDLE_H
3
4 #include <QString>
5
6 class Idle {
7
8 public:
9     static bool preventDisplaySleep(const QString &reason);
10     static bool allowDisplaySleep();
11     static QString displayErrorMessage();
12
13     static bool preventSystemSleep(const QString &reason);
14     static bool allowSystemSleep();
15     static QString systemErrorMessage();
16
17 };
18
19 #endif // IDLE_H