mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
96f791daf1
See also: https://daniel.haxx.se/blog/2023/01/08/copyright-without-years/ https://hynek.me/til/copyright-years/
27 lines
620 B
C++
27 lines
620 B
C++
// 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
|
|
};
|