MythTV
master
|
#include <weatherSource.h>
Signals | |
void | newData (QString, units_t, DataMap) |
Public Member Functions | |
WeatherSource (ScriptInfo *info) | |
Watch out, we store the parameter as a member variable, don't go deleting it, that wouldn't be good. More... | |
~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 (const QString &workingDirectory, const QString &program) |
static bool | ProbeTimeouts (const QString &workingDirectory, const QString &program, uint &updateTimeout, uint &scriptTimeout) |
static bool | ProbeInfo (ScriptInfo &scriptInfo) |
Private Slots | |
void | processExit (uint status=0) |
void | updateTimeout () |
Private Member Functions | |
void | processData () |
Private Attributes | |
bool | m_ready {false} |
bool | m_inuse {false} |
ScriptInfo * | m_info {nullptr} |
MythSystemLegacy * | m_ms {nullptr} |
QString | m_dir |
QString | m_locale |
QString | m_cachefile |
QByteArray | m_buffer |
units_t | m_units {SI_UNITS} |
QTimer * | m_updateTimer {nullptr} |
int | m_connectCnt {0} |
DataMap | m_data |
Definition at line 33 of file weatherSource.h.
|
explicit |
Watch out, we store the parameter as a member variable, don't go deleting it, that wouldn't be good.
info | is a required variable. |
Definition at line 325 of file weatherSource.cpp.
WeatherSource::~WeatherSource | ( | ) |
Definition at line 345 of file weatherSource.cpp.
|
static |
Definition at line 194 of file weatherSource.cpp.
Referenced by SourceManager::recurseDirs().
|
static |
Definition at line 22 of file weatherSource.cpp.
Referenced by ProbeScript().
|
static |
Definition at line 61 of file weatherSource.cpp.
Referenced by ProbeScript().
|
static |
Definition at line 129 of file weatherSource.cpp.
Referenced by ProbeScript().
|
inline |
Definition at line 50 of file weatherSource.h.
|
inline |
Definition at line 51 of file weatherSource.h.
|
inline |
Definition at line 52 of file weatherSource.h.
|
inline |
Definition at line 53 of file weatherSource.h.
|
inline |
Definition at line 54 of file weatherSource.h.
|
inline |
Definition at line 55 of file weatherSource.h.
Referenced by SourceManager::needSourceFor().
|
inline |
Definition at line 56 of file weatherSource.h.
QStringList WeatherSource::getLocationList | ( | const QString & | str | ) |
Definition at line 374 of file weatherSource.cpp.
|
inline |
Definition at line 58 of file weatherSource.h.
|
inline |
Definition at line 59 of file weatherSource.h.
Referenced by SourceManager::needSourceFor().
Definition at line 418 of file weatherSource.cpp.
Referenced by SourceManager::doUpdate(), and updateTimeout().
|
inline |
Definition at line 63 of file weatherSource.h.
|
inline |
Definition at line 64 of file weatherSource.h.
|
inline |
Definition at line 66 of file weatherSource.h.
|
inline |
Definition at line 67 of file weatherSource.h.
|
inline |
Definition at line 69 of file weatherSource.h.
Referenced by SourceManager::startTimers(), and updateTimeout().
|
inline |
Definition at line 70 of file weatherSource.h.
Referenced by SourceManager::stopTimers().
|
inline |
Definition at line 72 of file weatherSource.h.
Referenced by SourceManager::doUpdate().
|
inline |
Definition at line 73 of file weatherSource.h.
|
inline |
Definition at line 75 of file weatherSource.h.
Referenced by SourceManager::needSourceFor(), processExit(), and startUpdate().
void WeatherSource::connectScreen | ( | WeatherScreen * | ws | ) |
Definition at line 356 of file weatherSource.cpp.
void WeatherSource::disconnectScreen | ( | WeatherScreen * | ws | ) |
Definition at line 368 of file weatherSource.cpp.
Referenced by connectScreen(), processExit(), and startUpdate().
|
privateslot |
Definition at line 500 of file weatherSource.cpp.
Referenced by startUpdate().
|
privateslot |
Definition at line 494 of file weatherSource.cpp.
Referenced by ProbeTimeouts(), and WeatherSource().
|
private |
Definition at line 562 of file weatherSource.cpp.
Referenced by processExit(), and startUpdate().
Definition at line 90 of file weatherSource.h.
Referenced by isReady().
Definition at line 91 of file weatherSource.h.
Referenced by inUse(), and setInUse().
|
private |
Definition at line 92 of file weatherSource.h.
Referenced by getAuthor(), getEmail(), getId(), getLocationList(), getName(), getScriptTimeout(), getUpdateTimeout(), getVersion(), setScriptTimeout(), setUpdateTimeout(), startUpdate(), and startUpdateTimer().
|
private |
Definition at line 93 of file weatherSource.h.
Referenced by processExit(), startUpdate(), and ~WeatherSource().
|
private |
Definition at line 94 of file weatherSource.h.
Referenced by processExit(), startUpdate(), and WeatherSource().
|
private |
Definition at line 95 of file weatherSource.h.
Referenced by connectScreen(), getLocale(), processExit(), setLocale(), and startUpdate().
|
private |
Definition at line 96 of file weatherSource.h.
Referenced by processExit(), and startUpdate().
|
private |
Definition at line 97 of file weatherSource.h.
Referenced by processData(), processExit(), and startUpdate().
Definition at line 98 of file weatherSource.h.
Referenced by connectScreen(), getUnits(), processExit(), setUnits(), and startUpdate().
|
private |
Definition at line 99 of file weatherSource.h.
Referenced by startUpdateTimer(), stopUpdateTimer(), WeatherSource(), and ~WeatherSource().
|
private |
Definition at line 100 of file weatherSource.h.
Referenced by connectScreen(), disconnectScreen(), processExit(), and startUpdate().
|
private |
Definition at line 101 of file weatherSource.h.
Referenced by connectScreen(), processData(), processExit(), and startUpdate().