• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Engines

WeatherEngine Class Reference

#include <weatherengine.h>

Inheritance diagram for WeatherEngine:

Inheritance graph
[legend]

List of all members.


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

Author:
Shawn Starr This class is DataEngine. It handles loading, unloading, updating any data the ions wish to send. It is a gateway for datasources (ions) to communicate with the WeatherEngine.

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:
  • weatherengine.h
  • weatherengine.cpp

Engines

Skip menu "Engines"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal