MythTV  master
Public Types | Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
DTVBandwidth Class Reference

#include <dtvconfparserhelpers.h>

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

Public Types

enum  Types {
  kBandwidth8MHz, kBandwidth7MHz, kBandwidth6MHz, kBandwidthAuto,
  kBandwidth5MHz, kBandwidth10MHz, kBandwidth1712kHz
}
 

Public Member Functions

 DTVBandwidth (Types _default=kBandwidthAuto)
 
DTVBandwidthoperator= (const Types _value)
 
DTVBandwidthoperator= (const fe_bandwidth_t bwidth)
 
bool IsCompatible (const DTVBandwidth other) const
 
bool ParseConf (const QString &_value)
 
bool ParseVDR (const QString &_value)
 
bool Parse (const QString &_value)
 
QString toString () const
 
QChar toChar () const
 
- Public Member Functions inherited from DTVParamHelper
 DTVParamHelper (int _value)
 
DTVParamHelperoperator= (int _value)
 
 operator int () const
 
bool operator== (const int v) const
 
bool operator!= (const int v) const
 

Static Public Member Functions

static QString toString (int _value)
 

Static Protected Attributes

static const DTVParamHelperVec kConfTable
 
static const DTVParamHelperVec kVdrTable
 
static const DTVParamHelperVec kParseTable
 
static const DTVParamStringVec kParseStrings
 kBandwidth8MHz More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from DTVParamHelper
static bool ParseParam (const QString &symbol, int &value, const DTVParamHelperVec &table)
 
static QString toString (const DTVParamStringVec &strings, int index)
 
- Protected Attributes inherited from DTVParamHelper
int m_value
 

Detailed Description

Definition at line 217 of file dtvconfparserhelpers.h.

Member Enumeration Documentation

◆ Types

Enumerator
kBandwidth8MHz 
kBandwidth7MHz 
kBandwidth6MHz 
kBandwidthAuto 
kBandwidth5MHz 
kBandwidth10MHz 
kBandwidth1712kHz 

Definition at line 226 of file dtvconfparserhelpers.h.

Constructor & Destructor Documentation

◆ DTVBandwidth()

DTVBandwidth::DTVBandwidth ( Types  _default = kBandwidthAuto)
inlineexplicit

Definition at line 247 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ operator=() [1/2]

DTVBandwidth& DTVBandwidth::operator= ( const Types  _value)
inline

Definition at line 249 of file dtvconfparserhelpers.h.

◆ operator=() [2/2]

DTVBandwidth& DTVBandwidth::operator= ( const fe_bandwidth_t  bwidth)
inline

Definition at line 252 of file dtvconfparserhelpers.h.

◆ IsCompatible()

bool DTVBandwidth::IsCompatible ( const DTVBandwidth  other) const
inline

Definition at line 256 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

◆ ParseConf()

bool DTVBandwidth::ParseConf ( const QString &  _value)
inline

Definition at line 261 of file dtvconfparserhelpers.h.

◆ ParseVDR()

bool DTVBandwidth::ParseVDR ( const QString &  _value)
inline

Definition at line 263 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

◆ Parse()

bool DTVBandwidth::Parse ( const QString &  _value)
inline

Definition at line 265 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::ParseDVB_T().

◆ toString() [1/2]

QString DTVBandwidth::toString ( ) const
inline

◆ toChar()

QChar DTVBandwidth::toChar ( ) const
inline

Definition at line 269 of file dtvconfparserhelpers.h.

Referenced by ChannelUtil::CreateMultiplex(), format_dvbc(), and format_dvbt().

◆ toString() [2/2]

static QString DTVBandwidth::toString ( int  _value)
inlinestatic

Definition at line 276 of file dtvconfparserhelpers.h.

Member Data Documentation

◆ kConfTable

const DTVParamHelperVec DTVBandwidth::kConfTable
staticprotected
Initial value:
{
{ "BANDWIDTH_AUTO", kBandwidthAuto },
{ "BANDWIDTH_8_MHZ", kBandwidth8MHz },
{ "BANDWIDTH_7_MHZ", kBandwidth7MHz },
{ "BANDWIDTH_6_MHZ", kBandwidth6MHz },
{ "BANDWIDTH_5_MHZ", kBandwidth5MHz },
{ "BANDWIDTH_10_MHZ", kBandwidth10MHz },
{ "BANDWIDTH_1_712_MHZ", kBandwidth1712kHz },
{ nullptr, kBandwidthAuto },
}

Definition at line 220 of file dtvconfparserhelpers.h.

Referenced by ParseConf().

◆ kVdrTable

const DTVParamHelperVec DTVBandwidth::kVdrTable
staticprotected
Initial value:
{
{ "999", kBandwidthAuto },
{ "8", kBandwidth8MHz },
{ "7", kBandwidth7MHz },
{ "6", kBandwidth6MHz },
{ "5", kBandwidth5MHz },
{ "10", kBandwidth10MHz },
{ "1712", kBandwidth1712kHz },
{ nullptr, kBandwidthAuto },
}

Definition at line 221 of file dtvconfparserhelpers.h.

Referenced by ParseVDR().

◆ kParseTable

const DTVParamHelperVec DTVBandwidth::kParseTable
staticprotected
Initial value:
{
{ "a", kBandwidthAuto },
{ "8", kBandwidth8MHz },
{ "7", kBandwidth7MHz },
{ "6", kBandwidth6MHz },
{ "5", kBandwidth5MHz },
{ "10", kBandwidth10MHz },
{ "1712", kBandwidth1712kHz },
{ nullptr, kBandwidthAuto },
}

Definition at line 222 of file dtvconfparserhelpers.h.

Referenced by Parse().

◆ kParseStrings

const DTVParamStringVec DTVBandwidth::kParseStrings
staticprotected
Initial value:
{
"8",
"7",
"6",
"a",
"5",
"10",
"1712",
}

kBandwidth8MHz

kBandwidth7MHz kBandwidth6MHz kBandwidthAUTO kBandwidth5MHz kBandwidth10MHz kBandwidth1712kHz

Definition at line 223 of file dtvconfparserhelpers.h.

Referenced by toString().


The documentation for this class was generated from the following files:
DTVBandwidth::kBandwidth6MHz
@ kBandwidth6MHz
Definition: dtvconfparserhelpers.h:230
DTVBandwidth::kBandwidthAuto
@ kBandwidthAuto
Definition: dtvconfparserhelpers.h:231
DTVBandwidth::kBandwidth5MHz
@ kBandwidth5MHz
Definition: dtvconfparserhelpers.h:232
DTVBandwidth::kBandwidth1712kHz
@ kBandwidth1712kHz
Definition: dtvconfparserhelpers.h:234
DTVBandwidth::kBandwidth8MHz
@ kBandwidth8MHz
Definition: dtvconfparserhelpers.h:228
DTVBandwidth::kBandwidth10MHz
@ kBandwidth10MHz
Definition: dtvconfparserhelpers.h:233
DTVBandwidth::kBandwidth7MHz
@ kBandwidth7MHz
Definition: dtvconfparserhelpers.h:229