#include <configuration.h>
|
virtual | ~Configuration ()=default |
|
virtual bool | Load (void)=0 |
|
virtual bool | Save (void)=0 |
|
virtual int | GetValue (const QString &sSetting, int Default)=0 |
|
virtual QString | GetValue (const QString &sSetting, const QString &Default)=0 |
|
virtual bool | GetBoolValue (const QString &sSetting, bool Default)=0 |
|
virtual void | SetValue (const QString &sSetting, int value)=0 |
|
virtual void | SetValue (const QString &sSetting, const QString &value)=0 |
|
virtual void | ClearValue (const QString &sSetting)=0 |
|
virtual void | SetBoolValue (const QString &sSetting, bool value)=0 |
|
template<typename T > |
std::enable_if< std::chrono::__is_duration< T >::value, T >::type | GetDuration (const QString &sSetting, T defaultval=T::zero()) |
|
template<typename T > |
std::enable_if< std::chrono::__is_duration< T >::value, void >::type | SetDuration (const QString &sSetting, T value) |
|
Definition at line 21 of file configuration.h.
◆ ~Configuration()
virtual Configuration::~Configuration |
( |
| ) |
|
|
virtualdefault |
◆ Load()
virtual bool Configuration::Load |
( |
void |
| ) |
|
|
pure virtual |
◆ Save()
virtual bool Configuration::Save |
( |
void |
| ) |
|
|
pure virtual |
◆ GetValue() [1/2]
virtual int Configuration::GetValue |
( |
const QString & |
sSetting, |
|
|
int |
Default |
|
) |
| |
|
pure virtual |
Implemented in DBConfiguration, and XmlConfiguration.
Referenced by MythContextPrivate::DefaultUPnP(), XmlConfiguration::GetBoolValue(), DBConfiguration::GetBoolValue(), UPnpDeviceDesc::GetHostName(), MediaServer::Init(), HTTPRequest::IsUrlProtected(), MythContextPrivate::LoadDatabaseSettings(), LookupUDN(), MediaRenderer::MediaRenderer(), MMulticastSocketDevice::MMulticastSocketDevice(), MythFEXML::MythFEXML(), UPnpDeviceDesc::OutputDevice(), SSDP::SSDP(), SSDPExtension::SSDPExtension(), UPnpCDS::UPnpCDS(), UPnpCMGR::UPnpCMGR(), and UPnpMSRR::UPnpMSRR().
◆ GetValue() [2/2]
virtual QString Configuration::GetValue |
( |
const QString & |
sSetting, |
|
|
const QString & |
Default |
|
) |
| |
|
pure virtual |
◆ GetBoolValue()
virtual bool Configuration::GetBoolValue |
( |
const QString & |
sSetting, |
|
|
bool |
Default |
|
) |
| |
|
pure virtual |
◆ SetValue() [1/2]
virtual void Configuration::SetValue |
( |
const QString & |
sSetting, |
|
|
int |
value |
|
) |
| |
|
pure virtual |
◆ SetValue() [2/2]
virtual void Configuration::SetValue |
( |
const QString & |
sSetting, |
|
|
const QString & |
value |
|
) |
| |
|
pure virtual |
◆ ClearValue()
virtual void Configuration::ClearValue |
( |
const QString & |
sSetting | ) |
|
|
pure virtual |
◆ SetBoolValue()
virtual void Configuration::SetBoolValue |
( |
const QString & |
sSetting, |
|
|
bool |
value |
|
) |
| |
|
pure virtual |
◆ GetDuration()
template<typename T >
std::enable_if<std::chrono::__is_duration<T>::value, T>::type Configuration::GetDuration |
( |
const QString & |
sSetting, |
|
|
T |
defaultval = T::zero() |
|
) |
| |
|
inline |
◆ SetDuration()
template<typename T >
std::enable_if<std::chrono::__is_duration<T>::value, void>::type Configuration::SetDuration |
( |
const QString & |
sSetting, |
|
|
T |
value |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: