diff options
author | 2022-03-30 17:30:58 +0530 | |
---|---|---|
committer | 2022-03-30 17:30:58 +0530 | |
commit | d06a4abb4755d0e97e8ef03688bc878117d90b4e (patch) | |
tree | ace02b248a88ccd08dabee8b9ddc751fb40bb776 /src/mainwindow.h | |
parent | 5be4cae996d0411f4ab50af66d95452bf3a6022e (diff) | |
download | whatsie-d06a4abb4755d0e97e8ef03688bc878117d90b4e.tar.gz whatsie-d06a4abb4755d0e97e8ef03688bc878117d90b4e.zip |
feat: app auto locking
- settings to allow app auto locking after set time interval
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r-- | src/mainwindow.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h index 1f966bd..c3c82a2 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -34,6 +34,7 @@ #include "settingswidget.h" #include "webenginepage.h" #include "webview.h" +#include "autolockeventfilter.h" class MainWindow : public QMainWindow { Q_OBJECT @@ -84,6 +85,7 @@ private: Lock *lockWidget = nullptr; int correctlyLoaderRetries = 4; QStringList m_dictionaries; + AutoLockEventFilter *autoLockEventFilter = nullptr; private slots: @@ -121,6 +123,8 @@ private slots: void forceLogOut(); void tryLogOut(); bool isLoggedIn(); + void initAutoLock(); + void appAutoLockChanged(); }; #endif // MAINWINDOW_H |