MythTV  0.26-pre
Public Types | Public Member Functions | Static Public Member Functions | Static Protected Attributes
DTVBandwidth Class Reference

#include <dtvconfparserhelpers.h>

Inheritance diagram for DTVBandwidth:
DTVParamHelper

List of all members.

Public Types

enum  { kBandwidth8MHz, kBandwidth7MHz, kBandwidth6MHz, kBandwidthAuto }

Public Member Functions

 DTVBandwidth (int _default=kBandwidthAuto)
bool IsCompatible (const DTVBandwidth &other) const
bool ParseConf (const QString &_value)
bool ParseVDR (const QString &_value)
bool Parse (const QString &_value)
QString toString () const
QChar toChar () const

Static Public Member Functions

static QString toString (int _value)

Static Protected Attributes

static const DTVParamHelperStruct confTable []
static const DTVParamHelperStruct vdrTable []
static const DTVParamHelperStruct parseTable []
static const uint kDBStrCnt = 4
static const char * dbStr [kDBStrCnt]

Detailed Description

Definition at line 193 of file dtvconfparserhelpers.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
kBandwidth8MHz 
kBandwidth7MHz 
kBandwidth6MHz 
kBandwidthAuto 

Definition at line 203 of file dtvconfparserhelpers.h.


Constructor & Destructor Documentation

DTVBandwidth::DTVBandwidth ( int  _default = kBandwidthAuto) [inline]

Definition at line 211 of file dtvconfparserhelpers.h.


Member Function Documentation

bool DTVBandwidth::IsCompatible ( const DTVBandwidth other) const [inline]

Definition at line 213 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

bool DTVBandwidth::ParseConf ( const QString &  _value) [inline]

Definition at line 218 of file dtvconfparserhelpers.h.

bool DTVBandwidth::ParseVDR ( const QString &  _value) [inline]

Definition at line 220 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

bool DTVBandwidth::Parse ( const QString &  _value) [inline]

Definition at line 222 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::ParseDVB_T().

QString DTVBandwidth::toString ( void  ) const [inline]
QChar DTVBandwidth::toChar ( ) const [inline]

Definition at line 226 of file dtvconfparserhelpers.h.

Referenced by ChannelUtil::CreateMultiplex(), format_dvbc(), and format_dvbt().

static QString DTVBandwidth::toString ( int  _value) [inline, static]

Definition at line 230 of file dtvconfparserhelpers.h.


Member Data Documentation

const DTVParamHelperStruct DTVBandwidth::confTable [static, protected]
Initial value:
{
   { "BANDWIDTH_AUTO",  kBandwidthAuto },
   { "BANDWIDTH_8_MHZ", kBandwidth8MHz },
   { "BANDWIDTH_7_MHZ", kBandwidth7MHz },
   { "BANDWIDTH_6_MHZ", kBandwidth6MHz },
   { NULL,              kBandwidthAuto },
}

Definition at line 196 of file dtvconfparserhelpers.h.

Referenced by ParseConf().

const DTVParamHelperStruct DTVBandwidth::vdrTable [static, protected]
Initial value:
{
   { "999", kBandwidthAuto },
   { "8",   kBandwidth8MHz },
   { "7",   kBandwidth7MHz },
   { "6",   kBandwidth6MHz },
   { NULL,  kBandwidthAuto },
}

Definition at line 197 of file dtvconfparserhelpers.h.

Referenced by ParseVDR().

Initial value:
{
   { "a",    kBandwidthAuto },
   { "8",    kBandwidth8MHz },
   { "7",    kBandwidth7MHz },
   { "6",    kBandwidth6MHz },
   { NULL,   kBandwidthAuto },
}

Definition at line 198 of file dtvconfparserhelpers.h.

Referenced by Parse().

const uint DTVBandwidth::kDBStrCnt = 4 [static, protected]

Definition at line 199 of file dtvconfparserhelpers.h.

Referenced by toString().

const char * DTVBandwidth::dbStr [static, protected]
Initial value:
{
    "8",   
    "7",   
    "6",   
    "a"    
}

Definition at line 200 of file dtvconfparserhelpers.h.

Referenced by toString().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends