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 <dtvconfparser.h>

Collaboration diagram for DTVConfParser:
Collaboration graph
[legend]

Public Types

enum  return_t { ERROR_CARDTYPE, ERROR_OPEN, ERROR_PARSE, OK }
 
enum  cardtype_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 76 of file dtvconfparser.h.

Member Enumeration Documentation

◆ return_t

Enumerator
ERROR_CARDTYPE 
ERROR_OPEN 
ERROR_PARSE 
OK 

Definition at line 79 of file dtvconfparser.h.

◆ cardtype_t

Enumerator
ATSC 
OFDM 
QPSK 
QAM 
DVBS2 
UNKNOWN 

Definition at line 80 of file dtvconfparser.h.

Constructor & Destructor Documentation

◆ DTVConfParser()

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

Definition at line 82 of file dtvconfparser.h.

◆ ~DTVConfParser()

virtual DTVConfParser::~DTVConfParser ( )
virtualdefault

Member Function Documentation

◆ Parse()

DTVConfParser::return_t DTVConfParser::Parse ( void  )

Definition at line 67 of file dtvconfparser.cpp.

◆ GetChannels()

DTVChannelList DTVConfParser::GetChannels ( void  ) const
inline

Definition at line 88 of file dtvconfparser.h.

◆ ParseVDR()

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

Definition at line 222 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 134 of file dtvconfparser.cpp.

Referenced by Parse().

◆ ParseConfQPSK()

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

Definition at line 201 of file dtvconfparser.cpp.

Referenced by Parse().

◆ ParseConfQAM()

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

Definition at line 179 of file dtvconfparser.cpp.

Referenced by Parse().

◆ ParseConfATSC()

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

Definition at line 160 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 99 of file dtvconfparser.h.

Referenced by Parse().

◆ m_sourceid

uint DTVConfParser::m_sourceid
private

Definition at line 100 of file dtvconfparser.h.

◆ m_filename

QString DTVConfParser::m_filename
private

Definition at line 101 of file dtvconfparser.h.

Referenced by Parse().

◆ m_channels

DTVChannelList DTVConfParser::m_channels
private

Definition at line 105 of file dtvconfparser.h.

Referenced by AddChannel(), and Parse().


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