C++ / build (pull_request) Failing after 15s
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 28s
Python / lint-format (pull_request) Successful in 45s
Python / test (pull_request) Successful in 38s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m45s
28 lines
465 B
C++
28 lines
465 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
|