KWeatherCore
dailyweatherforecast.h
void setPrecipitation(double precipitation)
set the precipitation of the day
Definition dailyweatherforecast.cpp:91
const std::vector< HourlyWeatherForecast > & hourlyWeatherForecast() const
returns all HourlyWeathreForecast belonged to this day
Definition dailyweatherforecast.cpp:163
bool operator<(const DailyWeatherForecast &forecast) const
if this is earlier than
Definition dailyweatherforecast.cpp:203
void setWeatherIcon(const QString &icon)
set the weather icon of the day
Definition dailyweatherforecast.cpp:107
void setDate(const QDate &date)
set the date this object represents
Definition dailyweatherforecast.cpp:115
void setWeatherDescription(const QString &description)
set the weather description of the day
Definition dailyweatherforecast.cpp:111
bool operator==(const DailyWeatherForecast &forecast) const
if on the same day
Definition dailyweatherforecast.cpp:198
void setMaxTemp(double maxTemp)
set the maximum temperature of the day
Definition dailyweatherforecast.cpp:83
void setHourlyWeatherForecast(std::vector< HourlyWeatherForecast > &&forecast)
overloaded version
Definition dailyweatherforecast.cpp:167
void setMinTemp(double minTemp)
set the minimum temperature of the day
Definition dailyweatherforecast.cpp:87
DailyWeatherForecast & operator+=(HourlyWeatherForecast &&forecast)
append hourly forecast, you can append valid hourly forecast into a invalid daily forecast,...
Definition dailyweatherforecast.cpp:172
static DailyWeatherForecast fromJson(const QJsonObject &obj)
Construct a DailyWeatherForecast from QJsonObject.
Definition dailyweatherforecast.cpp:64
QJsonObject toJson() const
Return a QJsonObject that can be converted back with DailyWeatherForecast::fromJson.
Definition dailyweatherforecast.cpp:45
Class represents weatherforecast in a hour.
Definition hourlyweatherforecast.h:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:11:37 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:11:37 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.