summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/Internal/logindmanager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/src/Caelestia/Internal/logindmanager.hpp')
-rw-r--r--plugin/src/Caelestia/Internal/logindmanager.hpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/plugin/src/Caelestia/Internal/logindmanager.hpp b/plugin/src/Caelestia/Internal/logindmanager.hpp
new file mode 100644
index 0000000..72a3401
--- /dev/null
+++ b/plugin/src/Caelestia/Internal/logindmanager.hpp
@@ -0,0 +1,27 @@
+#pragma once
+
+#include <qobject.h>
+#include <qqmlintegration.h>
+
+namespace caelestia::internal {
+
+class LogindManager : public QObject {
+ Q_OBJECT
+ QML_ELEMENT
+
+public:
+ explicit LogindManager(QObject* parent = nullptr);
+
+signals:
+ void aboutToSleep();
+ void resumed();
+ void lockRequested();
+ void unlockRequested();
+
+private slots:
+ void handlePrepareForSleep(bool sleep);
+ void handleLockRequested();
+ void handleUnlockRequested();
+};
+
+} // namespace caelestia::internal