MythTV  master
Macros | Functions
mythsettings.cpp File Reference
#include <QNetworkInterface>
#include <QDomDocument>
#include <QFile>
#include "channelsettings.h"
#include "mythsettings.h"
#include "frequencies.h"
#include "mythcontext.h"
#include "mythdb.h"
Include dependency graph for mythsettings.cpp:

Go to the source code of this file.

Macros

#define LOC
 

Functions

MythSetting::SettingType parse_setting_type (const QString &str)
 
MythSetting::DataType parse_data_type (const QString &str)
 
bool parse_dom (MythSettingList &settings, const QDomElement &element, const QString &filename, const QString &group, bool includeAllChildren, bool &foundGroup)
 
static QString indent (uint level)
 
static QString extract_query_list (const MythSettingList &settings, MythSetting::SettingType stype)
 
static void fill_setting (MythSettingBase *sb, const QMap< QString, QString > &map, MythSetting::SettingType stype)
 
static void fill_settings (MythSettingList &settings, MSqlQuery &query, MythSetting::SettingType stype)
 
QMap< QString, QString > GetSettingsMap (MythSettingList &settings, const QString &hostname)
 
QStringList GetSettingValueList (const QString &type)
 
QString StringMapToJSON (const QMap< QString, QString > &map)
 
QString StringListToJSON (const QString &key, const QStringList &sList)
 
bool parse_settings (MythSettingList &settings, const QString &filename, const QString &group)
 
bool load_settings (MythSettingList &settings, const QString &hostname)
 
bool check_settings (MythSettingList &, const QMap< QString, QString > &params, QString &result)
 

Macro Definition Documentation

◆ LOC

#define LOC
Value:
QString("parse_dom(%1@~%2), error: ") \
.arg(filename).arg(e.lineNumber())

Function Documentation

◆ parse_setting_type()

MythSetting::SettingType parse_setting_type ( const QString &  str)

Definition at line 316 of file mythsettings.cpp.

Referenced by parse_dom().

◆ parse_data_type()

MythSetting::DataType parse_data_type ( const QString &  str)

Definition at line 328 of file mythsettings.cpp.

Referenced by parse_dom().

◆ parse_dom()

bool parse_dom ( MythSettingList settings,
const QDomElement &  element,
const QString &  filename,
const QString &  group,
bool  includeAllChildren,
bool foundGroup 
)

Definition at line 480 of file mythsettings.cpp.

Referenced by parse_settings().

◆ indent()

static QString indent ( uint  level)
static

◆ extract_query_list()

static QString extract_query_list ( const MythSettingList settings,
MythSetting::SettingType  stype 
)
static

Definition at line 25 of file mythsettings.cpp.

Referenced by GetSettingsMap(), and load_settings().

◆ fill_setting()

static void fill_setting ( MythSettingBase sb,
const QMap< QString, QString > &  map,
MythSetting::SettingType  stype 
)
static

Definition at line 50 of file mythsettings.cpp.

Referenced by fill_settings().

◆ fill_settings()

static void fill_settings ( MythSettingList settings,
MSqlQuery query,
MythSetting::SettingType  stype 
)
static

Definition at line 128 of file mythsettings.cpp.

Referenced by load_settings().

◆ GetSettingsMap()

QMap<QString,QString> GetSettingsMap ( MythSettingList settings,
const QString &  hostname 
)

Definition at line 363 of file mythsettings.cpp.

Referenced by HttpConfig::ProcessRequest().

◆ GetSettingValueList()

QStringList GetSettingValueList ( const QString &  type)

Definition at line 410 of file mythsettings.cpp.

Referenced by fill_setting(), and HttpConfig::ProcessRequest().

◆ StringMapToJSON()

QString StringMapToJSON ( const QMap< QString, QString > &  map)

Definition at line 431 of file mythsettings.cpp.

Referenced by HttpConfig::ProcessRequest().

◆ StringListToJSON()

QString StringListToJSON ( const QString &  key,
const QStringList &  sList 
)

Definition at line 455 of file mythsettings.cpp.

Referenced by HttpConfig::ProcessRequest().

◆ parse_settings()

bool parse_settings ( MythSettingList settings,
const QString &  filename,
const QString &  group 
)

Definition at line 651 of file mythsettings.cpp.

Referenced by HttpConfig::ProcessRequest().

◆ load_settings()

bool load_settings ( MythSettingList settings,
const QString &  hostname 
)

Definition at line 686 of file mythsettings.cpp.

Referenced by HttpConfig::ProcessRequest().

◆ check_settings()

bool check_settings ( MythSettingList ,
const QMap< QString, QString > &  params,
QString &  result 
)

Definition at line 727 of file mythsettings.cpp.

Referenced by HttpConfig::ProcessRequest().