Lock database when OS is locked (Windows, DBus, macOS implementations) #134

This commit is contained in:
Claudio Bantaloukas 2016-12-24 01:04:43 +01:00 committed by thez3ro
parent a6bc3e9790
commit 2de5a9d281
No known key found for this signature in database
GPG key ID: F628F9E41DD7C073
15 changed files with 362 additions and 0 deletions

View file

@ -23,6 +23,7 @@
#include <QSystemTrayIcon>
#include "core/SignalMultiplexer.h"
#include "core/ScreenLockListener.h"
#include "gui/DatabaseWidget.h"
#include "gui/Application.h"
@ -91,6 +92,7 @@ private slots:
void lockDatabasesAfterInactivity();
void repairDatabase();
void hideTabMessage();
void handleScreenLock();
private:
static void setShortcut(QAction* action, QKeySequence::StandardKey standard, int fallback = 0);
@ -112,6 +114,7 @@ private:
InactivityTimer* m_inactivityTimer;
int m_countDefaultAttributes;
QSystemTrayIcon* m_trayIcon;
ScreenLockListener* m_screenLockListener;
Q_DISABLE_COPY(MainWindow)