File indexing completed on 2024-04-21 08:46:27

0001 /**
0002  * SPDX-FileCopyrightText: 2019 Nicolas Fella <nicolas.fella@gmx.de>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  */
0006 
0007 #pragma once
0008 
0009 #include "kdeconnectcore_export.h"
0010 #include <QObject>
0011 
0012 class KDECONNECTCORE_EXPORT NotificationServerInfo : public QObject
0013 {
0014     Q_OBJECT
0015 
0016 public:
0017     enum Hint { X_KDE_DISPLAY_APPNAME = 1, X_KDE_ORIGIN_NAME = 2 };
0018 
0019     Q_DECLARE_FLAGS(Hints, Hint)
0020 
0021     static NotificationServerInfo &instance();
0022 
0023     void init();
0024 
0025     Hints supportedHints();
0026 
0027 private:
0028     Hints m_supportedHints;
0029 };
0030 
0031 Q_DECLARE_OPERATORS_FOR_FLAGS(NotificationServerInfo::Hints)