Go to the documentation of this file.
32 #ifndef DTVCONFPARSERHELPERS_H
33 #define DTVCONFPARSERHELPERS_H
38 #include <linux/dvb/frontend.h>
67 static bool ParseParam(
const QString &symbol,
int &value,
159 static QString
toString(
int _value);
181 "Inversion types don't match DVB includes.");
187 {
m_value = _value;
return *
this; }
244 "Bandwidth types don't match DVB includes.");
250 {
m_value = _value;
return *
this; }
253 {
m_value = bwidth;
return *
this; }
317 "FEC types don't match DVB includes.");
323 {
m_value = _value;
return *
this; }
326 {
m_value = rate;
return *
this; }
388 "Modulation types don't match DVB includes.");
394 {
m_value = _value;
return *
this; }
397 {
m_value = modulation;
return *
this; }
451 "Transmission types don't match DVB includes.");
457 {
m_value = _value;
return *
this; }
460 {
m_value = mode;
return *
this; }
516 "Guard Interval types don't match DVB includes.");
522 {
m_value = _value;
return *
this; }
525 {
m_value = interval;
return *
this; }
569 "Hierarchy types don't match DVB includes.");
575 {
m_value = _value;
return *
this; }
578 {
m_value = hierarchy;
return *
this; }
623 {
m_value = _value;
return *
this; }
696 "Modulation System types don't match DVB includes.");
703 {
m_value = _value;
return *
this; }
744 "Rolloff types don't match DVB includes.");
750 {
m_value = _value;
return *
this; }
774 #endif // DTVCONFPARSERHELPERS_H
static void initStr(void)
bool ParseVDR(const QString &_value)
@ kModulationSystem_DVBC_ANNEX_B
DTVModulation & operator=(const fe_modulation_t modulation)
static const DTVParamHelperVec kConfTable
bool IsCompatible(const DTVHierarchy other) const
static QString toString(int _value)
DTVTunerType(int _default=kTunerTypeUnknown)
bool ParseVDR(const QString &_value)
DTVGuardInterval(Types _default=kGuardIntervalAuto)
DTVModulation(Types _default=kModulationQAMAuto)
static const int kTunerTypeDVBC
static const int kTunerTypeIPTV
bool operator==(const int v) const
DTVGuardInterval & operator=(const fe_guard_interval_t interval)
static const DTVParamHelperVec kVdrTable
@ kModulationSystem_ATSCMH
static const DTVParamStringVec kParseStrings
kFECNone
static const DTVParamHelperVec kConfTable
Helper abstract template to do some of the mundane portions of translating and comparing the paramete...
std::vector< DTVParamHelperStruct > DTVParamHelperVec
static const DTVParamHelperVec kParseTable
bool ParseVDR(const QString &_value)
static const DTVParamHelperVec kVdrTable
bool Parse(const QString &_value)
bool ParseConf(const QString &_value)
static const DTVParamStringVec kParseStrings
kModulationSystem_UNDEFINED
@ kModulationSystem_DVBS2
static const DTVParamHelperVec kParseTable
static const int kTunerTypeDVBS1
bool Parse(const QString &_value)
DTVRollOff(Types _default=kRollOff_35)
DTVBandwidth & operator=(const fe_bandwidth_t bwidth)
DTVModulationSystem & operator=(uint8_t _value)
bool IsCompatible(const DTVTransmitMode other) const
DTVGuardInterval & operator=(const Types _value)
bool Parse(const QString &_value)
static const DTVParamHelperVec kVdrTable
static const DTVParamHelperVec kParseTable
static const DTVParamStringVec kParseStrings
kModulationQPSK,
DTVInversion & operator=(const Types _value)
DTVHierarchy(Types _default=kHierarchyAuto)
bool ParseVDR(const QString &_value)
bool operator!=(const int v) const
static QString toString(int _value)
std::vector< std::string > DTVParamStringVec
DTVParamHelper(int _value)
bool ParseConf(const QString &_value)
bool IsCompatible(const DTVGuardInterval other) const
static const DTVParamHelperVec kConfTable
DTVCodeRate & operator=(const fe_code_rate_t rate)
bool Parse(const QString &_value)
static const DTVParamStringVec kParseStrings
kRollOff_35
DTVPolarity & operator=(const PolarityValues _value)
bool Parse(const QString &_value)
static const DTVParamHelperVec kConfTable
static const DTVParamStringVec kParseStrings
kHierarchyNone
static const DTVParamHelperVec kVdrTable
@ kModulationSystem_UNDEFINED
DTVBandwidth & operator=(const Types _value)
DTVCodeRate & operator=(const Types _value)
DTVTransmitMode(Types _default=kTransmissionModeAuto)
static QString toString(int _value)
DTVHierarchy & operator=(const Types _value)
@ kModulationSystem_ISDBT
static const int kTunerTypeUnknown
bool ParseVDR(const QString &_value)
static QString toString(int _value)
DTVRollOff & operator=(const Types _value)
bool IsModulationVariable(void) const
bool ParseConf(const QString &_value)
bool ParseConf(const QString &_value)
static const DTVParamHelperVec kVdrTable
DTVTunerType & operator=(int type)
static const DTVParamHelperVec kConfTable
bool IsCompatible(const DTVModulationSystem other) const
DTVModulation & operator=(const Types _value)
bool ParseConf(const QString &_value)
bool ParseVDR(const QString &_value)
static QString toString(int _value)
static const DTVParamHelperVec kParseTable
static QString toString(int _value)
bool IsCompatible(const DTVCodeRate other) const
static const DTVParamHelperVec kParseTable
DTVCodeRate(Types _default=kFECAuto)
bool ParseVDR(const QString &_value)
DTVTransmitMode & operator=(const fe_transmit_mode_t mode)
DTVModulationSystem(uint8_t _value=kModulationSystem_UNDEFINED)
static const DTVParamHelperVec kParseTable
static QString toString(int _value)
static const DTVParamHelperVec kVdrTable
static const DTVParamHelperVec kVdrTable
static QString toString(int _value)
static const DTVParamHelperVec kParseTable
@ kModulationSystem_ISDBS
static const DTVParamHelperVec kParseTable
bool IsFECVariable(void) const
bool Parse(const QString &_value)
static const int kTunerTypeDVBS2
bool ParseVDR(const QString &_value)
bool ParseVDR(const QString &_value)
static QString toString(int _value)
static QString toString(const DTVParamStringVec &strings, int index)
bool Parse(const QString &_value)
bool ParseVDR(const QString &_value)
DTVInversion & operator=(const fe_spectral_inversion_t type)
static const DTVParamStringVec kParseStrings
kPolarityVertical
static const DTVParamStringVec kParseStrings
kGuardInterval_1_32
static const DTVParamHelperVec kParseTable
static const DTVParamHelperVec kParseTable
static const DTVParamStringVec kParseStrings
kTransmissionMode2K
bool IsDiSEqCSupported(void) const
static const int kTunerTypeOCUR
bool Parse(const QString &_value)
@ kModulationSystem_DVBT2
@ kModulationSystem_DVBC_ANNEX_A
bool ParseConf(const QString &_value)
DTVPolarity(PolarityValues _default=kPolarityVertical)
bool IsCompatible(const DTVModulation other) const
bool Parse(const QString &_value)
DTVRollOff & operator=(fe_rolloff_t type)
static const int kTunerTypeASI
static const int kTunerTypeATSC
DTVParamHelper & operator=(int _value)
static const DTVParamHelperVec kConfTable
@ kModulationSystem_TURBO
bool ParseConf(const QString &_value)
static const DTVParamHelperVec kConfTable
bool ParseConf(const QString &_value)
static const DTVParamStringVec kParseStrings
kBandwidth8MHz
static const int kTunerTypeDVBT
DTVHierarchy & operator=(const fe_hierarchy_t hierarchy)
static const DTVParamHelperVec kConfTable
static const DTVParamHelperVec kConfTable
static const DTVParamStringVec kParseStrings
kInversionOff
DTVTransmitMode & operator=(const Types _value)
bool ParseConf(const QString &_value)
static const int kTunerTypeDVBT2
DTVInversion(Types _default=kInversionAuto)
DTVBandwidth(Types _default=kBandwidthAuto)
bool IsCompatible(const DTVInversion other) const
static const DTVParamHelperVec kVdrTable
bool Parse(const QString &_value)
static QString toString(int _value)
static bool ParseParam(const QString &symbol, int &value, const DTVParamHelperVec &table)
bool IsCompatible(const DTVBandwidth other) const
static const DTVParamHelperVec kVdrTable
@ kModulationSystem_DVBC_ANNEX_C
bool IsCompatible(const DTVRollOff other) const
bool Parse(const QString &_value)
@ kModulationSystem_ISDBC
bool ParseConf(const QString &_value)
static const DTVParamHelperVec kParseTable