Engines
IonInterface Class Reference
#include <ion.h>
Inheritance diagram for IonInterface:

Detailed Description
Basically an ion is a Plasma::DataEngine, which is queried by the WeatherEngine instead of some applet.Definition at line 36 of file ion.h.
Member Typedef Documentation
typedef QHash<QString, IonInterface*> IonInterface::IonDict |
Member Enumeration Documentation
- Enumerator:
Constructor & Destructor Documentation
IonInterface::IonInterface | ( | QObject * | parent = 0 , |
|
const QVariantList & | args = QVariantList() | |||
) | [explicit] |
virtual IonInterface::~IonInterface | ( | ) | [inline, virtual] |
Member Function Documentation
void IonInterface::deref | ( | ) |
QString IonInterface::getWeatherIcon | ( | const QMap< QString, ConditionIcons > & | conditionList, | |
const QString & | condition | |||
) |
Returns weather icon filename to display in applet.
Return weather icon to display in an applet when given a condition.
- Parameters:
-
conditionList a QList map pair of icons mapped to a enumeration of conditions. condition the current condition being reported.
- Returns:
- icon name
QString IonInterface::getWindDirectionIcon | ( | const QMap< QString, WindDirections > & | windDirList, | |
const QString & | windDirection | |||
) |
Returns wind icon element to display in applet.
Return wind direction svg element to display in applet when given a wind direction.
- Parameters:
-
windDirList a QList map pair of wind directions mapped to a enumeration of directions. windDirection the current wind direction.
- Returns:
- svg element for wind direction
bool IonInterface::isUsed | ( | ) | const |
void IonInterface::ref | ( | ) |
void IonInterface::setInitialized | ( | bool | initialized | ) | [protected] |
bool IonInterface::sourceRequestEvent | ( | const QString & | source | ) | [protected] |
Reimplemented from Plasma::DataEngine.
If the ion is not initialized just set the initial data source up even if it's empty, we'll retry once the initialization is done.
- Parameters:
-
source The datasource being requested
virtual bool IonInterface::updateIonSource | ( | const QString & | source | ) | [protected, pure virtual] |
Reimplement to fetch the data from the ion.
- source the name of the datasource.
- Returns:
- true if update was successful, false if failed
Implemented in UKMETIon, EnvCanadaIon, and NOAAIon.
bool IonInterface::updateSourceEvent | ( | const QString & | source | ) | [slot] |
Reimplemented from Plasma::DataEngine.
Update the ion's datasource.
- Parameters:
-
source the name of the datasource to be updated
The documentation for this class was generated from the following files: