MythTV  master
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
XmlConfiguration Class Reference

#include <configuration.h>

Inheritance diagram for XmlConfiguration:
Inheritance graph
[legend]
Collaboration diagram for XmlConfiguration:
Collaboration graph
[legend]

Public Member Functions

 XmlConfiguration (const QString &sFileName)
 
virtual ~XmlConfiguration ()=default
 
bool Load (void) override
 
bool Save (void) override
 
int GetValue (const QString &sSetting, int Default) override
 
QString GetValue (const QString &sSetting, QString Default) override
 
bool GetBoolValue (const QString &sSetting, bool Default) override
 
void SetValue (const QString &sSetting, int value) override
 
void SetValue (const QString &sSetting, QString value) override
 
void ClearValue (const QString &sSetting) override
 
void SetBoolValue (const QString &sSetting, bool value) override
 
- Public Member Functions inherited from Configuration
virtual ~Configuration ()=default
 

Protected Member Functions

QDomNode FindNode (const QString &sName, bool bCreate=false)
 
QDomNode FindNode (QStringList &sParts, QDomNode &curNode, bool bCreate=false)
 

Protected Attributes

QString m_sPath
 
QString m_sFileName
 
QDomDocument m_config
 
QDomNode m_rootNode
 

Detailed Description

Definition at line 51 of file configuration.h.

Constructor & Destructor Documentation

◆ XmlConfiguration()

XmlConfiguration::XmlConfiguration ( const QString &  sFileName)
explicit

Definition at line 31 of file configuration.cpp.

◆ ~XmlConfiguration()

virtual XmlConfiguration::~XmlConfiguration ( )
virtualdefault

Member Function Documentation

◆ FindNode() [1/2]

QDomNode XmlConfiguration::FindNode ( const QString &  sName,
bool  bCreate = false 
)
protected

Definition at line 159 of file configuration.cpp.

Referenced by ClearValue(), FindNode(), GetValue(), and SetValue().

◆ FindNode() [2/2]

QDomNode XmlConfiguration::FindNode ( QStringList &  sParts,
QDomNode &  curNode,
bool  bCreate = false 
)
protected

Definition at line 171 of file configuration.cpp.

◆ Load()

bool XmlConfiguration::Load ( void  )
overridevirtual

Implements Configuration.

Definition at line 43 of file configuration.cpp.

Referenced by XmlConfiguration().

◆ Save()

bool XmlConfiguration::Save ( void  )
overridevirtual

Implements Configuration.

Definition at line 88 of file configuration.cpp.

Referenced by MythContextPrivate::saveSettingsCache().

◆ GetValue() [1/2]

int XmlConfiguration::GetValue ( const QString &  sSetting,
int  Default 
)
overridevirtual

◆ GetValue() [2/2]

QString XmlConfiguration::GetValue ( const QString &  sSetting,
QString  Default 
)
overridevirtual

Implements Configuration.

Definition at line 220 of file configuration.cpp.

◆ GetBoolValue()

bool XmlConfiguration::GetBoolValue ( const QString &  sSetting,
bool  Default 
)
inlineoverridevirtual

Implements Configuration.

Definition at line 75 of file configuration.h.

◆ SetValue() [1/2]

void XmlConfiguration::SetValue ( const QString &  sSetting,
int  value 
)
overridevirtual

Implements Configuration.

Definition at line 240 of file configuration.cpp.

Referenced by MythContextPrivate::saveSettingsCache().

◆ SetValue() [2/2]

void XmlConfiguration::SetValue ( const QString &  sSetting,
QString  value 
)
overridevirtual

Implements Configuration.

Definition at line 267 of file configuration.cpp.

◆ ClearValue()

void XmlConfiguration::ClearValue ( const QString &  sSetting)
overridevirtual

Implements Configuration.

Definition at line 293 of file configuration.cpp.

◆ SetBoolValue()

void XmlConfiguration::SetBoolValue ( const QString &  sSetting,
bool  value 
)
inlineoverridevirtual

Implements Configuration.

Definition at line 81 of file configuration.h.

Member Data Documentation

◆ m_sPath

QString XmlConfiguration::m_sPath
protected

Definition at line 55 of file configuration.h.

Referenced by Load(), Save(), and XmlConfiguration().

◆ m_sFileName

QString XmlConfiguration::m_sFileName
protected

Definition at line 56 of file configuration.h.

Referenced by Load(), Save(), and XmlConfiguration().

◆ m_config

QDomDocument XmlConfiguration::m_config
protected

Definition at line 58 of file configuration.h.

Referenced by FindNode(), Load(), Save(), and SetValue().

◆ m_rootNode

QDomNode XmlConfiguration::m_rootNode
protected

Definition at line 59 of file configuration.h.

Referenced by FindNode(), and Load().


The documentation for this class was generated from the following files: