summary refs log tree commit diff
path: root/src/dock/Dock.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/dock/Dock.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/dock/Dock.h b/src/dock/Dock.h
new file mode 100644
index 00000000..a076a97c
--- /dev/null
+++ b/src/dock/Dock.h
@@ -0,0 +1,27 @@
+// SPDX-FileCopyrightText: 2022 Nheko Contributors
+//
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+#include <QObject>
+#if defined(NHEKO_DBUS_SYS)
+#include <QDBusServiceWatcher>
+#include <QtDBus/QDBusArgument>
+#include <QtDBus/QDBusInterface>
+#endif
+
+class Dock : public QObject
+{
+    Q_OBJECT
+public:
+    Dock(QObject *parent = nullptr);
+public slots:
+    void setUnreadCount(const int count);
+
+private:
+#if defined(NHEKO_DBUS_SYS)
+    void unitySetNotificationCount(const int count);
+    QDBusServiceWatcher *unityServiceWatcher = nullptr;
+    bool unityServiceAvailable               = false;
+#endif
+};