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

#include <dtvconfparserhelpers.h>

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

Public Types

enum  Types { kTransmissionMode2K, kTransmissionMode8K, kTransmissionModeAuto }
 

Public Member Functions

 DTVTransmitMode (Types _default=kTransmissionModeAuto)
 
DTVTransmitModeoperator= (const Types _value)
 
DTVTransmitModeoperator= (const fe_transmit_mode_t mode)
 
bool IsCompatible (const DTVTransmitMode &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 DTVParamHelperStruct s_confTable []
 
static const DTVParamHelperStruct s_vdrTable []
 
static const DTVParamHelperStruct s_parseTable []
 
static const uint kDBStrCnt = 3
 
static const char * s_dbStr [kDBStrCnt]
 

Additional Inherited Members

- Static Protected Member Functions inherited from DTVParamHelper
static bool ParseParam (const QString &symbol, int &value, const DTVParamHelperStruct *table)
 
static QString toString (const char *strings[], int index, uint strings_size)
 
- Protected Attributes inherited from DTVParamHelper
int value
 

Detailed Description

Definition at line 388 of file dtvconfparserhelpers.h.

Member Enumeration Documentation

◆ Types

Enumerator
kTransmissionMode2K 
kTransmissionMode8K 
kTransmissionModeAuto 

Definition at line 398 of file dtvconfparserhelpers.h.

Constructor & Destructor Documentation

◆ DTVTransmitMode()

DTVTransmitMode::DTVTransmitMode ( Types  _default = kTransmissionModeAuto)
inlineexplicit

Definition at line 410 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 412 of file dtvconfparserhelpers.h.

◆ operator=() [2/2]

DTVTransmitMode& DTVTransmitMode::operator= ( const fe_transmit_mode_t  mode)
inline

Definition at line 415 of file dtvconfparserhelpers.h.

◆ IsCompatible()

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

Definition at line 419 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

◆ ParseConf()

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

Definition at line 424 of file dtvconfparserhelpers.h.

◆ ParseVDR()

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

Definition at line 426 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

◆ Parse()

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

Definition at line 428 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::ParseDVB_T().

◆ toString() [1/2]

QString DTVTransmitMode::toString ( void  ) const
inline

◆ toChar()

QChar DTVTransmitMode::toChar ( ) const
inline

Definition at line 432 of file dtvconfparserhelpers.h.

Referenced by ChannelUtil::CreateMultiplex().

◆ toString() [2/2]

static QString DTVTransmitMode::toString ( int  _value)
inlinestatic

Definition at line 436 of file dtvconfparserhelpers.h.

Member Data Documentation

◆ s_confTable

const DTVParamHelperStruct DTVTransmitMode::s_confTable
staticprotected
Initial value:
=
{
{ "TRANSMISSION_MODE_AUTO", kTransmissionModeAuto },
{ "TRANSMISSION_MODE_2K", kTransmissionMode2K },
{ "TRANSMISSION_MODE_8K", kTransmissionMode8K },
{ nullptr, kTransmissionModeAuto },
}

Definition at line 391 of file dtvconfparserhelpers.h.

Referenced by ParseConf().

◆ s_vdrTable

const DTVParamHelperStruct DTVTransmitMode::s_vdrTable
staticprotected
Initial value:

Definition at line 392 of file dtvconfparserhelpers.h.

Referenced by ParseVDR().

◆ s_parseTable

const DTVParamHelperStruct DTVTransmitMode::s_parseTable
staticprotected
Initial value:

Definition at line 393 of file dtvconfparserhelpers.h.

Referenced by Parse().

◆ kDBStrCnt

const uint DTVTransmitMode::kDBStrCnt = 3
staticprotected

Definition at line 394 of file dtvconfparserhelpers.h.

Referenced by toString().

◆ s_dbStr

const char * DTVTransmitMode::s_dbStr
staticprotected
Initial value:
=
{
"2",
"8",
"a"
}

Definition at line 395 of file dtvconfparserhelpers.h.

Referenced by toString().


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