File indexing completed on 2024-05-12 12:43:28
0001 /* 0002 * SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org> 0003 * SPDX-License-Identifier: LGPL-2.0-or-later 0004 */ 0005 0006 #ifndef KWEATHERCORE_CAPNAMEDVALUE_H 0007 #define KWEATHERCORE_CAPNAMEDVALUE_H 0008 0009 #include <kweathercore/kweathercore_export.h> 0010 0011 #include <QMetaType> 0012 #include <QString> 0013 0014 namespace KWeatherCore 0015 { 0016 0017 /** CAP key/value pairs as found in area geo codes, alert event codes or alert parameters. */ 0018 class KWEATHERCORE_EXPORT CAPNamedValue 0019 { 0020 Q_GADGET 0021 Q_PROPERTY(QString name) 0022 Q_PROPERTY(QString value) 0023 Q_PROPERTY(float radius MEMBER radius) 0024 0025 public: 0026 QString name; 0027 QString value; 0028 }; 0029 } 0030 0031 Q_DECLARE_METATYPE(KWeatherCore::CAPNamedValue) 0032 0033 #endif // KWEATHERCORE_CAPNAMEDVALUE_H