//=========================================== // 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 #include #include #include 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