Engines
WeatherEngine Class Reference
#include <weatherengine.h>

Public Member Functions | |
| void | init () |
| DataEngine * | loadIon (const QString &pluginName) |
| void | unloadIon (const QString &name) |
| WeatherEngine (QObject *parent, const QVariantList &args) | |
| ~WeatherEngine () | |
Protected Slots | |
| void | dataUpdated (const QString &source, Plasma::DataEngine::Data data) |
| void | newIonSource (const QString &source) |
| void | removeIonSource (const QString &source) |
| bool | updateSourceEvent (const QString &source) |
Protected Member Functions | |
| bool | sourceRequestEvent (const QString &source) |
Detailed Description
Definition at line 36 of file weatherengine.h.
Constructor & Destructor Documentation
| WeatherEngine::WeatherEngine | ( | QObject * | parent, | |
| const QVariantList & | args | |||
| ) |
Constructor.
- Parameters:
-
parent The parent object. args Argument list, unused.
Definition at line 159 of file weatherengine.cpp.
| WeatherEngine::~WeatherEngine | ( | ) |
Definition at line 172 of file weatherengine.cpp.
Member Function Documentation
| void WeatherEngine::dataUpdated | ( | const QString & | source, | |
| Plasma::DataEngine::Data | data | |||
| ) | [protected, slot] |
Reimplemented from Plasma::DataEngine.
SLOT: Push out new data to applet.
- Parameters:
-
source The datasource to be updated. data The new data updated.
Definition at line 152 of file weatherengine.cpp.
| void WeatherEngine::init | ( | void | ) |
Definition at line 109 of file weatherengine.cpp.
| Plasma::DataEngine * WeatherEngine::loadIon | ( | const QString & | pluginName | ) |
Load a plugin.
Loads an ion plugin given a plugin name found via KService.
- pluginName Name of the plugin
- Returns:
- IonInterface returns an instance of the loaded plugin
Definition at line 68 of file weatherengine.cpp.
| void WeatherEngine::newIonSource | ( | const QString & | source | ) | [protected, slot] |
Notify WeatherEngine a new ion has data sources.
SLOT: Get data from a new source.
- source datasource name.
Definition at line 121 of file weatherengine.cpp.
| void WeatherEngine::removeIonSource | ( | const QString & | source | ) | [protected, slot] |
Notify WeatherEngine a datasource is being removed.
SLOT: Remove the datasource from the ion and unload plugin if needed.
- source datasource name.
Definition at line 136 of file weatherengine.cpp.
| bool WeatherEngine::sourceRequestEvent | ( | const QString & | source | ) | [protected] |
Reimplemented from Plasma::DataEngine.
SLOT: Set up each Ion for the first time and get any data.
We use it to communicate to the Ion plugins to set the data sources.
- Parameters:
-
source The datasource name.
Definition at line 185 of file weatherengine.cpp.
| void WeatherEngine::unloadIon | ( | const QString & | name | ) |
Unload a plugin.
Unload an Ion plugin given a Ion plugin name.
- name Name of the plugin.
Definition at line 103 of file weatherengine.cpp.
| bool WeatherEngine::updateSourceEvent | ( | const QString & | source | ) | [protected, slot] |
Reimplemented from Plasma::DataEngine.
SLOT: update the Applet with new data from all ions loaded.
- Parameters:
-
source The datasource to update.
Definition at line 212 of file weatherengine.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference