MythTV  master
Classes | Macros | Typedefs | Functions
weatherUtils.h File Reference
#include <QMap>
#include <QMultiHash>
#include <QString>
#include <QDomElement>
#include <QFile>
#include <QMetaType>
#include <mythcontext.h>
Include dependency graph for weatherUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TypeListInfo
 
class  ScreenListInfo
 

Macros

#define SI_UNITS   0
 
#define ENG_UNITS   1
 
#define DEFAULT_UPDATE_TIMEOUT   (5*60*1000)
 
#define DEFAULT_SCRIPT_TIMEOUT   (60)
 

Typedefs

typedef unsigned char units_t
 
typedef QMap< QString, QString > DataMap
 
typedef QMultiHash< QString, TypeListInfoTypeListMap
 
typedef QMap< QString, ScreenListInfoScreenListMap
 

Functions

 Q_DECLARE_METATYPE (ScreenListInfo *)
 
ScreenListMap loadScreens ()
 
QStringList loadScreen (const QDomElement &ScreenListInfo)
 
bool doLoadScreens (const QString &filename, ScreenListMap &screens)
 

Macro Definition Documentation

◆ SI_UNITS

#define SI_UNITS   0

Definition at line 15 of file weatherUtils.h.

◆ ENG_UNITS

#define ENG_UNITS   1

Definition at line 16 of file weatherUtils.h.

◆ DEFAULT_UPDATE_TIMEOUT

#define DEFAULT_UPDATE_TIMEOUT   (5*60*1000)

Definition at line 17 of file weatherUtils.h.

◆ DEFAULT_SCRIPT_TIMEOUT

#define DEFAULT_SCRIPT_TIMEOUT   (60)

Definition at line 18 of file weatherUtils.h.

Typedef Documentation

◆ units_t

typedef unsigned char units_t

Definition at line 20 of file weatherUtils.h.

◆ DataMap

typedef QMap<QString, QString> DataMap

Definition at line 23 of file weatherUtils.h.

◆ TypeListMap

typedef QMultiHash<QString, TypeListInfo> TypeListMap

Definition at line 44 of file weatherUtils.h.

◆ ScreenListMap

typedef QMap<QString, ScreenListInfo> ScreenListMap

Definition at line 79 of file weatherUtils.h.

Function Documentation

◆ Q_DECLARE_METATYPE()

Q_DECLARE_METATYPE ( ScreenListInfo )

◆ loadScreens()

ScreenListMap loadScreens ( )

Definition at line 40 of file weatherUtils.cpp.

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

◆ loadScreen()

QStringList loadScreen ( const QDomElement &  ScreenListInfo)

Definition at line 116 of file weatherUtils.cpp.

Referenced by doLoadScreens().

◆ doLoadScreens()

bool doLoadScreens ( const QString &  filename,
ScreenListMap screens 
)

Definition at line 73 of file weatherUtils.cpp.

Referenced by loadScreens().