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