#include <weatherSource.h>
Signals | |
| void | newData (QString, units_t, DataMap) |
Public Member Functions | |
| WeatherSource (ScriptInfo *info) | |
| ~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 forceUpdate=false) |
| 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 (QString workingDirectory, QString program) |
| static bool | ProbeTimeouts (QString workingDirectory, QString program, uint &updateTimeout, uint &scriptTimeout) |
| static bool | ProbeInfo (struct ScriptInfo &scriptInfo) |
Private Slots | |
| void | processExit (uint status=0) |
| void | updateTimeout () |
Private Member Functions | |
| void | processData () |
Private Attributes | |
| bool | m_ready |
| bool | m_inuse |
| ScriptInfo * | m_info |
| MythSystem * | m_ms |
| QString | m_dir |
| QString | m_locale |
| QString | m_cachefile |
| QByteArray | m_buffer |
| units_t | m_units |
| QTimer * | m_updateTimer |
| int | m_connectCnt |
| DataMap | m_data |
Definition at line 33 of file weatherSource.h.
| WeatherSource::WeatherSource | ( | ScriptInfo * | info | ) |
Definition at line 326 of file weatherSource.cpp.
| WeatherSource::~WeatherSource | ( | ) |
Definition at line 347 of file weatherSource.cpp.
| ScriptInfo * WeatherSource::ProbeScript | ( | const QFileInfo & | fi | ) | [static] |
Definition at line 194 of file weatherSource.cpp.
Referenced by SourceManager::recurseDirs().
| QStringList WeatherSource::ProbeTypes | ( | QString | workingDirectory, | |
| QString | program | |||
| ) | [static] |
Definition at line 22 of file weatherSource.cpp.
Referenced by ProbeScript().
| bool WeatherSource::ProbeTimeouts | ( | QString | workingDirectory, | |
| QString | program, | |||
| uint & | updateTimeout, | |||
| uint & | scriptTimeout | |||
| ) | [static] |
Definition at line 61 of file weatherSource.cpp.
Referenced by ProbeScript().
| bool WeatherSource::ProbeInfo | ( | struct ScriptInfo & | scriptInfo | ) | [static] |
Definition at line 129 of file weatherSource.cpp.
Referenced by ProbeScript().
| bool WeatherSource::isReady | ( | ) | [inline] |
Definition at line 50 of file weatherSource.h.
| QString WeatherSource::getVersion | ( | ) | [inline] |
Definition at line 51 of file weatherSource.h.
| QString WeatherSource::getName | ( | void | ) | [inline] |
Definition at line 52 of file weatherSource.h.
| QString WeatherSource::getAuthor | ( | ) | [inline] |
Definition at line 53 of file weatherSource.h.
| QString WeatherSource::getEmail | ( | ) | [inline] |
Definition at line 54 of file weatherSource.h.
| units_t WeatherSource::getUnits | ( | ) | [inline] |
Definition at line 55 of file weatherSource.h.
Referenced by SourceManager::needSourceFor().
| void WeatherSource::setUnits | ( | units_t | units | ) | [inline] |
Definition at line 56 of file weatherSource.h.
Referenced by SourceManager::needSourceFor().
| QStringList WeatherSource::getLocationList | ( | const QString & | str | ) |
Definition at line 375 of file weatherSource.cpp.
Referenced by SourceManager::getLocationList().
| void WeatherSource::setLocale | ( | const QString & | locale | ) | [inline] |
Definition at line 58 of file weatherSource.h.
Referenced by SourceManager::needSourceFor().
| QString WeatherSource::getLocale | ( | ) | [inline] |
Definition at line 59 of file weatherSource.h.
Referenced by SourceManager::needSourceFor().
| void WeatherSource::startUpdate | ( | bool | forceUpdate = false |
) |
Definition at line 419 of file weatherSource.cpp.
Referenced by SourceManager::doUpdate(), and updateTimeout().
| int WeatherSource::getScriptTimeout | ( | ) | [inline] |
Definition at line 63 of file weatherSource.h.
| void WeatherSource::setScriptTimeout | ( | int | timeout | ) | [inline] |
Definition at line 64 of file weatherSource.h.
| int WeatherSource::getUpdateTimeout | ( | ) | [inline] |
Definition at line 66 of file weatherSource.h.
| void WeatherSource::setUpdateTimeout | ( | int | timeout | ) | [inline] |
Definition at line 67 of file weatherSource.h.
| void WeatherSource::startUpdateTimer | ( | ) | [inline] |
Definition at line 69 of file weatherSource.h.
Referenced by SourceManager::startTimers(), and updateTimeout().
| void WeatherSource::stopUpdateTimer | ( | ) | [inline] |
Definition at line 70 of file weatherSource.h.
Referenced by SourceManager::stopTimers().
| bool WeatherSource::inUse | ( | ) | [inline] |
Definition at line 72 of file weatherSource.h.
Referenced by SourceManager::doUpdate().
| void WeatherSource::setInUse | ( | bool | inuse | ) | [inline] |
Definition at line 73 of file weatherSource.h.
| int WeatherSource::getId | ( | ) | [inline] |
Definition at line 75 of file weatherSource.h.
Referenced by SourceManager::needSourceFor(), processExit(), and startUpdate().
| void WeatherSource::connectScreen | ( | WeatherScreen * | ws | ) |
Definition at line 357 of file weatherSource.cpp.
| void WeatherSource::disconnectScreen | ( | WeatherScreen * | ws | ) |
Definition at line 369 of file weatherSource.cpp.
Referenced by connectScreen(), processExit(), and startUpdate().
| void WeatherSource::processExit | ( | uint | status = 0 |
) | [private, slot] |
Definition at line 504 of file weatherSource.cpp.
Referenced by startUpdate().
| void WeatherSource::updateTimeout | ( | void | ) | [private, slot] |
Definition at line 498 of file weatherSource.cpp.
Referenced by WeatherSource().
| void WeatherSource::processData | ( | ) | [private] |
Definition at line 566 of file weatherSource.cpp.
Referenced by processExit(), and startUpdate().
bool WeatherSource::m_ready [private] |
Definition at line 90 of file weatherSource.h.
Referenced by isReady().
bool WeatherSource::m_inuse [private] |
Definition at line 91 of file weatherSource.h.
Referenced by inUse(), and setInUse().
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(), and startUpdateTimer().
MythSystem* WeatherSource::m_ms [private] |
Definition at line 93 of file weatherSource.h.
Referenced by processExit(), startUpdate(), and ~WeatherSource().
QString WeatherSource::m_dir [private] |
Definition at line 94 of file weatherSource.h.
Referenced by processExit(), 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_cachefile [private] |
Definition at line 96 of file weatherSource.h.
Referenced by processExit(), and startUpdate().
QByteArray WeatherSource::m_buffer [private] |
Definition at line 97 of file weatherSource.h.
Referenced by processData(), processExit(), and startUpdate().
units_t WeatherSource::m_units [private] |
Definition at line 98 of file weatherSource.h.
Referenced by connectScreen(), getUnits(), processExit(), setUnits(), and startUpdate().
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 startUpdate().
DataMap WeatherSource::m_data [private] |
Definition at line 101 of file weatherSource.h.
Referenced by connectScreen(), processData(), processExit(), and startUpdate().
1.6.3