1 /** 2 * SPDX-FileCopyrightText: 2019 Nicolas Fella <nicolas.fella@gmx.de> 3 * 4 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 5 */ 6 7 #pragma once 8 9 #include "kdeconnectcore_export.h" 10 #include <QObject> 11 12 class KDECONNECTCORE_EXPORT NotificationServerInfo 13 : public QObject 14 { 15 Q_OBJECT 16 17 public: 18 enum Hint { 19 X_KDE_DISPLAY_APPNAME = 1, 20 X_KDE_ORIGIN_NAME = 2 21 }; 22 23 Q_DECLARE_FLAGS(Hints, Hint) 24 25 static NotificationServerInfo& instance(); 26 27 void init(); 28 29 Hints supportedHints(); 30 31 private: 32 Hints m_supportedHints; 33 }; 34 35 Q_DECLARE_OPERATORS_FOR_FLAGS(NotificationServerInfo::Hints) 36