diff options
author | Weblate <noreply@weblate.org> | 2017-01-04 21:47:56 +0000 |
---|---|---|
committer | Weblate <noreply@weblate.org> | 2017-01-04 21:47:56 +0000 |
commit | 5840eb59b26d1dab6f43b2e2f9e4ca6ce8b70e0f (patch) | |
tree | 931c2fe0927dcf25cac4031374db4b0c6dcdc727 /src-qt5/core/lumina-desktop-unified/src-WM/LScreenSaver.h | |
parent | Translated using Weblate (lumina_SEARCH@fr (generated)) (diff) | |
parent | Merge branch 'master' of github.com:trueos/lumina (diff) | |
download | lumina-5840eb59b26d1dab6f43b2e2f9e4ca6ce8b70e0f.tar.gz lumina-5840eb59b26d1dab6f43b2e2f9e4ca6ce8b70e0f.tar.bz2 lumina-5840eb59b26d1dab6f43b2e2f9e4ca6ce8b70e0f.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-WM/LScreenSaver.h')
-rw-r--r-- | src-qt5/core/lumina-desktop-unified/src-WM/LScreenSaver.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-WM/LScreenSaver.h b/src-qt5/core/lumina-desktop-unified/src-WM/LScreenSaver.h new file mode 100644 index 00000000..5119d8b1 --- /dev/null +++ b/src-qt5/core/lumina-desktop-unified/src-WM/LScreenSaver.h @@ -0,0 +1,59 @@ +//=========================================== +// Lumina-DE source code +// Copyright (c) 2015, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +#ifndef _LUMINA_DESKTOP_SCREEN_SAVER_H +#define _LUMINA_DESKTOP_SCREEN_SAVER_H + +#include "GlobalDefines.h" + +#include "SSBaseWidget.h" +#include "LLockScreen.h" + +class LScreenSaver : public QWidget{ + Q_OBJECT +public: + LScreenSaver(); + ~LScreenSaver(); + + bool isLocked(); + +private: + QTimer *starttimer, *locktimer, *hidetimer; + QSettings *settings; + QList<SSBaseWidget*> BASES; + LLockScreen *LOCKER; + int cBright; + bool SSRunning, SSLocked, updating; + + void UpdateTimers(); + +public slots: + void start(); + void reloadSettings(); + void newInputEvent(); + void LockScreenNow(); + +private slots: + void ShowScreenSaver(); + void ShowLockScreen(); + void HideScreenSaver(); + void HideLockScreen(); + + void LockScreen(); + void SSFinished(); + +signals: + void StartingScreenSaver(); + void ClosingScreenSaver(); + +protected: + void mouseMoveEvent(QMouseEvent*){ + QTimer::singleShot(0,this, SLOT(newInputEvent())); + } + +}; + +#endif
\ No newline at end of file |