summary refs log tree commit diff
path: root/src/dock/Dock.h
diff options
context:
space:
mode:
authord42 <d42@users.noreply.github.com>2022-06-05 11:51:29 +0000
committerGitHub <noreply@github.com>2022-06-05 11:51:29 +0000
commit0e02024084db087552a53520e829f3e4a5ae0cb4 (patch)
tree16277893e42f6e2c4dac1e53abed92dffcdffec1 /src/dock/Dock.h
parentTry to fix flatpak upload (diff)
downloadnheko-0e02024084db087552a53520e829f3e4a5ae0cb4.tar.xz
Unread messages count as an Unity compatible badge (#1085)
Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>
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
+};