MythTV  master
Classes | Macros | Typedefs | Functions | Variables
weatherUtils.h File Reference
#include <utility>
#include <QDomElement>
#include <QFile>
#include <QMap>
#include <QMetaType>
#include <QMultiHash>
#include <QString>
#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.


class  TypeListInfo
class  ScreenListInfo


#define SI_UNITS   0
#define ENG_UNITS   1


using units_t = unsigned char
using DataMap = QMap< QString, QString >
using TypeListMap = QMultiHash< QString, TypeListInfo >
using ScreenListMap = QMap< QString, ScreenListInfo >


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


static constexpr std::chrono::minutes DEFAULT_UPDATE_TIMEOUT { 5min }
static constexpr std::chrono::seconds DEFAULT_SCRIPT_TIMEOUT { 60s }

Macro Definition Documentation


#define SI_UNITS   0

Definition at line 17 of file weatherUtils.h.


#define ENG_UNITS   1

Definition at line 18 of file weatherUtils.h.

Typedef Documentation

◆ units_t

using units_t = unsigned char

Definition at line 24 of file weatherUtils.h.

◆ DataMap

using DataMap = QMap<QString, QString>

Definition at line 25 of file weatherUtils.h.

◆ TypeListMap

using TypeListMap = QMultiHash<QString, TypeListInfo>

Definition at line 45 of file weatherUtils.h.

◆ ScreenListMap

using ScreenListMap = QMap<QString, ScreenListInfo>

Definition at line 70 of file weatherUtils.h.

Function Documentation



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

Variable Documentation


constexpr std::chrono::minutes DEFAULT_UPDATE_TIMEOUT { 5min }

Definition at line 19 of file weatherUtils.h.

Referenced by WeatherSource::ProbeTimeouts().


constexpr std::chrono::seconds DEFAULT_SCRIPT_TIMEOUT { 60s }

Definition at line 20 of file weatherUtils.h.

Referenced by WeatherSource::ProbeTimeouts().