marble
#include <WeatherData.h>
Public Types | |
enum | PressureDevelopment { Rising, NoChange, Falling, PressureDevelopmentNotAvailable } |
enum | PressureUnit { HectoPascal, KiloPascal, Bar, mmHg, inchHg } |
enum | SpeedUnit { kph, mph, mps, knots, beaufort } |
enum | TemperatureUnit { Celsius, Fahrenheit, Kelvin } |
enum | Visibility { VeryGood, Good, Normal, Poor, VeryPoor, Fog, VisibilityNotAvailable } |
enum | WeatherCondition { ConditionNotAvailable, ClearDay, ClearNight, FewCloudsDay, FewCloudsNight, PartlyCloudyDay, PartlyCloudyNight, Overcast, LightShowersDay, LightShowersNight, ShowersDay, ShowersNight, LightRain, Rain, ChanceThunderstormDay, ChanceThunderstormNight, Thunderstorm, Hail, ChanceSnowDay, ChanceSnowNight, LightSnow, Snow, RainSnow, Mist, SandStorm } |
enum | WindDirection { N, NNE, NE, ENE, E, SSE, SE, ESE, S, NNW, NW, WNW, W, SSW, SW, WSW, DirectionNotAvailable } |
Detailed Description
Definition at line 26 of file WeatherData.h.
Member Enumeration Documentation
Enumerator | |
---|---|
Rising | |
NoChange | |
Falling | |
PressureDevelopmentNotAvailable |
Definition at line 84 of file WeatherData.h.
Enumerator | |
---|---|
HectoPascal | |
KiloPascal | |
Bar | |
mmHg | |
inchHg |
Definition at line 115 of file WeatherData.h.
Enumerator | |
---|---|
kph | |
mph | |
mps | |
knots | |
beaufort |
Definition at line 101 of file WeatherData.h.
Enumerator | |
---|---|
Celsius | |
Fahrenheit | |
Kelvin |
Definition at line 109 of file WeatherData.h.
Enumerator | |
---|---|
VeryGood | |
Good | |
Normal | |
Poor | |
VeryPoor | |
Fog | |
VisibilityNotAvailable |
Definition at line 91 of file WeatherData.h.
Definition at line 30 of file WeatherData.h.
Enumerator | |
---|---|
N | |
NNE | |
NE | |
ENE | |
E | |
SSE | |
SE | |
ESE | |
S | |
NNW | |
NW | |
WNW | |
W | |
SSW | |
SW | |
WSW | |
DirectionNotAvailable |
Definition at line 64 of file WeatherData.h.
Constructor & Destructor Documentation
Marble::WeatherData::WeatherData | ( | ) |
Definition at line 278 of file WeatherData.cpp.
Marble::WeatherData::WeatherData | ( | const WeatherData & | other | ) |
Definition at line 283 of file WeatherData.cpp.
Marble::WeatherData::~WeatherData | ( | ) |
Definition at line 289 of file WeatherData.cpp.
Member Function Documentation
WeatherData::WeatherCondition Marble::WeatherData::condition | ( | ) | const |
Definition at line 343 of file WeatherData.cpp.
QString Marble::WeatherData::conditionString | ( | ) | const |
Definition at line 359 of file WeatherData.cpp.
QDate Marble::WeatherData::dataDate | ( | ) | const |
Get the date the data is meant for.
Definition at line 327 of file WeatherData.cpp.
void Marble::WeatherData::detach | ( | ) |
Definition at line 881 of file WeatherData.cpp.
bool Marble::WeatherData::hasValidCondition | ( | ) | const |
Definition at line 354 of file WeatherData.cpp.
bool Marble::WeatherData::hasValidDataDate | ( | ) | const |
Checks, if the data item has a valid data date.
Definition at line 338 of file WeatherData.cpp.
bool Marble::WeatherData::hasValidHumidity | ( | ) | const |
Definition at line 816 of file WeatherData.cpp.
bool Marble::WeatherData::hasValidMaxTemperature | ( | ) | const |
Definition at line 655 of file WeatherData.cpp.
bool Marble::WeatherData::hasValidMinTemperature | ( | ) | const |
Definition at line 677 of file WeatherData.cpp.
bool Marble::WeatherData::hasValidPressure | ( | ) | const |
Definition at line 744 of file WeatherData.cpp.
bool Marble::WeatherData::hasValidPressureDevelopment | ( | ) | const |
Definition at line 786 of file WeatherData.cpp.
bool Marble::WeatherData::hasValidPublishingTime | ( | ) | const |
Checks, if the data item has a valid publishing time.
Definition at line 322 of file WeatherData.cpp.
bool Marble::WeatherData::hasValidTemperature | ( | ) | const |
Definition at line 627 of file WeatherData.cpp.
bool Marble::WeatherData::hasValidVisibility | ( | ) | const |
Definition at line 693 of file WeatherData.cpp.
bool Marble::WeatherData::hasValidWindDirection | ( | ) | const |
Definition at line 443 of file WeatherData.cpp.
bool Marble::WeatherData::hasValidWindSpeed | ( | ) | const |
Definition at line 585 of file WeatherData.cpp.
qreal Marble::WeatherData::humidity | ( | ) | const |
Definition at line 805 of file WeatherData.cpp.
QString Marble::WeatherData::humidityString | ( | ) | const |
Definition at line 821 of file WeatherData.cpp.
QImage Marble::WeatherData::icon | ( | ) | const |
Get the icon showing the current condition.
Definition at line 409 of file WeatherData.cpp.
QString Marble::WeatherData::iconSource | ( | ) | const |
Definition at line 425 of file WeatherData.cpp.
bool Marble::WeatherData::isValid | ( | ) | const |
Definition at line 295 of file WeatherData.cpp.
qreal Marble::WeatherData::maxTemperature | ( | WeatherData::TemperatureUnit | format = WeatherData::Kelvin | ) | const |
Definition at line 638 of file WeatherData.cpp.
QString Marble::WeatherData::maxTemperatureString | ( | WeatherData::TemperatureUnit | format = WeatherData::Kelvin | ) | const |
Definition at line 649 of file WeatherData.cpp.
qreal Marble::WeatherData::minTemperature | ( | WeatherData::TemperatureUnit | format = WeatherData::Kelvin | ) | const |
Definition at line 660 of file WeatherData.cpp.
QString Marble::WeatherData::minTemperatureString | ( | WeatherData::TemperatureUnit | format = WeatherData::Kelvin | ) | const |
Definition at line 665 of file WeatherData.cpp.
WeatherData & Marble::WeatherData::operator= | ( | const WeatherData & | other | ) |
Definition at line 875 of file WeatherData.cpp.
qreal Marble::WeatherData::pressure | ( | WeatherData::PressureUnit | format = WeatherData::HectoPascal | ) | const |
Definition at line 698 of file WeatherData.cpp.
WeatherData::PressureDevelopment Marble::WeatherData::pressureDevelopment | ( | ) | const |
Definition at line 775 of file WeatherData.cpp.
QString Marble::WeatherData::pressureDevelopmentString | ( | ) | const |
Definition at line 791 of file WeatherData.cpp.
QString Marble::WeatherData::pressureString | ( | WeatherData::PressureUnit | format = WeatherData::HectoPascal | ) | const |
Definition at line 749 of file WeatherData.cpp.
QDateTime Marble::WeatherData::publishingTime | ( | ) | const |
Get the time when the data was published.
Definition at line 311 of file WeatherData.cpp.
void Marble::WeatherData::setCondition | ( | WeatherData::WeatherCondition | condition | ) |
Definition at line 348 of file WeatherData.cpp.
void Marble::WeatherData::setDataDate | ( | const QDate & | date | ) |
Set the date the data is meant for.
Definition at line 332 of file WeatherData.cpp.
void Marble::WeatherData::setHumidity | ( | qreal | humidity | ) |
Definition at line 810 of file WeatherData.cpp.
void Marble::WeatherData::setMaxTemperature | ( | qreal | temp, |
WeatherData::TemperatureUnit | format = WeatherData::Kelvin |
||
) |
Definition at line 643 of file WeatherData.cpp.
void Marble::WeatherData::setMinTemperature | ( | qreal | temp, |
WeatherData::TemperatureUnit | format = WeatherData::Kelvin |
||
) |
Definition at line 671 of file WeatherData.cpp.
void Marble::WeatherData::setPressure | ( | qreal | pressure, |
WeatherData::PressureUnit | format = WeatherData::HectoPascal |
||
) |
Definition at line 721 of file WeatherData.cpp.
void Marble::WeatherData::setPressureDevelopment | ( | WeatherData::PressureDevelopment | pressureDevelopment | ) |
Definition at line 780 of file WeatherData.cpp.
void Marble::WeatherData::setPublishingTime | ( | const QDateTime & | dateTime | ) |
Set the time when the data was published.
Definition at line 316 of file WeatherData.cpp.
void Marble::WeatherData::setTemperature | ( | qreal | temp, |
WeatherData::TemperatureUnit | format = WeatherData::Kelvin |
||
) |
Definition at line 621 of file WeatherData.cpp.
void Marble::WeatherData::setVisibilty | ( | WeatherData::Visibility | visibility | ) |
Definition at line 687 of file WeatherData.cpp.
void Marble::WeatherData::setWindDirection | ( | WeatherData::WindDirection | direction | ) |
Definition at line 437 of file WeatherData.cpp.
void Marble::WeatherData::setWindSpeed | ( | qreal | speed, |
WeatherData::SpeedUnit | format = WeatherData::mps |
||
) |
Definition at line 536 of file WeatherData.cpp.
qreal Marble::WeatherData::temperature | ( | WeatherData::TemperatureUnit | format = WeatherData::Kelvin | ) | const |
Definition at line 616 of file WeatherData.cpp.
QString Marble::WeatherData::temperatureString | ( | WeatherData::TemperatureUnit | format = WeatherData::Kelvin | ) | const |
Definition at line 632 of file WeatherData.cpp.
QString Marble::WeatherData::toHtml | ( | WeatherData::TemperatureUnit | temperatureUnit, |
WeatherData::SpeedUnit | speedUnit, | ||
WeatherData::PressureUnit | pressureUnit | ||
) | const |
Definition at line 826 of file WeatherData.cpp.
WeatherData::Visibility Marble::WeatherData::visibility | ( | ) | const |
Definition at line 682 of file WeatherData.cpp.
WeatherData::WindDirection Marble::WeatherData::windDirection | ( | ) | const |
Definition at line 432 of file WeatherData.cpp.
QString Marble::WeatherData::windDirectionString | ( | ) | const |
Definition at line 448 of file WeatherData.cpp.
qreal Marble::WeatherData::windSpeed | ( | WeatherData::SpeedUnit | format = WeatherData::mps | ) | const |
Definition at line 488 of file WeatherData.cpp.
QString Marble::WeatherData::windSpeedString | ( | WeatherData::SpeedUnit | unit = WeatherData::kph | ) | const |
Definition at line 590 of file WeatherData.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.