MythTV  master
Public Types | Public Member Functions | Public Attributes | List of all members
MythSetting Class Reference

#include <mythsettings.h>

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

Public Types

enum  SettingType { kFile, kHost, kGlobal, kInvalidSettingType }
 
enum  DataType {
  kInteger, kUnsignedInteger, kIntegerRange, kCheckBox,
  kSelect, kComboBox, kTVFormat, kFrequencyTable,
  kFloat, kIPAddress, kLocalIPAddress, kString,
  kTimeOfDay, kOther, kInvalidDataType
}
 

Public Member Functions

 MythSetting (QString _value, const QString &_default_data, SettingType _stype, QString _label, QString _help_text, DataType _dtype)
 
 MythSetting (QString _value, const QString &_default_data, SettingType _stype, QString _label, QString _help_text, DataType _dtype, QStringList _data_list, QStringList _display_list)
 
 MythSetting (QString _value, const QString &_default_data, SettingType _stype, QString _label, QString _help_text, DataType _dtype, long long _range_min, long long _range_max)
 
 MythSetting (QString _value, const QString &_default_data, SettingType _stype, QString _label, QString _help_text, DataType _dtype, QStringList _data_list, QStringList _display_list, long long _range_min, long long _range_max, QString _placeholder)
 
QString ToHTML (uint level) const override
 
- Public Member Functions inherited from MythSettingBase
 MythSettingBase ()=default
 
virtual ~MythSettingBase ()=default
 

Public Attributes

QString m_value
 
QString m_data
 
QString m_default_data
 
SettingType m_stype
 
QString m_label
 
QString m_help_text
 
DataType m_dtype
 
QStringList m_data_list
 
QStringList m_display_list
 
long long m_range_min {-1}
 
long long m_range_max {-1}
 
QString m_placeholder_text
 

Detailed Description

Definition at line 39 of file mythsettings.h.

Member Enumeration Documentation

◆ SettingType

Enumerator
kFile 
kHost 
kGlobal 
kInvalidSettingType 

Definition at line 42 of file mythsettings.h.

◆ DataType

Enumerator
kInteger 
kUnsignedInteger 
kIntegerRange 
kCheckBox 
kSelect 

list where only data_list are valid

kComboBox 

list where user input is allowed

kTVFormat 
kFrequencyTable 
kFloat 
kIPAddress 
kLocalIPAddress 
kString 
kTimeOfDay 
kOther 
kInvalidDataType 

Definition at line 49 of file mythsettings.h.

Constructor & Destructor Documentation

◆ MythSetting() [1/4]

MythSetting::MythSetting ( QString  _value,
const QString &  _default_data,
SettingType  _stype,
QString  _label,
QString  _help_text,
DataType  _dtype 
)
inline

Definition at line 67 of file mythsettings.h.

◆ MythSetting() [2/4]

MythSetting::MythSetting ( QString  _value,
const QString &  _default_data,
SettingType  _stype,
QString  _label,
QString  _help_text,
DataType  _dtype,
QStringList  _data_list,
QStringList  _display_list 
)
inline

Definition at line 77 of file mythsettings.h.

◆ MythSetting() [3/4]

MythSetting::MythSetting ( QString  _value,
const QString &  _default_data,
SettingType  _stype,
QString  _label,
QString  _help_text,
DataType  _dtype,
long long  _range_min,
long long  _range_max 
)
inline

Definition at line 89 of file mythsettings.h.

◆ MythSetting() [4/4]

MythSetting::MythSetting ( QString  _value,
const QString &  _default_data,
SettingType  _stype,
QString  _label,
QString  _help_text,
DataType  _dtype,
QStringList  _data_list,
QStringList  _display_list,
long long  _range_min,
long long  _range_max,
QString  _placeholder 
)
inline

Definition at line 99 of file mythsettings.h.

Member Function Documentation

◆ ToHTML()

QString MythSetting::ToHTML ( uint  level) const
overridevirtual

Reimplemented from MythSettingBase.

Definition at line 155 of file mythsettings.cpp.

Member Data Documentation

◆ m_value

QString MythSetting::m_value

Definition at line 117 of file mythsettings.h.

Referenced by ToHTML().

◆ m_data

QString MythSetting::m_data

Definition at line 118 of file mythsettings.h.

Referenced by fill_setting(), and ToHTML().

◆ m_default_data

QString MythSetting::m_default_data

Definition at line 119 of file mythsettings.h.

Referenced by ToHTML().

◆ m_stype

SettingType MythSetting::m_stype

Definition at line 120 of file mythsettings.h.

◆ m_label

QString MythSetting::m_label

Definition at line 121 of file mythsettings.h.

Referenced by ToHTML().

◆ m_help_text

QString MythSetting::m_help_text

Definition at line 122 of file mythsettings.h.

◆ m_dtype

DataType MythSetting::m_dtype

Definition at line 123 of file mythsettings.h.

Referenced by ToHTML().

◆ m_data_list

QStringList MythSetting::m_data_list

Definition at line 124 of file mythsettings.h.

Referenced by ToHTML().

◆ m_display_list

QStringList MythSetting::m_display_list

Definition at line 125 of file mythsettings.h.

Referenced by ToHTML().

◆ m_range_min

long long MythSetting::m_range_min {-1}

Definition at line 126 of file mythsettings.h.

Referenced by ToHTML().

◆ m_range_max

long long MythSetting::m_range_max {-1}

Definition at line 127 of file mythsettings.h.

Referenced by ToHTML().

◆ m_placeholder_text

QString MythSetting::m_placeholder_text

Definition at line 128 of file mythsettings.h.

Referenced by ToHTML().


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