mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
28 lines
619 B
C
28 lines
619 B
C
|
// 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
|
||
|
};
|