KWeatherCore
dailyweatherforecast.cpp
32DailyWeatherForecast &DailyWeatherForecast::operator=(const DailyWeatherForecast &other) = default;
33DailyWeatherForecast &DailyWeatherForecast::operator=(DailyWeatherForecast &&other) noexcept = default;
167void DailyWeatherForecast::setHourlyWeatherForecast(std::vector<HourlyWeatherForecast> &&forecast)
182 if (KWeatherCorePrivate::weatherIconPriorityRank(forecast.neutralWeatherIcon()) >= KWeatherCorePrivate::weatherIconPriorityRank(weatherIcon())) {
183 setWeatherDescription(KWeatherCorePrivate::resolveAPIWeatherDesc(forecast.symbolCode() + QStringLiteral("_neutral")).desc);
Class represents weatherforecast in a day.
Definition dailyweatherforecast.h:32
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
static HourlyWeatherForecast fromJson(const QJsonObject &obj)
construct from QJsonObject
Definition hourlyweatherforecast.cpp:67
QDate fromString(QStringView string, QStringView format, QCalendar cal)
QDate date() const const
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 Oct 4 2024 12:06:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:06:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.