diff options
author | Ken Moore <ken@pcbsd.org> | 2015-03-25 12:45:49 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-03-25 12:45:49 -0400 |
commit | 2a43d04950e1c7c364b03fe5552e2d687b8845b0 (patch) | |
tree | 6abb976c9a43a67a9744833df2ea3fe79db9330b /lumina-wm/LScreenSaver.h | |
parent | Add a new information file: DeveloperGuidelines.txt (diff) | |
download | lumina-2a43d04950e1c7c364b03fe5552e2d687b8845b0.tar.gz lumina-2a43d04950e1c7c364b03fe5552e2d687b8845b0.tar.bz2 lumina-2a43d04950e1c7c364b03fe5552e2d687b8845b0.zip |
Add my "work-in-progress" on lumina-wm (screensaver implementation so far) to GIt. This is *not* ready to be built, much less used yet.
Diffstat (limited to 'lumina-wm/LScreenSaver.h')
-rw-r--r-- | lumina-wm/LScreenSaver.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/lumina-wm/LScreenSaver.h b/lumina-wm/LScreenSaver.h new file mode 100644 index 00000000..c2965ae6 --- /dev/null +++ b/lumina-wm/LScreenSaver.h @@ -0,0 +1,43 @@ +//=========================================== +// 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 <QObject> +#include <QStringList> +#include <QTimer> +#include <QSettings> + +class LScreenSaver : public QObject{ + Q_OBJECT +public: + LScreenSaver(); + ~LScreenSaver(); + +private: + QTimer *starttimer, *locktimer, *hidetimer; + QSettings *settings; + bool SSRunning, SSLocked; + +public slots: + void start(); + void reloadSettings(); + void newInputEvent(); + +private slots: + void ShowScreenSaver(); + void ShowLockScreen(); + void HideScreenSaver(); + void HideLockScreen(); + +signals: + void StartingScreenSaver(); + void ClosingScreenSaver(); + +}; + +#endif
\ No newline at end of file |