#include <weatherScreen.h>
Public Slots | |
| virtual void | newData (QString loc, units_t units, DataMap data) |
Signals | |
| void | screenReady (WeatherScreen *) |
Public Member Functions | |
| WeatherScreen (MythScreenStack *parent, ScreenListInfo *screenDefn, int id) | |
| ~WeatherScreen () | |
| bool | Create (void) |
| bool | keyPressEvent (QKeyEvent *) |
| Key event handler. | |
| void | setValue (const QString &key, const QString &value) |
| QString | getValue (const QString &key) |
| bool | containsKey (const QString &key) |
| virtual bool | canShowScreen () |
| void | setUnits (units_t units) |
| units_t | getUnits () |
| virtual bool | usingKeys () |
| bool | inUse () |
| void | setInUse (bool inuse) |
| int | getId () |
Static Public Member Functions | |
| static WeatherScreen * | loadScreen (MythScreenStack *parent, ScreenListInfo *screenDefn, int id) |
Protected Member Functions | |
| virtual QString | prepareDataItem (const QString &key, const QString &value) |
| virtual void | prepareWidget (MythUIType *widget) |
| virtual bool | prepareScreen (bool checkOnly=false) |
| virtual QString | getTemperatureUnit () |
| QString | formatDataItem (const QString &key, const QString &value) |
Protected Attributes | |
| units_t | m_units |
| ScreenListInfo * | m_screenDefn |
| QString | m_name |
Private Attributes | |
| QMap< QString, QString > | m_dataValueMap |
| bool | m_inuse |
| bool | m_prepared |
| int | m_id |
Weather screen.
Definition at line 26 of file weatherScreen.h.
| WeatherScreen::WeatherScreen | ( | MythScreenStack * | parent, | |
| ScreenListInfo * | screenDefn, | |||
| int | id | |||
| ) |
Definition at line 18 of file weatherScreen.cpp.
Referenced by loadScreen().
| WeatherScreen::~WeatherScreen | ( | ) |
Definition at line 37 of file weatherScreen.cpp.
| bool WeatherScreen::Create | ( | void | ) | [virtual] |
Reimplemented from MythScreenType.
Definition at line 41 of file weatherScreen.cpp.
Referenced by Weather::SetupScreens().
| bool WeatherScreen::keyPressEvent | ( | QKeyEvent * | ) | [virtual] |
Key event handler.
| event | Keypress event |
Reimplemented from MythScreenType.
Definition at line 240 of file weatherScreen.cpp.
| WeatherScreen * WeatherScreen::loadScreen | ( | MythScreenStack * | parent, | |
| ScreenListInfo * | screenDefn, | |||
| int | id | |||
| ) | [static] |
Definition at line 12 of file weatherScreen.cpp.
| void WeatherScreen::setValue | ( | const QString & | key, | |
| const QString & | value | |||
| ) |
Definition at line 78 of file weatherScreen.cpp.
Referenced by newData().
| QString WeatherScreen::getValue | ( | const QString & | key | ) | [inline] |
Definition at line 41 of file weatherScreen.h.
Referenced by Weather::showScreen().
| bool WeatherScreen::containsKey | ( | const QString & | key | ) | [inline] |
Definition at line 42 of file weatherScreen.h.
| bool WeatherScreen::canShowScreen | ( | ) | [virtual] |
Definition at line 58 of file weatherScreen.cpp.
Referenced by Weather::cursorLeft(), Weather::cursorRight(), and Weather::nextpage_timeout().
| void WeatherScreen::setUnits | ( | units_t | units | ) | [inline] |
Definition at line 44 of file weatherScreen.h.
Referenced by Weather::SetupScreens().
| units_t WeatherScreen::getUnits | ( | ) | [inline] |
Definition at line 45 of file weatherScreen.h.
| virtual bool WeatherScreen::usingKeys | ( | ) | [inline, virtual] |
Definition at line 46 of file weatherScreen.h.
| bool WeatherScreen::inUse | ( | ) | [inline] |
Definition at line 47 of file weatherScreen.h.
Referenced by canShowScreen().
| void WeatherScreen::setInUse | ( | bool | inuse | ) | [inline] |
Definition at line 48 of file weatherScreen.h.
Referenced by Weather::SetupScreens().
| int WeatherScreen::getId | ( | ) | [inline] |
Definition at line 49 of file weatherScreen.h.
Referenced by SourceManager::disconnectScreen().
| void WeatherScreen::screenReady | ( | WeatherScreen * | ) | [signal] |
Referenced by newData().
Definition at line 84 of file weatherScreen.cpp.
| QString WeatherScreen::prepareDataItem | ( | const QString & | key, | |
| const QString & | value | |||
| ) | [protected, virtual] |
Definition at line 235 of file weatherScreen.cpp.
Referenced by setValue().
| void WeatherScreen::prepareWidget | ( | MythUIType * | widget | ) | [protected, virtual] |
Definition at line 157 of file weatherScreen.cpp.
Referenced by prepareScreen().
Definition at line 112 of file weatherScreen.cpp.
| QString WeatherScreen::getTemperatureUnit | ( | ) | [protected, virtual] |
Definition at line 104 of file weatherScreen.cpp.
Referenced by formatDataItem().
| QString WeatherScreen::formatDataItem | ( | const QString & | key, | |
| const QString & | value | |||
| ) | [protected] |
Definition at line 170 of file weatherScreen.cpp.
Referenced by prepareDataItem().
units_t WeatherScreen::m_units [protected] |
Definition at line 58 of file weatherScreen.h.
Referenced by formatDataItem(), getTemperatureUnit(), getUnits(), and setUnits().
ScreenListInfo* WeatherScreen::m_screenDefn [protected] |
Definition at line 59 of file weatherScreen.h.
Referenced by WeatherScreen().
QString WeatherScreen::m_name [protected] |
Definition at line 60 of file weatherScreen.h.
Referenced by Create(), and prepareScreen().
QMap<QString, QString> WeatherScreen::m_dataValueMap [private] |
Definition at line 70 of file weatherScreen.h.
Referenced by canShowScreen(), containsKey(), getValue(), prepareScreen(), setValue(), and WeatherScreen().
bool WeatherScreen::m_inuse [private] |
Definition at line 72 of file weatherScreen.h.
Referenced by inUse(), and setInUse().
bool WeatherScreen::m_prepared [private] |
Definition at line 73 of file weatherScreen.h.
Referenced by prepareScreen().
int WeatherScreen::m_id [private] |
Definition at line 74 of file weatherScreen.h.
Referenced by getId().
1.6.3