MythTV  master
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
DTVConfParser Class Reference

Parses dvb-utils channel scanner output files. More...

#include <libmythtv/dtvconfparser.h>

Collaboration diagram for DTVConfParser:
[legend]

Public Types

enum  return_t : std::uint8_t { ERROR_CARDTYPE, ERROR_OPEN, ERROR_PARSE, OK }
 
enum  cardtype_t : std::uint8_t {
  ATSC, OFDM, QPSK, QAM,
  DVBS2, UNKNOWN
}
 

Public Member Functions

 DTVConfParser (enum cardtype_t type, uint sourceid, QString file)
 
virtual ~DTVConfParser ()=default
 
return_t Parse (void)
 
DTVChannelList GetChannels (void) const
 

Private Member Functions

bool ParseVDR (const QStringList &tokens, int channelNo=-1)
 
bool ParseConf (const QStringList &tokens)
 
bool ParseConfOFDM (const QStringList &tokens)
 
bool ParseConfQPSK (const QStringList &tokens)
 
bool ParseConfQAM (const QStringList &tokens)
 
bool ParseConfATSC (const QStringList &tokens)
 
void AddChannel (const DTVMultiplex &mux, DTVChannelInfo &chan)
 

Private Attributes

cardtype_t m_type
 
uint m_sourceid
 
QString m_filename
 
DTVChannelList m_channels
 

Detailed Description

Parses dvb-utils channel scanner output files.

Definition at line 73 of file dtvconfparser.h.

Member Enumeration Documentation

◆ return_t

enum DTVConfParser::return_t : std::uint8_t
Enumerator
ERROR_CARDTYPE 
ERROR_OPEN 
ERROR_PARSE 
OK 

Definition at line 76 of file dtvconfparser.h.

◆ cardtype_t

enum DTVConfParser::cardtype_t : std::uint8_t
Enumerator
ATSC 
OFDM 
QPSK 
QAM 
DVBS2 
UNKNOWN 

Definition at line 77 of file dtvconfparser.h.

Constructor & Destructor Documentation

◆ DTVConfParser()

DTVConfParser::DTVConfParser ( enum cardtype_t  type,
uint  sourceid,
QString  file 
)
inline

Definition at line 79 of file dtvconfparser.h.

◆ ~DTVConfParser()

virtual DTVConfParser::~DTVConfParser ( )
virtualdefault

Member Function Documentation

◆ Parse()

DTVConfParser::return_t DTVConfParser::Parse ( void  )

Definition at line 71 of file dtvconfparser.cpp.

◆ GetChannels()

DTVChannelList DTVConfParser::GetChannels ( void  ) const
inline

Definition at line 85 of file dtvconfparser.h.

◆ ParseVDR()

bool DTVConfParser::ParseVDR ( const QStringList &  tokens,
int  channelNo = -1 
)
private

Definition at line 225 of file dtvconfparser.cpp.

Referenced by Parse().

◆ ParseConf()

bool DTVConfParser::ParseConf ( const QStringList &  tokens)
private

◆ ParseConfOFDM()

bool DTVConfParser::ParseConfOFDM ( const QStringList &  tokens)
private

Definition at line 137 of file dtvconfparser.cpp.

Referenced by Parse().

◆ ParseConfQPSK()

bool DTVConfParser::ParseConfQPSK ( const QStringList &  tokens)
private

Definition at line 204 of file dtvconfparser.cpp.

Referenced by Parse().

◆ ParseConfQAM()

bool DTVConfParser::ParseConfQAM ( const QStringList &  tokens)
private

Definition at line 182 of file dtvconfparser.cpp.

Referenced by Parse().

◆ ParseConfATSC()

bool DTVConfParser::ParseConfATSC ( const QStringList &  tokens)
private

Definition at line 163 of file dtvconfparser.cpp.

Referenced by Parse().

◆ AddChannel()

void DTVConfParser::AddChannel ( const DTVMultiplex mux,
DTVChannelInfo chan 
)
private

Member Data Documentation

◆ m_type

cardtype_t DTVConfParser::m_type
private

Definition at line 96 of file dtvconfparser.h.

Referenced by Parse().

◆ m_sourceid

uint DTVConfParser::m_sourceid
private

Definition at line 97 of file dtvconfparser.h.

◆ m_filename

QString DTVConfParser::m_filename
private

Definition at line 98 of file dtvconfparser.h.

Referenced by Parse().

◆ m_channels

DTVChannelList DTVConfParser::m_channels
private

Definition at line 102 of file dtvconfparser.h.

Referenced by AddChannel(), GetChannels(), and Parse().


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