Plasma
WeatherEngine Class Reference
#include <weatherengine.h>

Public Member Functions | |
| WeatherEngine (QObject *parent, const QVariantList &args) | |
| ~WeatherEngine () | |
| void | init () |
| DataEngine * | loadIon (const QString &pluginName) |
| void | setUpdate (bool update) |
| void | unloadIon (const QString &name) |
| bool | update (void) const |
Protected Slots | |
| void | dataUpdated (const QString &source, Plasma::DataEngine::Data data) |
| void | networkStatusChanged (Solid::Networking::Status) |
| void | newIonSource (const QString &source) |
| void | removeIonSource (const QString &source) |
| void | resetCompleted (IonInterface *, bool) const |
| void | triggerReset (void) const |
| void | unloadIons (void) |
| bool | updateSourceEvent (const QString &source) |
Protected Member Functions | |
| bool | sourceRequestEvent (const QString &source) |
Properties | |
| bool | update |
Detailed Description
Definition at line 39 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 191 of file weatherengine.cpp.
| WeatherEngine::~WeatherEngine | ( | ) |
Definition at line 202 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 184 of file weatherengine.cpp.
| void WeatherEngine::init | ( | void | ) |
Definition at line 133 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 76 of file weatherengine.cpp.
| void WeatherEngine::networkStatusChanged | ( | Solid::Networking::Status | status | ) | [protected, slot] |
Whenever networking changes, take action.
Definition at line 280 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 153 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 168 of file weatherengine.cpp.
| void WeatherEngine::resetCompleted | ( | IonInterface * | i, | |
| bool | b | |||
| ) | const [protected, slot] |
Reimplemented from Plasma::DataEngine.
- Parameters:
-
source The datasource to be updated. data The new data updated.
Definition at line 290 of file weatherengine.cpp.
| void WeatherEngine::setUpdate | ( | bool | update | ) |
Definition at line 104 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 221 of file weatherengine.cpp.
| void WeatherEngine::triggerReset | ( | void | ) | const [protected, slot] |
Definition at line 269 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 127 of file weatherengine.cpp.
| void WeatherEngine::unloadIons | ( | void | ) | [protected, slot] |
Cleans up the ions that are currently loaded.
Definition at line 209 of file weatherengine.cpp.
| bool WeatherEngine::update | ( | void | ) | const |
| 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 251 of file weatherengine.cpp.
Property Documentation
bool WeatherEngine::update [read, write] |
Definition at line 42 of file weatherengine.h.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference