marble
BBCParser.cpp
Go to the documentation of this file.
533 regExp.setPattern( "([A-Za-z]+,\\s+)(\\d+)(\\s+)([A-Za-z]+)(\\s+)(\\d{4,4})(\\s+)(\\d+)(:)(\\d+)(:)(\\d+)(\\s+)([+-])(\\d{2,2})(\\d{2,2})" );
Definition: WeatherData.h:46
Definition: WeatherData.h:75
bool atEnd() const
void setCondition(WeatherData::WeatherCondition condition)
Definition: WeatherData.cpp:348
QString cap(int nth) const
Definition: WeatherData.h:51
void setPressure(qreal pressure, WeatherData::PressureUnit format=WeatherData::HectoPascal)
Definition: WeatherData.cpp:721
bool setHMS(int h, int m, int s, int ms)
Definition: WeatherData.h:94
QString toString() const
void setPressureDevelopment(WeatherData::PressureDevelopment)
Definition: WeatherData.cpp:780
Definition: WeatherData.h:79
const T & at(int i) const
void setTime(const QTime &time)
void setMaxTemperature(qreal temp, WeatherData::TemperatureUnit format=WeatherData::Kelvin)
Definition: WeatherData.cpp:643
void unlock()
void setDevice(QIODevice *device)
Definition: WeatherData.h:118
void chop(int n)
double toDouble(bool *ok) const
QString tr(const char *sourceText, const char *disambiguation, int n)
void raiseError(const QString &message)
Definition: WeatherData.h:57
int dayOfWeek() const
void setPattern(const QString &pattern)
Definition: WeatherData.h:76
Definition: WeatherData.h:26
int indexIn(const QString &str, int offset, CaretMode caretMode) const
void setTimeSpec(Qt::TimeSpec spec)
Definition: BBCWeatherItem.h:22
void setWindSpeed(qreal speed, WeatherData::SpeedUnit format=WeatherData::mps)
Definition: WeatherData.cpp:536
Definition: WeatherData.h:45
Definition: WeatherData.h:78
void scheduleRead(const QString &path, BBCWeatherItem *item, const QString &type)
Definition: BBCParser.cpp:191
int toInt(bool *ok, int base) const
Definition: WeatherData.h:87
bool isEmpty() const
void setDataDate(const QDate &date)
Set the date the data is meant for.
Definition: WeatherData.cpp:332
void setVisibilty(WeatherData::Visibility visibility)
Definition: WeatherData.cpp:687
void setDate(const QDate &date)
Definition: WeatherData.h:33
bool isCharacters() const
Definition: WeatherData.h:67
Definition: WeatherData.h:96
Definition: WeatherData.h:110
Definition: WeatherData.h:39
Definition: WeatherData.h:85
TokenType readNext()
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
Definition: WeatherData.h:58
Definition: WeatherData.h:77
Definition: WeatherData.h:65
Definition: BBCParser.h:33
QString toLower() const
const T value(const Key &key) const
bool contains(QChar ch, Qt::CaseSensitivity cs) const
void lock()
Definition: BBCParser.h:40
Definition: WeatherData.h:93
Definition: WeatherData.h:80
bool setDate(int year, int month, int day)
void setTemperature(qreal temp, WeatherData::TemperatureUnit format=WeatherData::Kelvin)
Definition: WeatherData.cpp:621
bool isStartElement() const
void ensureRunning()
Definition: AbstractWorkerThread.cpp:59
Definition: WeatherData.h:95
Definition: WeatherData.h:103
Definition: WeatherData.h:68
float toFloat(bool *ok) const
QDate currentDate()
void parsedFile()
QStringRef text() const
Definition: WeatherData.h:70
void setMinTemperature(qreal temp, WeatherData::TemperatureUnit format=WeatherData::Kelvin)
Definition: WeatherData.cpp:671
Definition: WeatherData.h:71
Definition: WeatherData.h:34
QDate addDays(int ndays) const
Definition: WeatherData.h:55
Definition: WeatherData.h:54
Definition: WeatherData.h:73
Definition: WeatherData.h:56
QDateTime addSecs(int s) const
Definition: WeatherData.h:72
void setPublishingTime(const QDateTime &dateTime)
Set the time when the data was published.
Definition: WeatherData.cpp:316
QStringRef name() const
Definition: WeatherData.h:43
Definition: WeatherData.h:97
The AbstractWorkerThread is a class written for small tasks that have to run multiple times on differ...
Definition: AbstractWorkerThread.h:36
Definition: WeatherData.h:86
Definition: WeatherData.h:92
Definition: WeatherData.h:66
Definition: WeatherData.h:74
void setWindDirection(WeatherData::WindDirection direction)
Definition: WeatherData.cpp:437
Definition: WeatherData.h:69
bool isEndElement() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.