2023-02-22 01:48:49 +03:00
|
|
|
// SPDX-FileCopyrightText: Nheko Contributors
|
2022-06-05 14:51:29 +03:00
|
|
|
//
|
|
|
|
// 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
|
|
|
|
|
2022-10-10 15:38:29 +03:00
|
|
|
class Dock final : public QObject
|
2022-06-05 14:51:29 +03:00
|
|
|
{
|
|
|
|
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
|
|
|
|
};
|