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

#include <sourceManager.h>

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

Public Member Functions

 SourceManager ()
 
 ~SourceManager ()
 
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 24 of file sourceManager.cpp.

◆ ~SourceManager()

SourceManager::~SourceManager ( )

Definition at line 30 of file sourceManager.cpp.

Member Function Documentation

◆ needSourceFor()

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

Definition at line 229 of file sourceManager.cpp.

Referenced by setupSources().

◆ getLocationList()

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

Definition at line 216 of file sourceManager.cpp.

Referenced by LocationDialog::doSearch().

◆ startTimers()

void SourceManager::startTimers ( )

Definition at line 263 of file sourceManager.cpp.

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

◆ stopTimers()

void SourceManager::stopTimers ( )

Definition at line 272 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 81 of file sourceManager.cpp.

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

◆ findScriptsDB()

bool SourceManager::findScriptsDB ( )

Definition at line 35 of file sourceManager.cpp.

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

◆ setupSources()

void SourceManager::setupSources ( )

Definition at line 165 of file sourceManager.cpp.

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

◆ connectScreen()

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

Definition at line 310 of file sourceManager.cpp.

Referenced by Weather::SetupScreens().

◆ disconnectScreen()

bool SourceManager::disconnectScreen ( WeatherScreen screen)

Definition at line 335 of file sourceManager.cpp.

◆ getSourceByName()

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

Definition at line 196 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 362 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: