KWeatherCore
weatherforecast.cpp
69 w.setCreatedTime(QDateTime::fromString(obj[QLatin1String("createdTime")].toString(), Qt::ISODate));
Class represents weatherforecast in a day.
Definition dailyweatherforecast.h:25
static DailyWeatherForecast fromJson(const QJsonObject &obj)
Construct a DailyWeatherForecast from QJsonObject.
Definition dailyweatherforecast.cpp:68
Class represents weatherforecast in a hour.
Definition hourlyweatherforecast.h:30
The WeatherForecast class contains the weather information of one location for days.
Definition weatherforecast.h:23
static WeatherForecast fromJson(const QJsonObject &obj)
construct from json
Definition weatherforecast.cpp:58
WeatherForecast & operator+=(HourlyWeatherForecast &&forecast)
merge HourlyWeatherForecast, new day is created when required
Definition weatherforecast.cpp:109
void setTimezone(QString timezone)
Definition weatherforecast.cpp:97
const QDateTime & createdTime() const
Definition weatherforecast.cpp:84
const std::vector< DailyWeatherForecast > & dailyWeatherForecast() const
Definition weatherforecast.cpp:72
QDateTime currentDateTime()
QDateTime fromString(QStringView string, QStringView format, QCalendar cal)
QString toString(QStringView format, QCalendar cal) const const
void append(const QJsonValue &value)
ISODate
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:51:32 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:51:32 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.