WeatherScreen Class Reference

Weather screen. More...

#include <weatherScreen.h>

Inheritance diagram for WeatherScreen:
MythScreenType MythUIType XMLParseBase

List of all members.

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 WeatherScreenloadScreen (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
ScreenListInfom_screenDefn
QString m_name

Private Attributes

QMap< QString, QString > m_dataValueMap
bool m_inuse
bool m_prepared
int m_id

Detailed Description

Weather screen.

Definition at line 26 of file weatherScreen.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Parameters:
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]
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().

void WeatherScreen::newData ( QString  loc,
units_t  units,
DataMap  data 
) [virtual, slot]

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().

bool WeatherScreen::prepareScreen ( bool  checkOnly = false  )  [protected, virtual]

Definition at line 112 of file weatherScreen.cpp.

Referenced by Create(), and newData().

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().


Member Data Documentation

Definition at line 58 of file weatherScreen.h.

Referenced by formatDataItem(), getTemperatureUnit(), getUnits(), and setUnits().

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 72 of file weatherScreen.h.

Referenced by inUse(), and setInUse().

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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Fri Feb 10 06:42:28 2012 for MythTV by  doxygen 1.6.3