9#include <kweathercore/kweathercore_export.h>
12#include <QSharedDataPointer>
18Q_NAMESPACE_EXPORT(KWEATHERCORE_EXPORT)
19enum class WindDirection { N, NW, W, SW, S, SE, E, NE };
20Q_ENUM_NS(WindDirection)
22class HourlyWeatherForecastPrivate;
37 Q_PROPERTY(
QString weatherDescription READ weatherDescription)
38 Q_PROPERTY(
QString weatherIcon READ weatherIcon)
39 Q_PROPERTY(
QString neutralWeatherIcon READ neutralWeatherIcon)
40 Q_PROPERTY(
double windDirectionDegree READ windDirectionDegree)
41 Q_PROPERTY(KWeatherCore::WindDirection windDirectionCardinal READ windDirectionCardinal STORED
false)
42 Q_PROPERTY(qreal temperature READ temperature)
43 Q_PROPERTY(qreal pressure READ pressure)
44 Q_PROPERTY(qreal windSpeed READ windSpeed)
45 Q_PROPERTY(qreal humidity READ humidity)
46 Q_PROPERTY(qreal fog READ fog)
47 Q_PROPERTY(qreal uvIndex READ uvIndex)
48 Q_PROPERTY(qreal precipitationAmount READ precipitationAmount)
79 const QString &weatherDescription()
const;
83 void setWeatherDescription(
const QString &weatherDescription);
87 const QString &weatherIcon()
const;
91 void setWeatherIcon(
const QString &weatherIcon);
95 const QString &neutralWeatherIcon()
const;
99 void setNeutralWeatherIcon(
const QString &neutralWeatherIcon);
103 const QString &symbolCode()
const;
107 void setSymbolCode(
const QString &symbolCode);
111 double temperature()
const;
115 void setTemperature(
double temperature);
119 double pressure()
const;
123 void setPressure(
double pressure);
130 double windDirectionDegree()
const;
135 void setWindDirectionDegree(
double windDirection);
141 WindDirection windDirectionCardinal()
const;
145 double windSpeed()
const;
149 void setWindSpeed(
double windSpeed);
153 double humidity()
const;
157 void setHumidity(
double humidity);
165 void setFog(
double fog);
169 double uvIndex()
const;
173 void setUvIndex(
double uvIndex);
177 double precipitationAmount()
const;
181 void setPrecipitationAmount(
double precipitationAmount);
Class represents weatherforecast in a hour.
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
KDE's Doxygen guidelines are available online.