32#ifndef DTVCONFPARSERHELPERS_H
33#define DTVCONFPARSERHELPERS_H
35#include "libmythbase/mythconfig.h"
40#include <linux/dvb/frontend.h>
69 static bool ParseParam(
const QString &symbol,
int &value,
161 static QString
toString(
int _value);
183 "Inversion types don't match DVB includes.");
189 {
m_value = _value;
return *
this; }
246 "Bandwidth types don't match DVB includes.");
252 {
m_value = _value;
return *
this; }
255 {
m_value = bwidth;
return *
this; }
319 "FEC types don't match DVB includes.");
325 {
m_value = _value;
return *
this; }
328 {
m_value = rate;
return *
this; }
390 "Modulation types don't match DVB includes.");
396 {
m_value = _value;
return *
this; }
399 {
m_value = modulation;
return *
this; }
453 "Transmission types don't match DVB includes.");
459 {
m_value = _value;
return *
this; }
462 {
m_value = mode;
return *
this; }
518 "Guard Interval types don't match DVB includes.");
524 {
m_value = _value;
return *
this; }
527 {
m_value = interval;
return *
this; }
571 "Hierarchy types don't match DVB includes.");
577 {
m_value = _value;
return *
this; }
580 {
m_value = hierarchy;
return *
this; }
625 {
m_value = _value;
return *
this; }
698 "Modulation System types don't match DVB includes.");
705 {
m_value = _value;
return *
this; }
746 "Rolloff types don't match DVB includes.");
752 {
m_value = _value;
return *
this; }
static const DTVParamHelperVec kConfTable
static const DTVParamHelperVec kVdrTable
static const DTVParamStringVec kParseStrings
kBandwidth8MHz
DTVBandwidth & operator=(const Types _value)
static const DTVParamHelperVec kParseTable
static QString toString(int _value)
bool Parse(const QString &_value)
DTVBandwidth(Types _default=kBandwidthAuto)
bool ParseConf(const QString &_value)
bool ParseVDR(const QString &_value)
bool IsCompatible(const DTVBandwidth other) const
static const DTVParamStringVec kParseStrings
kFECNone
bool ParseConf(const QString &_value)
bool IsCompatible(const DTVCodeRate other) const
DTVCodeRate(Types _default=kFECAuto)
static QString toString(int _value)
DTVCodeRate & operator=(const Types _value)
static const DTVParamHelperVec kConfTable
static const DTVParamHelperVec kParseTable
bool Parse(const QString &_value)
bool ParseVDR(const QString &_value)
static const DTVParamHelperVec kVdrTable
bool Parse(const QString &_value)
bool ParseVDR(const QString &_value)
DTVGuardInterval(Types _default=kGuardIntervalAuto)
static const DTVParamStringVec kParseStrings
kGuardInterval_1_32
static const DTVParamHelperVec kParseTable
bool IsCompatible(const DTVGuardInterval other) const
static QString toString(int _value)
DTVGuardInterval & operator=(const Types _value)
static const DTVParamHelperVec kVdrTable
bool ParseConf(const QString &_value)
static const DTVParamHelperVec kConfTable
DTVHierarchy(Types _default=kHierarchyAuto)
static const DTVParamHelperVec kParseTable
bool ParseConf(const QString &_value)
bool ParseVDR(const QString &_value)
static const DTVParamStringVec kParseStrings
kHierarchyNone
static const DTVParamHelperVec kConfTable
static QString toString(int _value)
DTVHierarchy & operator=(const Types _value)
bool Parse(const QString &_value)
static const DTVParamHelperVec kVdrTable
bool IsCompatible(const DTVHierarchy other) const
static const DTVParamHelperVec kConfTable
DTVInversion(Types _default=kInversionAuto)
static const DTVParamHelperVec kVdrTable
static const DTVParamStringVec kParseStrings
kInversionOff
bool IsCompatible(const DTVInversion other) const
bool ParseVDR(const QString &_value)
bool ParseConf(const QString &_value)
static QString toString(int _value)
static const DTVParamHelperVec kParseTable
bool Parse(const QString &_value)
DTVInversion & operator=(const Types _value)
static const DTVParamHelperVec kConfTable
DTVModulationSystem(uint8_t _value=kModulationSystem_UNDEFINED)
bool IsCompatible(const DTVModulationSystem other) const
static QString toString(int _value)
@ kModulationSystem_DVBS2
@ kModulationSystem_DVBT2
@ kModulationSystem_ISDBS
@ kModulationSystem_ISDBT
@ kModulationSystem_ISDBC
@ kModulationSystem_DVBC_ANNEX_A
@ kModulationSystem_UNDEFINED
@ kModulationSystem_DVBC_ANNEX_C
@ kModulationSystem_TURBO
@ kModulationSystem_ATSCMH
@ kModulationSystem_DVBC_ANNEX_B
DTVModulationSystem & operator=(uint8_t _value)
static const DTVParamHelperVec kVdrTable
bool ParseConf(const QString &_value)
static const DTVParamHelperVec kParseTable
bool Parse(const QString &_value)
bool ParseVDR(const QString &_value)
static const DTVParamStringVec kParseStrings
kModulationSystem_UNDEFINED
DTVModulation(Types _default=kModulationQAMAuto)
static const DTVParamHelperVec kVdrTable
static const DTVParamHelperVec kConfTable
DTVModulation & operator=(const Types _value)
bool ParseVDR(const QString &_value)
static const DTVParamHelperVec kParseTable
bool ParseConf(const QString &_value)
static QString toString(int _value)
static const DTVParamStringVec kParseStrings
kModulationQPSK,
bool Parse(const QString &_value)
bool IsCompatible(const DTVModulation other) const
Helper abstract template to do some of the mundane portions of translating and comparing the paramete...
bool operator!=(const int v) const
DTVParamHelper(int _value)
DTVParamHelper & operator=(int _value)
static bool ParseParam(const QString &symbol, int &value, const DTVParamHelperVec &table)
static QString toString(const DTVParamStringVec &strings, int index)
bool operator==(const int v) const
DTVPolarity(PolarityValues _default=kPolarityVertical)
bool ParseConf(const QString &_value)
bool Parse(const QString &_value)
static const DTVParamHelperVec kParseTable
static QString toString(int _value)
DTVPolarity & operator=(const PolarityValues _value)
bool ParseVDR(const QString &_value)
static const DTVParamStringVec kParseStrings
kPolarityVertical
bool ParseConf(const QString &_value)
bool Parse(const QString &_value)
static const DTVParamHelperVec kParseTable
DTVRollOff(Types _default=kRollOff_35)
static QString toString(int _value)
bool IsCompatible(const DTVRollOff other) const
static const DTVParamHelperVec kVdrTable
DTVRollOff & operator=(const Types _value)
static const DTVParamStringVec kParseStrings
kRollOff_35
static const DTVParamHelperVec kConfTable
bool ParseVDR(const QString &_value)
static const DTVParamHelperVec kVdrTable
static const DTVParamHelperVec kConfTable
bool ParseVDR(const QString &_value)
static QString toString(int _value)
bool Parse(const QString &_value)
DTVTransmitMode & operator=(const Types _value)
bool IsCompatible(const DTVTransmitMode other) const
bool ParseConf(const QString &_value)
static const DTVParamStringVec kParseStrings
kTransmissionMode2K
static const DTVParamHelperVec kParseTable
DTVTransmitMode(Types _default=kTransmissionModeAuto)
bool Parse(const QString &_value)
bool IsFECVariable(void) const
bool IsDiSEqCSupported(void) const
static const int kTunerTypeOCUR
static const int kTunerTypeASI
static const int kTunerTypeDVBS2
DTVTunerType(int _default=kTunerTypeUnknown)
static const int kTunerTypeDVBT
static const int kTunerTypeUnknown
static void initStr(void)
static const int kTunerTypeDVBC
bool IsModulationVariable(void) const
DTVTunerType & operator=(int type)
static const int kTunerTypeDVBS1
static const int kTunerTypeDVBT2
static const int kTunerTypeATSC
static const DTVParamHelperVec kParseTable
static const int kTunerTypeIPTV
std::vector< DTVParamHelperStruct > DTVParamHelperVec
std::vector< std::string > DTVParamStringVec