KWeatherCore

capnamedvalue.h
1/*
2 * SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org>
3 * SPDX-License-Identifier: LGPL-2.0-or-later
4 */
5
6#ifndef KWEATHERCORE_CAPNAMEDVALUE_H
7#define KWEATHERCORE_CAPNAMEDVALUE_H
8
9#include <kweathercore/kweathercore_export.h>
10
11#include <QMetaType>
12#include <QString>
13
14namespace KWeatherCore
15{
16
17/** CAP key/value pairs as found in area geo codes, alert event codes or alert parameters. */
18class KWEATHERCORE_EXPORT CAPNamedValue
19{
20 Q_GADGET
21 Q_PROPERTY(QString name)
22 Q_PROPERTY(QString value)
23 Q_PROPERTY(float radius MEMBER radius)
24
25public:
26 QString name;
27 QString value;
28};
29}
30
31Q_DECLARE_METATYPE(KWeatherCore::CAPNamedValue)
32
33#endif // KWEATHERCORE_CAPNAMEDVALUE_H
CAP key/value pairs as found in area geo codes, alert event codes or alert parameters.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 12:00:07 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.