diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-08 20:00:22 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-08 20:00:22 +0200 |
commit | 8a551339cbfaf106ac7d6f1ca5230196be539167 (patch) | |
tree | 20dd3cb9f12dd94fa22fcd2d866c3cf586f8931a /accounts/gkleen@sif/shell/quickshell-plugins/KeePassXC.cpp | |
parent | 14d4d05acc235ab7033316d16530783c90e95faa (diff) | |
download | nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.tar nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.tar.gz nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.tar.bz2 nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.tar.xz nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.zip |
...
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell-plugins/KeePassXC.cpp')
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell-plugins/KeePassXC.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell-plugins/KeePassXC.cpp b/accounts/gkleen@sif/shell/quickshell-plugins/KeePassXC.cpp new file mode 100644 index 00000000..f6e4dd6e --- /dev/null +++ b/accounts/gkleen@sif/shell/quickshell-plugins/KeePassXC.cpp | |||
@@ -0,0 +1,18 @@ | |||
1 | #include "KeePassXC.hpp" | ||
2 | |||
3 | #include <QDBusConnection> | ||
4 | |||
5 | KeePassXC::KeePassXC() { | ||
6 | this->service = new DBusKeePassXC(DBusKeePassXC::staticInterfaceName(), "/keepassxc", QDBusConnection::sessionBus(), this); | ||
7 | } | ||
8 | KeePassXC::~KeePassXC() { | ||
9 | if (this->service) | ||
10 | delete this->service; | ||
11 | } | ||
12 | |||
13 | void KeePassXC::lockAllDatabases() { | ||
14 | if (!this->service) | ||
15 | return; | ||
16 | |||
17 | this->service->lockAllDatabases(); | ||
18 | } | ||