DTVConfParser Class Reference

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

#include <dtvconfparser.h>

List of all members.

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, const QString &_file)
virtual ~DTVConfParser ()
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 type
uint sourceid
QString filename
DTVChannelList channels

Detailed Description

Parses dvb-utils channel scanner output files.

Definition at line 79 of file dtvconfparser.h.


Member Enumeration Documentation

Enumerator:
ERROR_CARDTYPE 
ERROR_OPEN 
ERROR_PARSE 
OK 

Definition at line 82 of file dtvconfparser.h.

Enumerator:
ATSC 
OFDM 
QPSK 
QAM 
DVBS2 
UNKNOWN 

Definition at line 83 of file dtvconfparser.h.


Constructor & Destructor Documentation

DTVConfParser::DTVConfParser ( enum cardtype_t  _type,
uint  sourceid,
const QString &  _file 
)

Definition at line 67 of file dtvconfparser.cpp.

virtual DTVConfParser::~DTVConfParser (  )  [inline, virtual]

Definition at line 86 of file dtvconfparser.h.


Member Function Documentation

DTVConfParser::return_t DTVConfParser::Parse ( void   ) 

Definition at line 73 of file dtvconfparser.cpp.

Referenced by ChannelScanner::ImportDVBUtils().

DTVChannelList DTVConfParser::GetChannels ( void   )  const [inline]

Definition at line 90 of file dtvconfparser.h.

Referenced by ChannelScanner::ImportDVBUtils().

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

Definition at line 222 of file dtvconfparser.cpp.

Referenced by Parse().

bool DTVConfParser::ParseConf ( const QStringList &  tokens  )  [private]
bool DTVConfParser::ParseConfOFDM ( const QStringList &  tokens  )  [private]

Definition at line 134 of file dtvconfparser.cpp.

Referenced by Parse().

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

Definition at line 201 of file dtvconfparser.cpp.

Referenced by Parse().

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

Definition at line 179 of file dtvconfparser.cpp.

Referenced by Parse().

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

Definition at line 160 of file dtvconfparser.cpp.

Referenced by Parse().

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

Member Data Documentation

Definition at line 101 of file dtvconfparser.h.

Referenced by Parse().

Definition at line 102 of file dtvconfparser.h.

QString DTVConfParser::filename [private]

Definition at line 103 of file dtvconfparser.h.

Referenced by Parse().

Definition at line 107 of file dtvconfparser.h.

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:00 2012 for MythTV by  doxygen 1.6.3