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

Plasma

EnvCanadaIon Class Reference

#include <ion_envcan.h>

Inheritance diagram for EnvCanadaIon:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 124 of file ion_envcan.h.


Public Member Functions

 EnvCanadaIon (QObject *parent, const QVariantList &args)
bool metricUnit (void)
void setMeasureUnit (const QString &unit)
void setTimezoneFormat (const QString &tz)
bool timezone (void)
bool updateIonSource (const QString &source)
void updateWeather (const QString &source)
 ~EnvCanadaIon ()

Static Public Attributes

static const int MAX_WARNINGS = 4

Protected Slots

void setup_slotDataArrived (KIO::Job *, const QByteArray &)
void setup_slotJobFinished (KJob *)
void slotDataArrived (KIO::Job *, const QByteArray &)
void slotJobFinished (KJob *)

Protected Member Functions

void init ()

Constructor & Destructor Documentation

EnvCanadaIon::EnvCanadaIon ( QObject *  parent,
const QVariantList &  args 
)

Definition at line 62 of file ion_envcan.cpp.

EnvCanadaIon::~EnvCanadaIon (  ) 

Definition at line 67 of file ion_envcan.cpp.


Member Function Documentation

void EnvCanadaIon::init (  )  [protected]

Definition at line 88 of file ion_envcan.cpp.

bool EnvCanadaIon::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 878 of file ion_envcan.cpp.

void EnvCanadaIon::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 868 of file ion_envcan.cpp.

void EnvCanadaIon::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 873 of file ion_envcan.cpp.

void EnvCanadaIon::setup_slotDataArrived ( KIO::Job *  job,
const QByteArray &  data 
) [protected, slot]

Definition at line 185 of file ion_envcan.cpp.

void EnvCanadaIon::setup_slotJobFinished ( KJob *  job  )  [protected, slot]

Definition at line 219 of file ion_envcan.cpp.

void EnvCanadaIon::slotDataArrived ( KIO::Job *  job,
const QByteArray &  data 
) [protected, slot]

Definition at line 197 of file ion_envcan.cpp.

void EnvCanadaIon::slotJobFinished ( KJob *  job  )  [protected, slot]

Definition at line 208 of file ion_envcan.cpp.

bool EnvCanadaIon::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 888 of file ion_envcan.cpp.

bool EnvCanadaIon::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 114 of file ion_envcan.cpp.

void EnvCanadaIon::updateWeather ( const QString &  source  ) 

Definition at line 898 of file ion_envcan.cpp.


Member Data Documentation

const int EnvCanadaIon::MAX_WARNINGS = 4 [static]

Definition at line 140 of file ion_envcan.h.


The documentation for this class was generated from the following files:
  • ion_envcan.h
  • ion_envcan.cpp

Plasma

Skip menu "Plasma"
  • 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
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
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