aboutsummaryrefslogtreecommitdiff
path: root/src/dbus.hpp
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2025-02-14 23:35:25 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2025-02-14 23:35:25 +0100
commite78e1a69d7200da8012d9ef3a3b8fb25796d498e (patch)
treed7d544b7758bd3227b4683991a5f2c0a9f6cbac6 /src/dbus.hpp
parent035ba2bd28eeca1b1658a1e69711842d3fbd152a (diff)
webtrayctl: add show
Diffstat (limited to 'src/dbus.hpp')
-rw-r--r--src/dbus.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/dbus.hpp b/src/dbus.hpp
new file mode 100644
index 0000000..ba0d558
--- /dev/null
+++ b/src/dbus.hpp
@@ -0,0 +1,24 @@
+#ifndef WEBTRAY_DBUS_HPP
+#define WEBTRAY_DBUS_HPP
+
+#include <QObject>
+
+#include "webwindow.hpp"
+
+static const char service_name[] = "xyz.nathanreiner.WebTray";
+
+class DBusHandler : public QObject {
+ Q_OBJECT;
+
+private:
+ WebWindow *window;
+
+public slots:
+ void show();
+
+public:
+ DBusHandler(WebWindow *window) : window(window) {}
+ virtual ~DBusHandler() {};
+};
+
+#endif