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

#include <libmythtv/dtvconfparserhelpers.h>

Inheritance diagram for DTVTunerType:
[legend]
Collaboration diagram for DTVTunerType:
[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
 
uint toUInt () 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 DTVParamHelperVec kParseTable
 

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

Constructor & Destructor Documentation

◆ DTVTunerType()

DTVTunerType::DTVTunerType ( int  _default = kTunerTypeUnknown)
inlineexplicit

Definition at line 129 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ initStr()

void DTVTunerType::initStr ( void  )
static

Definition at line 51 of file dtvconfparserhelpers.cpp.

Referenced by DTVTunerType().

◆ IsDiSEqCSupported()

bool DTVTunerType::IsDiSEqCSupported ( void  ) const
inline

Definition at line 150 of file dtvconfparserhelpers.h.

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

◆ IsFECVariable()

bool DTVTunerType::IsFECVariable ( void  ) const
inline

◆ IsModulationVariable()

bool DTVTunerType::IsModulationVariable ( void  ) const
inline

Definition at line 143 of file dtvconfparserhelpers.h.

Referenced by DVBChannel::CheckOptions().

◆ operator=()

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

Definition at line 131 of file dtvconfparserhelpers.h.

◆ Parse()

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

Definition at line 133 of file dtvconfparserhelpers.h.

Referenced by ChannelScanSM::ScanForChannels().

◆ toString() [1/2]

QString DTVTunerType::toString ( ) const
inline

◆ toString() [2/2]

QString DTVTunerType::toString ( int  _value)
static

Definition at line 65 of file dtvconfparserhelpers.cpp.

◆ toUInt()

uint DTVTunerType::toUInt ( ) const
inline

Definition at line 158 of file dtvconfparserhelpers.h.

Referenced by ScanDTVTransport::SaveScan().

Member Data Documentation

◆ kParseTable

const DTVParamHelperVec DTVTunerType::kParseTable
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 },
}
static const int kTunerTypeOCUR
static const int kTunerTypeASI
static const int kTunerTypeDVBS2
static const int kTunerTypeDVBT
static const int kTunerTypeUnknown
static const int kTunerTypeDVBC
static const int kTunerTypeDVBS1
static const int kTunerTypeDVBT2
static const int kTunerTypeATSC

Definition at line 80 of file dtvconfparserhelpers.h.

Referenced by Parse().

◆ kTunerTypeASI

const int DTVTunerType::kTunerTypeASI = 0x1000
static

◆ kTunerTypeATSC

const int DTVTunerType::kTunerTypeATSC = 0x0003
static

◆ kTunerTypeDVBC

const int DTVTunerType::kTunerTypeDVBC = 0x0001
static

◆ kTunerTypeDVBS1

const int DTVTunerType::kTunerTypeDVBS1 = 0x0000
static

◆ kTunerTypeDVBS2

const int DTVTunerType::kTunerTypeDVBS2 = 0x0020
static

◆ kTunerTypeDVBT

const int DTVTunerType::kTunerTypeDVBT = 0x0002
static

◆ kTunerTypeDVBT2

const int DTVTunerType::kTunerTypeDVBT2 = 0x0022
static

◆ kTunerTypeIPTV

const int DTVTunerType::kTunerTypeIPTV = 0x4000
static

Definition at line 104 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

◆ kTunerTypeOCUR

const int DTVTunerType::kTunerTypeOCUR = 0x2000
static

Definition at line 103 of file dtvconfparserhelpers.h.

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

◆ kTunerTypeUnknown

const int DTVTunerType::kTunerTypeUnknown = 0x80000000
static

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