Files
z-bar-qt/Plugins/ZShell/Internal/lidwatcher.hpp
T
2026-06-04 22:57:45 +02:00

28 lines
452 B
C++

#pragma once
#include <qobject.h>
#include <qqmlintegration.h>
namespace ZShell::Internal {
class LidWatcher : public QObject {
Q_OBJECT
QML_ELEMENT
public:
explicit LidWatcher(QObject* parent = nullptr);
signals:
void aboutToSleep();
void resumed();
void lockRequested();
void unlockRequested();
private slots:
void handlePrepareForSleep(bool sleep);
void handleLockRequested();
void handleUnlockRequested();
};
} // namespace ZShell::internal