MythTV  master
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
SourceManager Class Reference

#include <mythplugins/mythweather/mythweather/sourceManager.h>

Inheritance diagram for SourceManager:
[legend]
Collaboration diagram for SourceManager:
[legend]

Public Member Functions

 SourceManager ()
 
 ~SourceManager () override
 
WeatherSourceneedSourceFor (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)
 
ScriptInfogetSourceByName (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
 

Detailed Description

Definition at line 18 of file sourceManager.h.

Constructor & Destructor Documentation

◆ SourceManager()

SourceManager::SourceManager ( )

Definition at line 25 of file sourceManager.cpp.

◆ ~SourceManager()

SourceManager::~SourceManager ( )
override

Definition at line 31 of file sourceManager.cpp.

Member Function Documentation

◆ needSourceFor()

WeatherSource * SourceManager::needSourceFor ( int  id,
const QString &  loc,
units_t  units 
)

Definition at line 230 of file sourceManager.cpp.

Referenced by setupSources().

◆ getLocationList()

QStringList SourceManager::getLocationList ( ScriptInfo si,
const QString &  str 
)

Definition at line 217 of file sourceManager.cpp.

Referenced by LocationDialog::doSearch().

◆ startTimers()

void SourceManager::startTimers ( )

Definition at line 261 of file sourceManager.cpp.

Referenced by mythplugin_init(), Weather::SetupScreens(), and Weather::Weather().

◆ stopTimers()

void SourceManager::stopTimers ( )

Definition at line 267 of file sourceManager.cpp.

Referenced by Weather::setupPage().

◆ doUpdate()

void SourceManager::doUpdate ( bool  forceUpdate = false)

◆ findPossibleSources()

bool SourceManager::findPossibleSources ( QStringList  types,
QList< ScriptInfo * > &  sources 
)

◆ clearSources()

void SourceManager::clearSources ( )

◆ findScripts()

bool SourceManager::findScripts ( )

Definition at line 82 of file sourceManager.cpp.

Referenced by ScreenSetup::ScreenSetup(), and Weather::setupPage().

◆ findScriptsDB()

bool SourceManager::findScriptsDB ( )

Definition at line 36 of file sourceManager.cpp.

Referenced by Weather::SetupScreens(), and SourceManager().

◆ setupSources()

void SourceManager::setupSources ( )

Definition at line 166 of file sourceManager.cpp.

Referenced by Weather::SetupScreens(), and SourceManager().

◆ connectScreen()

bool SourceManager::connectScreen ( uint  id,
WeatherScreen screen 
)

Definition at line 300 of file sourceManager.cpp.

Referenced by Weather::SetupScreens().

◆ disconnectScreen()

bool SourceManager::disconnectScreen ( WeatherScreen screen)

Definition at line 325 of file sourceManager.cpp.

◆ getSourceByName()

ScriptInfo * SourceManager::getSourceByName ( const QString &  name)

Definition at line 197 of file sourceManager.cpp.

Referenced by ScreenSetup::loadData().

◆ timeout

void SourceManager::timeout ( void  )
inlineprivateslot

Definition at line 40 of file sourceManager.h.

◆ recurseDirs()

void SourceManager::recurseDirs ( QDir  dir)
private

Definition at line 352 of file sourceManager.cpp.

Referenced by findScripts().

Member Data Documentation

◆ m_scripts

QList<ScriptInfo *> SourceManager::m_scripts
private

◆ m_sources

QList<WeatherSource *> SourceManager::m_sources
private

Definition at line 44 of file sourceManager.h.

Referenced by clearSources(), doUpdate(), needSourceFor(), startTimers(), and stopTimers().

◆ m_sourcemap

SourceMap SourceManager::m_sourcemap
private

Definition at line 45 of file sourceManager.h.

Referenced by connectScreen(), disconnectScreen(), and setupSources().


The documentation for this class was generated from the following files: