File indexing completed on 2025-02-02 05:02:39
0001 /* 0002 SPDX-FileCopyrightText: 2023 Volker Krause <vkrause@kde.org> 0003 SPDX-License-Identifier: LGPL-2.0-or-later 0004 */ 0005 0006 #ifndef WEATHERINFORMATION_H 0007 #define WEATHERINFORMATION_H 0008 0009 #include "weatherforecast.h" 0010 0011 #include <QString> 0012 0013 /** Holds weather information for display in the timeline. */ 0014 class WeatherInformation 0015 { 0016 Q_GADGET 0017 Q_PROPERTY(WeatherForecast forecast MEMBER forecast CONSTANT) 0018 Q_PROPERTY(QString locationName MEMBER locationName CONSTANT) 0019 public: 0020 WeatherForecast forecast; 0021 QString locationName; 0022 0023 static QString labelForPlace(const QVariant &place); 0024 }; 0025 0026 Q_DECLARE_METATYPE(WeatherInformation) 0027 0028 #endif // WEATHERINFORMATION_H