MythTV  master
Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
DTVTunerType Class Reference

#include <dtvconfparserhelpers.h>

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

Public Member Functions

 DTVTunerType (int _default=kTunerTypeUnknown)
 
DTVTunerTypeoperator= (int type)
 
bool Parse (const QString &_value)
 
bool IsFECVariable (void) const
 
bool IsModulationVariable (void) const
 
bool IsDiSEqCSupported (void) const
 
QString toString () 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 void initStr (void)
 
static QString toString (int _value)
 

Static Public Attributes

static const int kTunerTypeDVBS1 = 0x0000
 
static const int kTunerTypeDVBS2 = 0x0020
 
static const int kTunerTypeDVBC = 0x0001
 
static const int kTunerTypeDVBT = 0x0002
 
static const int kTunerTypeDVBT2 = 0x0022
 
static const int kTunerTypeATSC = 0x0003
 
static const int kTunerTypeASI = 0x1000
 
static const int kTunerTypeOCUR = 0x2000
 
static const int kTunerTypeIPTV = 0x4000
 
static const int kTunerTypeUnknown = 0x80000000
 

Static Private Attributes

static const DTVParamHelperStruct s_parseTable []
 

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 74 of file dtvconfparserhelpers.h.

Constructor & Destructor Documentation

◆ DTVTunerType()

DTVTunerType::DTVTunerType ( int  _default = kTunerTypeUnknown)
inlineexplicit

Definition at line 125 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ operator=()

DTVTunerType& DTVTunerType::operator= ( int  type)
inline

Definition at line 127 of file dtvconfparserhelpers.h.

◆ Parse()

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

Definition at line 129 of file dtvconfparserhelpers.h.

Referenced by ChannelScanSM::ScanForChannels().

◆ IsFECVariable()

bool DTVTunerType::IsFECVariable ( void  ) const
inline

◆ IsModulationVariable()

bool DTVTunerType::IsModulationVariable ( void  ) const
inline

Definition at line 139 of file dtvconfparserhelpers.h.

Referenced by DVBChannel::CheckOptions().

◆ IsDiSEqCSupported()

bool DTVTunerType::IsDiSEqCSupported ( void  ) const
inline

Definition at line 146 of file dtvconfparserhelpers.h.

Referenced by DVBChannel::Open(), and DVBChannel::Tune().

◆ toString() [1/2]

QString DTVTunerType::toString ( void  ) const
inline

◆ initStr()

void DTVTunerType::initStr ( void  )
static

Definition at line 54 of file dtvconfparserhelpers.cpp.

Referenced by DTVTunerType().

◆ toString() [2/2]

QString DTVTunerType::toString ( int  _value)
static

Definition at line 68 of file dtvconfparserhelpers.cpp.

Member Data Documentation

◆ s_parseTable

const DTVParamHelperStruct DTVTunerType::s_parseTable
staticprivate
Initial value:
=
{
{ "QPSK", kTunerTypeDVBS1 },
{ "QAM", kTunerTypeDVBC },
{ "OFDM", kTunerTypeDVBT },
{ "DVB_T2", kTunerTypeDVBT2 },
{ "ATSC", kTunerTypeATSC },
{ "DVB_S2", kTunerTypeDVBS2 },
{ "ASI", kTunerTypeASI },
{ "OCUR", kTunerTypeOCUR },
{ "UNKNOWN", kTunerTypeUnknown },
{ nullptr, kTunerTypeUnknown },
}

Definition at line 76 of file dtvconfparserhelpers.h.

Referenced by Parse().

◆ kTunerTypeDVBS1

const int DTVTunerType::kTunerTypeDVBS1 = 0x0000
static

◆ kTunerTypeDVBS2

const int DTVTunerType::kTunerTypeDVBS2 = 0x0020
static

◆ kTunerTypeDVBC

const int DTVTunerType::kTunerTypeDVBC = 0x0001
static

◆ kTunerTypeDVBT

const int DTVTunerType::kTunerTypeDVBT = 0x0002
static

◆ kTunerTypeDVBT2

const int DTVTunerType::kTunerTypeDVBT2 = 0x0022
static

◆ kTunerTypeATSC

const int DTVTunerType::kTunerTypeATSC = 0x0003
static

◆ kTunerTypeASI

const int DTVTunerType::kTunerTypeASI = 0x1000
static

◆ kTunerTypeOCUR

const int DTVTunerType::kTunerTypeOCUR = 0x2000
static

Definition at line 99 of file dtvconfparserhelpers.h.

Referenced by initStr(), and HDHRStreamHandler::Open().

◆ kTunerTypeIPTV

const int DTVTunerType::kTunerTypeIPTV = 0x4000
static

Definition at line 100 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

◆ kTunerTypeUnknown

const int DTVTunerType::kTunerTypeUnknown = 0x80000000
static

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