WeatherSource Class Reference

#include <weatherSource.h>

List of all members.


Detailed Description

Definition at line 32 of file weatherSource.h.


Signals

void newData (QString, units_t, DataMap)
void killProcess ()

Public Member Functions

 WeatherSource (ScriptInfo *info)
 WeatherSource (const QString &filename)
 ~WeatherSource ()
bool isReady ()
QString getVersion ()
QString getName ()
QString getAuthor ()
QString getEmail ()
units_t getUnits ()
void setUnits (units_t units)
QStringList getLocationList (const QString &str)
void setLocale (const QString &locale)
QString getLocale ()
void startUpdate ()
bool isRunning ()
int getScriptTimeout ()
void setScriptTimeout (int timeout)
int getUpdateTimeout ()
void setUpdateTimeout (int timeout)
void startUpdateTimer ()
void stopUpdateTimer ()
bool inUse ()
void setInUse (bool inuse)
int getId ()
void connectScreen (WeatherScreen *ws)
void disconnectScreen (WeatherScreen *ws)

Static Public Member Functions

static ScriptInfoprobeScript (const QFileInfo &fi)
static QStringList probeTypes (QProcess *proc)
static bool probeTimeouts (QProcess *proc, uint &updateTimeout, uint &scriptTimeout)
static bool probeInfo (QProcess *proc, QString &name, QString &version, QString &author, QString &email)

Private Slots

void readFromStdout ()
void processExit ()
void scriptTimeout ()
void updateTimeout ()

Private Attributes

bool m_ready
bool m_inuse
ScriptInfom_info
QProcess * m_proc
QString m_dir
QString m_locale
QString m_buffer
units_t m_units
QTimer * m_scriptTimer
QTimer * m_updateTimer
int m_connectCnt
DataMap m_data

Constructor & Destructor Documentation

WeatherSource::WeatherSource ( ScriptInfo info  ) 

Definition at line 293 of file weatherSource.cpp.

WeatherSource::WeatherSource ( const QString &  filename  ) 

Definition at line 328 of file weatherSource.cpp.

WeatherSource::~WeatherSource (  ) 

Definition at line 360 of file weatherSource.cpp.


Member Function Documentation

ScriptInfo * WeatherSource::probeScript ( const QFileInfo &  fi  )  [static]

Definition at line 144 of file weatherSource.cpp.

Referenced by SourceManager::recurseDirs(), and WeatherSource().

QStringList WeatherSource::probeTypes ( QProcess *  proc  )  [static]

Definition at line 10 of file weatherSource.cpp.

Referenced by probeScript().

bool WeatherSource::probeTimeouts ( QProcess *  proc,
uint updateTimeout,
uint scriptTimeout 
) [static]

Definition at line 46 of file weatherSource.cpp.

Referenced by probeScript().

bool WeatherSource::probeInfo ( QProcess *  proc,
QString &  name,
QString &  version,
QString &  author,
QString &  email 
) [static]

Definition at line 92 of file weatherSource.cpp.

Referenced by probeScript().

bool WeatherSource::isReady (  )  [inline]

Definition at line 48 of file weatherSource.h.

QString WeatherSource::getVersion (  )  [inline]

Definition at line 49 of file weatherSource.h.

QString WeatherSource::getName ( void   )  [inline]

Definition at line 50 of file weatherSource.h.

Referenced by SourceManager::doUpdate().

QString WeatherSource::getAuthor (  )  [inline]

Definition at line 51 of file weatherSource.h.

QString WeatherSource::getEmail (  )  [inline]

Definition at line 52 of file weatherSource.h.

units_t WeatherSource::getUnits (  )  [inline]

Definition at line 53 of file weatherSource.h.

Referenced by SourceManager::needSourceFor().

void WeatherSource::setUnits ( units_t  units  )  [inline]

Definition at line 54 of file weatherSource.h.

Referenced by SourceManager::needSourceFor().

QStringList WeatherSource::getLocationList ( const QString &  str  ) 

Definition at line 385 of file weatherSource.cpp.

Referenced by SourceManager::getLocationList().

void WeatherSource::setLocale ( const QString &  locale  )  [inline]

Definition at line 56 of file weatherSource.h.

Referenced by SourceManager::needSourceFor().

QString WeatherSource::getLocale (  )  [inline]

Definition at line 57 of file weatherSource.h.

Referenced by SourceManager::needSourceFor().

void WeatherSource::startUpdate (  ) 

Definition at line 421 of file weatherSource.cpp.

Referenced by SourceManager::doUpdate(), and updateTimeout().

bool WeatherSource::isRunning (  )  [inline]

Definition at line 60 of file weatherSource.h.

Referenced by SourceManager::doUpdate(), and updateTimeout().

int WeatherSource::getScriptTimeout (  )  [inline]

Definition at line 62 of file weatherSource.h.

void WeatherSource::setScriptTimeout ( int  timeout  )  [inline]

Definition at line 63 of file weatherSource.h.

int WeatherSource::getUpdateTimeout (  )  [inline]

Definition at line 65 of file weatherSource.h.

void WeatherSource::setUpdateTimeout ( int  timeout  )  [inline]

Definition at line 66 of file weatherSource.h.

void WeatherSource::startUpdateTimer (  )  [inline]

Definition at line 68 of file weatherSource.h.

Referenced by SourceManager::startTimers(), and updateTimeout().

void WeatherSource::stopUpdateTimer (  )  [inline]

Definition at line 69 of file weatherSource.h.

Referenced by SourceManager::stopTimers().

bool WeatherSource::inUse (  )  [inline]

Definition at line 71 of file weatherSource.h.

Referenced by SourceManager::doUpdate().

void WeatherSource::setInUse ( bool  inuse  )  [inline]

Definition at line 72 of file weatherSource.h.

int WeatherSource::getId (  )  [inline]

Definition at line 74 of file weatherSource.h.

Referenced by SourceManager::needSourceFor().

void WeatherSource::connectScreen ( WeatherScreen ws  ) 

Definition at line 367 of file weatherSource.cpp.

Referenced by SourceManager::connectScreen().

void WeatherSource::disconnectScreen ( WeatherScreen ws  ) 

Definition at line 379 of file weatherSource.cpp.

Referenced by SourceManager::disconnectScreen().

void WeatherSource::newData ( QString  ,
units_t  ,
DataMap   
) [signal]

Referenced by connectScreen(), and processExit().

void WeatherSource::killProcess (  )  [signal]

Referenced by scriptTimeout(), and WeatherSource().

void WeatherSource::readFromStdout (  )  [private, slot]

Definition at line 460 of file weatherSource.cpp.

Referenced by startUpdate().

void WeatherSource::processExit (  )  [private, slot]

Definition at line 465 of file weatherSource.cpp.

Referenced by startUpdate().

void WeatherSource::scriptTimeout (  )  [private, slot]

Definition at line 510 of file weatherSource.cpp.

Referenced by WeatherSource().

void WeatherSource::updateTimeout (  )  [private, slot]

Definition at line 451 of file weatherSource.cpp.

Referenced by WeatherSource().


Member Data Documentation

Definition at line 90 of file weatherSource.h.

Referenced by isReady(), and WeatherSource().

Definition at line 91 of file weatherSource.h.

Referenced by inUse(), setInUse(), and WeatherSource().

QProcess* WeatherSource::m_proc [private]

QString WeatherSource::m_dir [private]

Definition at line 94 of file weatherSource.h.

Referenced by startUpdate(), and WeatherSource().

QString WeatherSource::m_locale [private]

Definition at line 95 of file weatherSource.h.

Referenced by connectScreen(), getLocale(), processExit(), setLocale(), and startUpdate().

QString WeatherSource::m_buffer [private]

Definition at line 96 of file weatherSource.h.

Referenced by processExit(), readFromStdout(), and startUpdate().

QTimer* WeatherSource::m_scriptTimer [private]

Definition at line 98 of file weatherSource.h.

Referenced by processExit(), startUpdate(), WeatherSource(), and ~WeatherSource().

QTimer* WeatherSource::m_updateTimer [private]

Definition at line 99 of file weatherSource.h.

Referenced by startUpdateTimer(), stopUpdateTimer(), WeatherSource(), and ~WeatherSource().

Definition at line 100 of file weatherSource.h.

Referenced by connectScreen(), disconnectScreen(), processExit(), and WeatherSource().

Definition at line 101 of file weatherSource.h.

Referenced by connectScreen(), processExit(), and startUpdate().


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:14 2010 for MythTV by  doxygen 1.5.5