2019-06-02 15:03:11 +01:00
|
|
|
/**
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2019 Nicolas Fella <nicolas.fella@gmx.de>
|
2019-06-02 15:03:11 +01:00
|
|
|
*
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
2019-06-02 15:03:11 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "kdeconnectcore_export.h"
|
|
|
|
#include <QObject>
|
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
class KDECONNECTCORE_EXPORT NotificationServerInfo : public QObject
|
2019-06-02 15:03:11 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-09-10 22:23:52 +01:00
|
|
|
enum Hint { X_KDE_DISPLAY_APPNAME = 1, X_KDE_ORIGIN_NAME = 2 };
|
2019-06-02 15:03:11 +01:00
|
|
|
|
|
|
|
Q_DECLARE_FLAGS(Hints, Hint)
|
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
static NotificationServerInfo &instance();
|
2019-06-02 15:03:11 +01:00
|
|
|
|
|
|
|
void init();
|
|
|
|
|
|
|
|
Hints supportedHints();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Hints m_supportedHints;
|
|
|
|
};
|
|
|
|
|
|
|
|
Q_DECLARE_OPERATORS_FOR_FLAGS(NotificationServerInfo::Hints)
|