summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/Internal/logindmanager.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugin/src/Caelestia/Internal/logindmanager.hpp (renamed from plugin/src/Caelestia/Internal/sleepnotifier.hpp)8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugin/src/Caelestia/Internal/sleepnotifier.hpp b/plugin/src/Caelestia/Internal/logindmanager.hpp
index aaa6c68..72a3401 100644
--- a/plugin/src/Caelestia/Internal/sleepnotifier.hpp
+++ b/plugin/src/Caelestia/Internal/logindmanager.hpp
@@ -5,19 +5,23 @@
namespace caelestia::internal {
-class SleepNotifier : public QObject {
+class LogindManager : public QObject {
Q_OBJECT
QML_ELEMENT
public:
- explicit SleepNotifier(QObject* parent = nullptr);
+ 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