MythTV
master
|
#include <mythplugins/mythweather/mythweather/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 () override | |
bool | isReady () const |
QString | getVersion () |
QString | getName () |
QString | getAuthor () |
QString | getEmail () |
units_t | getUnits () const |
void | setUnits (units_t units) |
QStringList | getLocationList (const QString &str) |
void | setLocale (const QString &locale) |
QString | getLocale () |
void | startUpdate (bool forceUpdate=false) |
std::chrono::seconds | getScriptTimeout () |
void | setScriptTimeout (std::chrono::seconds timeout) |
std::chrono::seconds | getUpdateTimeout () |
void | setUpdateTimeout (std::chrono::seconds timeout) |
void | startUpdateTimer () |
void | stopUpdateTimer () |
bool | inUse () const |
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, std::chrono::seconds &updateTimeout, std::chrono::seconds &scriptTimeout) |
static bool | ProbeInfo (ScriptInfo &scriptInfo) |
Private Slots | |
void | processExit (uint status) |
void | processExit () |
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 36 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 329 of file weatherSource.cpp.
|
override |
Definition at line 349 of file weatherSource.cpp.
|
static |
Definition at line 200 of file weatherSource.cpp.
Referenced by SourceManager::recurseDirs().
|
static |
Definition at line 28 of file weatherSource.cpp.
Referenced by ProbeScript().
|
static |
Definition at line 67 of file weatherSource.cpp.
Referenced by ProbeScript().
|
static |
Definition at line 135 of file weatherSource.cpp.
Referenced by ProbeScript().
|
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.
|
inline |
Definition at line 56 of file weatherSource.h.
|
inline |
Definition at line 57 of file weatherSource.h.
|
inline |
Definition at line 58 of file weatherSource.h.
|
inline |
Definition at line 59 of file weatherSource.h.
QStringList WeatherSource::getLocationList | ( | const QString & | str | ) |
Definition at line 378 of file weatherSource.cpp.
|
inline |
Definition at line 61 of file weatherSource.h.
|
inline |
Definition at line 62 of file weatherSource.h.
Definition at line 418 of file weatherSource.cpp.
Referenced by updateTimeout().
|
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.
|
inline |
Definition at line 70 of file weatherSource.h.
|
inline |
Definition at line 72 of file weatherSource.h.
Referenced by updateTimeout().
|
inline |
Definition at line 73 of file weatherSource.h.
|
inline |
Definition at line 75 of file weatherSource.h.
|
inline |
Definition at line 76 of file weatherSource.h.
|
inline |
Definition at line 78 of file weatherSource.h.
Referenced by processExit(), and startUpdate().
void WeatherSource::connectScreen | ( | WeatherScreen * | ws | ) |
Definition at line 360 of file weatherSource.cpp.
void WeatherSource::disconnectScreen | ( | WeatherScreen * | ws | ) |
Definition at line 372 of file weatherSource.cpp.
Referenced by connectScreen(), processExit(), and startUpdate().
|
privateslot |
Definition at line 502 of file weatherSource.cpp.
|
privateslot |
Definition at line 564 of file weatherSource.cpp.
Referenced by startUpdate().
|
privateslot |
Definition at line 496 of file weatherSource.cpp.
Referenced by ProbeTimeouts(), and WeatherSource().
|
private |
Definition at line 569 of file weatherSource.cpp.
Referenced by processExit(), and startUpdate().
Definition at line 94 of file weatherSource.h.
Referenced by isReady().
Definition at line 95 of file weatherSource.h.
Referenced by inUse(), and setInUse().
|
private |
Definition at line 96 of file weatherSource.h.
Referenced by getAuthor(), getEmail(), getId(), getLocationList(), getName(), getScriptTimeout(), getUpdateTimeout(), getVersion(), setScriptTimeout(), setUpdateTimeout(), startUpdate(), and startUpdateTimer().
|
private |
Definition at line 97 of file weatherSource.h.
Referenced by processExit(), startUpdate(), and ~WeatherSource().
|
private |
Definition at line 98 of file weatherSource.h.
Referenced by processExit(), startUpdate(), and WeatherSource().
|
private |
Definition at line 99 of file weatherSource.h.
Referenced by connectScreen(), getLocale(), processExit(), setLocale(), and startUpdate().
|
private |
Definition at line 100 of file weatherSource.h.
Referenced by processExit(), and startUpdate().
|
private |
Definition at line 101 of file weatherSource.h.
Referenced by processData(), processExit(), and startUpdate().
Definition at line 102 of file weatherSource.h.
Referenced by connectScreen(), getUnits(), processExit(), setUnits(), and startUpdate().
|
private |
Definition at line 103 of file weatherSource.h.
Referenced by startUpdateTimer(), stopUpdateTimer(), WeatherSource(), and ~WeatherSource().
|
private |
Definition at line 104 of file weatherSource.h.
Referenced by connectScreen(), disconnectScreen(), processExit(), and startUpdate().
|
private |
Definition at line 105 of file weatherSource.h.
Referenced by connectScreen(), processData(), processExit(), and startUpdate().