Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

WeatherPluginWidget Class Reference

#include </home/clem/local/src/opie/noncore/todayplugins/weather/weatherpluginwidget.h>

Collaboration diagram for WeatherPluginWidget:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WeatherPluginWidget (QWidget *parent, const char *name)
 ~WeatherPluginWidget ()

Private Slots

void dataRetrieved (Opie::Core::OProcess *)

Private Member Functions

void timerEvent (QTimerEvent *)
void retreiveData ()
void displayWeather ()
void getTemp (const QString &)
void getWind (const QString &)
void getPressure (const QString &)
void getIcon (const QString &)

Private Attributes

QString location
QString remoteFile
QString localFile
QString weatherData
QString dataStr
bool useMetric
int frequency
QLabel * weatherLabel
QLabel * weatherIcon

Constructor & Destructor Documentation

WeatherPluginWidget::WeatherPluginWidget QWidget *  parent,
const char *  name
 

Definition at line 44 of file weatherpluginwidget.cpp.

References Opie::Core::OResource::loadPixmap(), Opie::Core::OResource::SmallIcon, tr, weatherIcon, and weatherLabel.

WeatherPluginWidget::~WeatherPluginWidget  ) 
 

Definition at line 61 of file weatherpluginwidget.cpp.

References QFile::exists(), localFile, and QFile::remove().


Member Function Documentation

void WeatherPluginWidget::dataRetrieved Opie::Core::OProcess  )  [private, slot]
 

Definition at line 310 of file weatherpluginwidget.cpp.

References displayWeather(), Opie::Core::OProcess::normalExit(), tr, and weatherLabel.

Referenced by retreiveData().

void WeatherPluginWidget::displayWeather  )  [private]
 

Definition at line 110 of file weatherpluginwidget.cpp.

References QString::append(), data, dataStr, QTextStream::eof(), getIcon(), getPressure(), getTemp(), getWind(), IO_ReadOnly, Opie::Core::OResource::loadPixmap(), localFile, QString::null, QFile::open(), QTextStream::readLine(), QString::simplifyWhiteSpace(), QFile::size(), Opie::Core::OResource::SmallIcon, tr, weatherData, weatherIcon, and weatherLabel.

Referenced by dataRetrieved().

void WeatherPluginWidget::getIcon const QString  )  [private]
 

Definition at line 274 of file weatherpluginwidget.cpp.

References dataStr, and QString::find().

Referenced by displayWeather().

void WeatherPluginWidget::getPressure const QString  )  [private]
 

Definition at line 242 of file weatherpluginwidget.cpp.

References QString::append(), dataStr, QString::find(), QString::mid(), QString::number(), pos, tr, and useMetric.

Referenced by displayWeather().

void WeatherPluginWidget::getTemp const QString  )  [private]
 

Definition at line 153 of file weatherpluginwidget.cpp.

References QString::append(), dataStr, QString::number(), pos, tr, and useMetric.

Referenced by displayWeather().

void WeatherPluginWidget::getWind const QString  )  [private]
 

Definition at line 186 of file weatherpluginwidget.cpp.

References QString::append(), dataStr, QString::find(), QString::mid(), QString::number(), pos, tr, and useMetric.

Referenced by displayWeather().

void WeatherPluginWidget::retreiveData  )  [private]
 

Definition at line 78 of file weatherpluginwidget.cpp.

References QString::append(), dataRetrieved(), QFile::exists(), frequency, localFile, location, Config::readBoolEntry(), Config::readEntry(), Config::readNumEntry(), remoteFile, QFile::remove(), Config::setGroup(), Opie::Core::OProcess::start(), and useMetric.

Referenced by timerEvent().

void WeatherPluginWidget::timerEvent QTimerEvent *   )  [private]
 

Definition at line 70 of file weatherpluginwidget.cpp.

References retreiveData().


Member Data Documentation

QString WeatherPluginWidget::dataStr [private]
 

Definition at line 52 of file weatherpluginwidget.h.

Referenced by displayWeather(), getIcon(), getPressure(), getTemp(), and getWind().

int WeatherPluginWidget::frequency [private]
 

Definition at line 54 of file weatherpluginwidget.h.

Referenced by retreiveData().

QString WeatherPluginWidget::localFile [private]
 

Definition at line 50 of file weatherpluginwidget.h.

Referenced by displayWeather(), retreiveData(), and ~WeatherPluginWidget().

QString WeatherPluginWidget::location [private]
 

Definition at line 48 of file weatherpluginwidget.h.

Referenced by retreiveData().

QString WeatherPluginWidget::remoteFile [private]
 

Definition at line 49 of file weatherpluginwidget.h.

Referenced by retreiveData().

bool WeatherPluginWidget::useMetric [private]
 

Definition at line 53 of file weatherpluginwidget.h.

Referenced by getPressure(), getTemp(), getWind(), and retreiveData().

QString WeatherPluginWidget::weatherData [private]
 

Definition at line 51 of file weatherpluginwidget.h.

Referenced by displayWeather().

QLabel* WeatherPluginWidget::weatherIcon [private]
 

Definition at line 57 of file weatherpluginwidget.h.

Referenced by displayWeather(), and WeatherPluginWidget().

QLabel* WeatherPluginWidget::weatherLabel [private]
 

Definition at line 56 of file weatherpluginwidget.h.

Referenced by dataRetrieved(), displayWeather(), and WeatherPluginWidget().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:55:39 2005 for OPIE by  doxygen 1.4.2