summary refs log tree commit diff
path: root/src/dock/Dock.h
blob: 888d5c986e2a6ad41e87c39141256f75dd89381b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// SPDX-FileCopyrightText: 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 final : 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
};