KWeatherCore
hourlyweatherforecast.cpp
40HourlyWeatherForecast &HourlyWeatherForecast::operator=(const HourlyWeatherForecast &other) = default;
49HourlyWeatherForecast &HourlyWeatherForecast::operator=(HourlyWeatherForecast &&other) noexcept = default;
69 HourlyWeatherForecast ret(QDateTime::fromString(obj[QLatin1String("date")].toString(), Qt::ISODate));
Class represents weatherforecast in a hour.
Definition hourlyweatherforecast.h:34
void setTemperature(double temperature)
set temperature in celsius
Definition hourlyweatherforecast.cpp:127
void setPrecipitationAmount(double precipitationAmount)
set precipitation in mm
Definition hourlyweatherforecast.cpp:211
HourlyWeatherForecast()
HourlyWeatherForecast construct a null forecast.
Definition hourlyweatherforecast.cpp:43
void setWeatherDescription(const QString &weatherDescription)
set weather description
Definition hourlyweatherforecast.cpp:95
void setNeutralWeatherIcon(const QString &neutralWeatherIcon)
set neutral weatherIcon
Definition hourlyweatherforecast.cpp:111
bool operator==(const KWeatherCore::HourlyWeatherForecast &) const
Definition hourlyweatherforecast.cpp:215
static HourlyWeatherForecast fromJson(const QJsonObject &obj)
construct from QJsonObject
Definition hourlyweatherforecast.cpp:67
const QString & symbolCode() const
internal symbolcode from api, normally you can ignore this
Definition hourlyweatherforecast.cpp:115
void setWindDirectionDegree(double windDirection)
Sets the wind direction in degree.
Definition hourlyweatherforecast.cpp:145
void setWeatherIcon(const QString &weatherIcon)
set weather icon
Definition hourlyweatherforecast.cpp:103
void setSymbolCode(const QString &symbolCode)
set internal symbolcode from api, normally you can ignore this
Definition hourlyweatherforecast.cpp:119
QDateTime currentDateTime()
QDateTime fromString(QStringView string, QStringView format, QCalendar cal)
QString toString(QStringView format, QCalendar cal) const const
ISODate
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.