MythTV
master
|
#include <mythplugins/mythweather/mythweather/sourceManager.h>
Public Member Functions | |
SourceManager () | |
~SourceManager () override | |
WeatherSource * | needSourceFor (int id, const QString &loc, units_t units) |
QStringList | getLocationList (ScriptInfo *si, const QString &str) |
void | startTimers () |
void | stopTimers () |
void | doUpdate (bool forceUpdate=false) |
bool | findPossibleSources (QStringList types, QList< ScriptInfo * > &sources) |
void | clearSources () |
bool | findScripts () |
bool | findScriptsDB () |
void | setupSources () |
bool | connectScreen (uint id, WeatherScreen *screen) |
bool | disconnectScreen (WeatherScreen *screen) |
ScriptInfo * | getSourceByName (const QString &name) |
Private Slots | |
void | timeout (void) |
Private Member Functions | |
void | recurseDirs (QDir dir) |
Private Attributes | |
QList< ScriptInfo * > | m_scripts |
QList< WeatherSource * > | m_sources |
SourceMap | m_sourcemap |
Definition at line 18 of file sourceManager.h.
SourceManager::SourceManager | ( | ) |
Definition at line 25 of file sourceManager.cpp.
|
override |
Definition at line 31 of file sourceManager.cpp.
WeatherSource * SourceManager::needSourceFor | ( | int | id, |
const QString & | loc, | ||
units_t | units | ||
) |
Definition at line 230 of file sourceManager.cpp.
Referenced by setupSources().
QStringList SourceManager::getLocationList | ( | ScriptInfo * | si, |
const QString & | str | ||
) |
Definition at line 217 of file sourceManager.cpp.
Referenced by LocationDialog::doSearch().
void SourceManager::startTimers | ( | ) |
Definition at line 261 of file sourceManager.cpp.
Referenced by mythplugin_init(), Weather::SetupScreens(), and Weather::Weather().
void SourceManager::stopTimers | ( | ) |
Definition at line 267 of file sourceManager.cpp.
Referenced by Weather::setupPage().
Definition at line 273 of file sourceManager.cpp.
Referenced by Weather::keyPressEvent(), mythplugin_init(), Weather::SetupScreens(), and Weather::Weather().
bool SourceManager::findPossibleSources | ( | QStringList | types, |
QList< ScriptInfo * > & | sources | ||
) |
Definition at line 282 of file sourceManager.cpp.
Referenced by ScreenSetup::doListSelect(), LocationDialog::doSearch(), and ScreenSetup::loadData().
void SourceManager::clearSources | ( | ) |
Definition at line 155 of file sourceManager.cpp.
Referenced by ScreenSetup::ScreenSetup(), Weather::setupPage(), Weather::SetupScreens(), and ~SourceManager().
bool SourceManager::findScripts | ( | ) |
Definition at line 82 of file sourceManager.cpp.
Referenced by ScreenSetup::ScreenSetup(), and Weather::setupPage().
bool SourceManager::findScriptsDB | ( | ) |
Definition at line 36 of file sourceManager.cpp.
Referenced by Weather::SetupScreens(), and SourceManager().
void SourceManager::setupSources | ( | ) |
Definition at line 166 of file sourceManager.cpp.
Referenced by Weather::SetupScreens(), and SourceManager().
bool SourceManager::connectScreen | ( | uint | id, |
WeatherScreen * | screen | ||
) |
Definition at line 300 of file sourceManager.cpp.
Referenced by Weather::SetupScreens().
bool SourceManager::disconnectScreen | ( | WeatherScreen * | screen | ) |
Definition at line 325 of file sourceManager.cpp.
ScriptInfo * SourceManager::getSourceByName | ( | const QString & | name | ) |
Definition at line 197 of file sourceManager.cpp.
Referenced by ScreenSetup::loadData().
|
inlineprivateslot |
Definition at line 40 of file sourceManager.h.
|
private |
Definition at line 352 of file sourceManager.cpp.
Referenced by findScripts().
|
private |
Definition at line 43 of file sourceManager.h.
Referenced by clearSources(), findPossibleSources(), findScripts(), findScriptsDB(), getLocationList(), getSourceByName(), needSourceFor(), and recurseDirs().
|
private |
Definition at line 44 of file sourceManager.h.
Referenced by clearSources(), doUpdate(), needSourceFor(), startTimers(), and stopTimers().
|
private |
Definition at line 45 of file sourceManager.h.
Referenced by connectScreen(), disconnectScreen(), and setupSources().