Add DBus support: control keepassxc on desktop events (load database when log in, close all databases when log out)

This commit is contained in:
Didier Fabert 2017-02-10 15:42:18 +01:00 committed by thez3ro
parent 46c58b3202
commit e560650bf3
No known key found for this signature in database
GPG key ID: F628F9E41DD7C073
9 changed files with 226 additions and 1 deletions

View file

@ -37,6 +37,10 @@ class InactivityTimer;
class MainWindow : public QMainWindow
{
Q_OBJECT
#if defined(Q_OS_LINUX)
Q_CLASSINFO("D-Bus Interface", "org.keepassxc.MainWindow")
#endif
public:
MainWindow();
@ -62,6 +66,7 @@ public slots:
void showYubiKeyPopup();
void hideYubiKeyPopup();
void bringToFront();
void closeAllDatabases();
protected:
void closeEvent(QCloseEvent* event) override;