Add ScreenSaver.

This commit is contained in:
sunwen
2022-08-18 17:09:16 +08:00
parent 30df175f22
commit 13a29bcc94
16 changed files with 292 additions and 16 deletions

View File

@@ -10,7 +10,9 @@ class Locker : public QObject
public:
static Locker* getInstance();
void start();
void stop();
void setTimer(int aInterval);
void setIsEnable(bool aIsEnable);
public slots:
void refreshTimer();
@@ -21,6 +23,7 @@ private:
QTimer* mScreenTimer;
int mCounter;
bool mIsEnable;
};
#endif // LOCKER_H