Plasma
NOAAIon Class Reference
#include <ion_noaa.h>

Detailed Description
Definition at line 65 of file ion_noaa.h.
Public Member Functions | |
void | init (void) |
bool | metricUnit (void) |
NOAAIon (QObject *parent, const QVariantList &args) | |
void | setMeasureUnit (const QString &unit) |
void | setTimezoneFormat (const QString &tz) |
bool | timezone (void) |
bool | updateIonSource (const QString &source) |
void | updateWeather (const QString &source) |
~NOAAIon () | |
Protected Slots | |
void | setup_slotDataArrived (KIO::Job *, const QByteArray &) |
void | setup_slotJobFinished (KJob *) |
void | slotDataArrived (KIO::Job *, const QByteArray &) |
void | slotJobFinished (KJob *) |
Constructor & Destructor Documentation
NOAAIon::NOAAIon | ( | QObject * | parent, | |
const QVariantList & | args | |||
) |
Definition at line 65 of file ion_noaa.cpp.
NOAAIon::~NOAAIon | ( | ) |
Definition at line 71 of file ion_noaa.cpp.
Member Function Documentation
void NOAAIon::init | ( | void | ) |
Definition at line 78 of file ion_noaa.cpp.
bool NOAAIon::metricUnit | ( | void | ) | [virtual] |
Reimplement to check whether the measurement is metric or not.
- Returns:
- true if metric is used, false if not.
Implements IonInterface.
Definition at line 395 of file ion_noaa.cpp.
void NOAAIon::setMeasureUnit | ( | const QString & | measureType | ) | [virtual] |
Sets the measurement unit from KGlobal::locale()->measureSystem This is internally set by the WeatherEngine itself.
- measureType the measurement type
Implements IonInterface.
Definition at line 384 of file ion_noaa.cpp.
void NOAAIon::setTimezoneFormat | ( | const QString & | isUtc | ) | [virtual] |
Sets the system default for UTC from KDateTime::currentDateTime This is internally set by the WeatherEngine itself.
- isUtc The UTC state, maybe 0 or 1.
Implements IonInterface.
Definition at line 390 of file ion_noaa.cpp.
void NOAAIon::setup_slotDataArrived | ( | KIO::Job * | job, | |
const QByteArray & | data | |||
) | [protected, slot] |
Definition at line 170 of file ion_noaa.cpp.
void NOAAIon::setup_slotJobFinished | ( | KJob * | job | ) | [protected, slot] |
Definition at line 203 of file ion_noaa.cpp.
void NOAAIon::slotDataArrived | ( | KIO::Job * | job, | |
const QByteArray & | data | |||
) | [protected, slot] |
Definition at line 182 of file ion_noaa.cpp.
void NOAAIon::slotJobFinished | ( | KJob * | job | ) | [protected, slot] |
Definition at line 193 of file ion_noaa.cpp.
bool NOAAIon::timezone | ( | void | ) | [virtual] |
Reimplement to check if timeformat is UTC or not.
- Returns:
- true if UTC, false if local time.
Implements IonInterface.
Definition at line 406 of file ion_noaa.cpp.
bool NOAAIon::updateIonSource | ( | const QString & | source | ) | [virtual] |
Reimplement to fetch the data from the ion.
- source the name of the datasource.
- Returns:
- true if update was successful, false if failed
Implements IonInterface.
Definition at line 104 of file ion_noaa.cpp.
void NOAAIon::updateWeather | ( | const QString & | source | ) |
Definition at line 416 of file ion_noaa.cpp.
The documentation for this class was generated from the following files: