#include <weatherSource.h>
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 ScriptInfo * | probeScript (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 |
| ScriptInfo * | m_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 |
| 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.
| 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] |
| bool WeatherSource::probeInfo | ( | QProcess * | proc, | |
| QString & | name, | |||
| QString & | version, | |||
| QString & | author, | |||
| QString & | ||||
| ) | [static] |
| 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] |
| 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] |
| void WeatherSource::setUnits | ( | units_t | units | ) | [inline] |
| QStringList WeatherSource::getLocationList | ( | const QString & | str | ) |
| void WeatherSource::setLocale | ( | const QString & | locale | ) | [inline] |
| QString WeatherSource::getLocale | ( | ) | [inline] |
| 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] |
| bool WeatherSource::inUse | ( | ) | [inline] |
| void WeatherSource::setInUse | ( | bool | inuse | ) | [inline] |
Definition at line 72 of file weatherSource.h.
| int WeatherSource::getId | ( | ) | [inline] |
| void WeatherSource::connectScreen | ( | WeatherScreen * | ws | ) |
| void WeatherSource::disconnectScreen | ( | WeatherScreen * | ws | ) |
Referenced by connectScreen(), and processExit().
| void WeatherSource::killProcess | ( | ) | [signal] |
Referenced by scriptTimeout(), and WeatherSource().
| void WeatherSource::readFromStdout | ( | ) | [private, slot] |
| void WeatherSource::processExit | ( | ) | [private, slot] |
| void WeatherSource::scriptTimeout | ( | ) | [private, slot] |
| void WeatherSource::updateTimeout | ( | ) | [private, slot] |
bool WeatherSource::m_ready [private] |
bool WeatherSource::m_inuse [private] |
Definition at line 91 of file weatherSource.h.
Referenced by inUse(), setInUse(), and WeatherSource().
ScriptInfo* WeatherSource::m_info [private] |
Definition at line 92 of file weatherSource.h.
Referenced by getAuthor(), getEmail(), getId(), getLocationList(), getName(), getScriptTimeout(), getUpdateTimeout(), getVersion(), setScriptTimeout(), setUpdateTimeout(), startUpdate(), startUpdateTimer(), and WeatherSource().
QProcess* WeatherSource::m_proc [private] |
Definition at line 93 of file weatherSource.h.
Referenced by getLocationList(), isRunning(), processExit(), readFromStdout(), scriptTimeout(), startUpdate(), WeatherSource(), and ~WeatherSource().
QString WeatherSource::m_dir [private] |
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().
units_t WeatherSource::m_units [private] |
Definition at line 97 of file weatherSource.h.
Referenced by connectScreen(), getUnits(), processExit(), setUnits(), startUpdate(), and WeatherSource().
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().
int WeatherSource::m_connectCnt [private] |
Definition at line 100 of file weatherSource.h.
Referenced by connectScreen(), disconnectScreen(), processExit(), and WeatherSource().
DataMap WeatherSource::m_data [private] |
Definition at line 101 of file weatherSource.h.
Referenced by connectScreen(), processExit(), and startUpdate().
1.5.5