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

Constructor & Destructor Documentation

◆ DTVTunerType()

DTVTunerType::DTVTunerType ( int  _default = kTunerTypeUnknown)
inlineexplicit

Definition at line 127 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ operator=()

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

Definition at line 129 of file dtvconfparserhelpers.h.

◆ Parse()

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

Definition at line 131 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 141 of file dtvconfparserhelpers.h.

Referenced by DVBChannel::CheckOptions().

◆ IsDiSEqCSupported()

bool DTVTunerType::IsDiSEqCSupported ( void  ) const
inline

Definition at line 148 of file dtvconfparserhelpers.h.

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

◆ toString() [1/2]

QString DTVTunerType::toString ( ) const
inline

◆ toUInt()

uint DTVTunerType::toUInt ( ) const
inline

Definition at line 156 of file dtvconfparserhelpers.h.

Referenced by ScanDTVTransport::SaveScan().

◆ initStr()

void DTVTunerType::initStr ( void  )
static

Definition at line 51 of file dtvconfparserhelpers.cpp.

Referenced by DTVTunerType().

◆ toString() [2/2]

QString DTVTunerType::toString ( int  _value)
static

Definition at line 65 of file dtvconfparserhelpers.cpp.

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 },
}

Definition at line 78 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 101 of file dtvconfparserhelpers.h.

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

◆ kTunerTypeIPTV

const int DTVTunerType::kTunerTypeIPTV = 0x4000
static

Definition at line 102 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:
DTVTunerType::kTunerTypeDVBC
static const int kTunerTypeDVBC
Definition: dtvconfparserhelpers.h:95
DTVTunerType::kTunerTypeDVBS1
static const int kTunerTypeDVBS1
Definition: dtvconfparserhelpers.h:93
DTVTunerType::kTunerTypeUnknown
static const int kTunerTypeUnknown
Definition: dtvconfparserhelpers.h:103
DTVTunerType::kTunerTypeDVBS2
static const int kTunerTypeDVBS2
Definition: dtvconfparserhelpers.h:94
DTVTunerType::kTunerTypeOCUR
static const int kTunerTypeOCUR
Definition: dtvconfparserhelpers.h:101
DTVTunerType::kTunerTypeASI
static const int kTunerTypeASI
Definition: dtvconfparserhelpers.h:100
DTVTunerType::kTunerTypeATSC
static const int kTunerTypeATSC
Definition: dtvconfparserhelpers.h:98
DTVTunerType::kTunerTypeDVBT
static const int kTunerTypeDVBT
Definition: dtvconfparserhelpers.h:96
DTVTunerType::kTunerTypeDVBT2
static const int kTunerTypeDVBT2
Definition: dtvconfparserhelpers.h:97