diff options
author | Ken Moore <ken@ixsystems.com> | 2017-01-09 14:41:30 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-01-09 14:41:30 -0500 |
commit | d1750c349cf59bce56569e5be74886edc97ba967 (patch) | |
tree | 48a28f398286f721c8272c85017aa8bbf3b83228 /src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.h | |
parent | Flip the location of the +/- buttons on the panel config widget to match the ... (diff) | |
parent | Merge remote-tracking branch 'origin/master' (diff) | |
download | lumina-d1750c349cf59bce56569e5be74886edc97ba967.tar.gz lumina-d1750c349cf59bce56569e5be74886edc97ba967.tar.bz2 lumina-d1750c349cf59bce56569e5be74886edc97ba967.zip |
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.h')
-rw-r--r-- | src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.h b/src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.h new file mode 100644 index 00000000..040499c1 --- /dev/null +++ b/src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.h @@ -0,0 +1,42 @@ +//=========================================== +// 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_LOCK_SCREEN_WIDGET_H +#define _LUMINA_DESKTOP_LOCK_SCREEN_WIDGET_H + +#include "GlobalDefines.h" + +namespace Ui{ + class LLockScreen; +}; + +class LLockScreen : public QWidget{ + Q_OBJECT +public: + LLockScreen(QWidget *parent = 0); + ~LLockScreen(); + + void LoadSystemDetails(); //Run right after the screen is initially locked + +public slots: + void aboutToHide(); //auto-hide timeout (can happen multiple times per lock) + void aboutToShow(); //about to be re-shown (can happen multiple times per lock) + +private: + Ui::LLockScreen *ui; + int triesleft, attempts; + QTimer *waittime; + QTimer *refreshtime; + +private slots: + void UpdateLockInfo(); + void TryUnlock(); + +signals: + void ScreenUnlocked(); + void InputDetected(); +}; +#endif |