]> git.sur5r.net Git - minitube/blobdiff - src/idle/src/idle.h
New upstream version 2.9
[minitube] / src / idle / src / idle.h
diff --git a/src/idle/src/idle.h b/src/idle/src/idle.h
new file mode 100644 (file)
index 0000000..6a004af
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef IDLE_H
+#define IDLE_H
+
+#include <QString>
+
+class Idle {
+
+public:
+    static bool preventDisplaySleep(const QString &reason);
+    static bool allowDisplaySleep();
+    static QString displayErrorMessage();
+
+    static bool preventSystemSleep(const QString &reason);
+    static bool allowSystemSleep();
+    static QString systemErrorMessage();
+
+};
+
+#endif // IDLE_H