KWeatherCore
weatherforecast.cpp
61 w.setCreatedTime(QDateTime::fromString(obj[QLatin1String("createdTime")].toString(), Qt::ISODate));
Class represents weatherforecast in a day.
Definition dailyweatherforecast.h:32
static DailyWeatherForecast fromJson(const QJsonObject &obj)
Construct a DailyWeatherForecast from QJsonObject.
Definition dailyweatherforecast.cpp:64
Class represents weatherforecast in a hour.
Definition hourlyweatherforecast.h:34
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:50
WeatherForecast & operator+=(HourlyWeatherForecast &&forecast)
merge HourlyWeatherForecast, new day is created when required
Definition weatherforecast.cpp:97
void setTimezone(QString timezone)
Definition weatherforecast.cpp:89
const QDateTime & createdTime() const
Definition weatherforecast.cpp:76
const std::vector< DailyWeatherForecast > & dailyWeatherForecast() const
Definition weatherforecast.cpp:64
QDateTime currentDateTime()
QDateTime fromString(QStringView string, QStringView format, QCalendar cal)
void append(const QJsonValue &value)
ISODate
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.