add function for locking DBs from DBus, fix #687

This commit is contained in:
thez3ro 2018-01-16 00:49:32 +01:00
parent e560650bf3
commit 98a89e4f2c
No known key found for this signature in database
GPG key ID: F628F9E41DD7C073
9 changed files with 40 additions and 88 deletions

View file

@ -38,8 +38,8 @@ class MainWindow : public QMainWindow
{
Q_OBJECT
#if defined(Q_OS_LINUX)
Q_CLASSINFO("D-Bus Interface", "org.keepassxc.MainWindow")
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC) && !defined(QT_NO_DBUS)
Q_CLASSINFO("D-Bus Interface", "org.keepassxc.KeePassXC.MainWindow")
#endif
public:
@ -67,10 +67,11 @@ public slots:
void hideYubiKeyPopup();
void bringToFront();
void closeAllDatabases();
void lockAllDatabases();
protected:
void closeEvent(QCloseEvent* event) override;
void changeEvent(QEvent* event) override;
void closeEvent(QCloseEvent* event) override;
void changeEvent(QEvent* event) override;
private slots:
void setMenuActionState(DatabaseWidget::Mode mode = DatabaseWidget::None);