Go to the documentation of this file.
44 uint default_sourceid,
uint default_cardid,
45 const QString& default_inputname)
142 uint scanfrequency = 0;
147 "SELECT scanfrequency, freqtable "
149 "WHERE videosource.sourceid = :SOURCEID ;");
158 scanfrequency = query.
value(0).toUInt();
159 freqtable = query.
value(1).toString();
160 LOG(VB_CHANSCAN, LOG_DEBUG,
161 QString(
"SetPaneDefaults cardid_inputname:%1 sourceid:%2 scanfrequency:%3 freqtable:%4")
162 .arg(cardid_inputname).arg(sourceid).arg(scanfrequency).arg(freqtable));
168 if (freqtable ==
"default")
173 table = (freqtable ==
"us-bcast" ) ?
"us" : table;
174 table = (freqtable ==
"us-cable" ) ?
"uscable" : table;
175 table = (freqtable ==
"us-cable-hrc") ?
"ushrc" : table;
176 table = (freqtable ==
"us-cable-irc") ?
"usirc" : table;
177 if (!table.isEmpty())
179 LOG(VB_CHANSCAN, LOG_DEBUG,
180 QString(
"SetPaneDefaults ATSC frequency table:'%1'").arg(table));
186 if (scanfrequency == 0)
194 LOG(VB_CHANSCAN, LOG_DEBUG,
195 QString(
"SetPaneDefaults sourceid:%1 frequency:%2 mplexid:%3")
196 .arg(sourceid).arg(scanfrequency).arg(mplexid));
205 LOG(VB_CHANSCAN, LOG_DEBUG,
206 QString(
"SetPaneDefaults sourceid:%1 frequency:%2 mplexid:%3 tuner_type:%4 mpx:%5")
207 .arg(sourceid).arg(scanfrequency).arg(mplexid)
239 #endif // USING_SATIP
241 const QString fullScanHelpTextDVBT2 = QObject::tr(
242 "For DVB-T/T2 and scan type 'Full Scan' select a country to get the correct set of frequencies.");
379 m_scanType(_scan_type),
398 new PaneError(tr(
"Failed to open the card")));
400 new PaneError(tr(
"Failed to probe the card")));
480 QString &start, QString &end)
const
531 return (mplexid <= 0) ? 0 : mplexid;
541 QMap<QString,QString> startChan;
548 startChan[
"std"] =
"dvb";
549 startChan[
"type"] =
"OFDM";
550 startChan[
"frequency"] = pane->
frequency();
551 startChan[
"inversion"] = pane->
inversion();
552 startChan[
"bandwidth"] = pane->
bandwidth();
558 startChan[
"hierarchy"] = pane->
hierarchy();
564 startChan[
"std"] =
"dvb";
565 startChan[
"type"] =
"DVB_T2";
566 startChan[
"frequency"] = pane->
frequency();
567 startChan[
"inversion"] = pane->
inversion();
568 startChan[
"bandwidth"] = pane->
bandwidth();
574 startChan[
"hierarchy"] = pane->
hierarchy();
575 startChan[
"mod_sys"] = pane->
modsys();
581 startChan[
"std"] =
"dvb";
582 startChan[
"type"] =
"QPSK";
583 startChan[
"modulation"] =
"qpsk";
584 startChan[
"frequency"] = pane->
frequency();
585 startChan[
"inversion"] = pane->
inversion();
587 startChan[
"fec"] = pane->
fec();
588 startChan[
"polarity"] = pane->
polarity();
594 startChan[
"std"] =
"dvb";
595 startChan[
"type"] =
"QAM";
596 startChan[
"frequency"] = pane->
frequency();
599 startChan[
"mod_sys"] = pane->
modsys();
600 startChan[
"inversion"] = pane->
inversion();
601 startChan[
"fec"] = pane->
fec();
607 startChan[
"std"] =
"dvb";
608 startChan[
"type"] =
"DVB_S2";
609 startChan[
"frequency"] = pane->
frequency();
610 startChan[
"inversion"] = pane->
inversion();
612 startChan[
"fec"] = pane->
fec();
614 startChan[
"polarity"] = pane->
polarity();
615 startChan[
"mod_sys"] = pane->
modsys();
616 startChan[
"rolloff"] = pane->
rolloff();
QString rolloff(void) const
static bool HDHRdoesDVBC(const QString &device)
If the device is valid, check if the model does DVB-C.
void SetFrequencyTable(const QString &atsc_table)
bool isActive(void) const
static QString GetScanableInputTypes(void)
bool next(void)
Wrap QSqlQuery::next() so we can display the query results.
QSqlQuery wrapper that fetches a DB connection from the connection pool.
bool DoRemoveDuplicates(void) const
QString inversion(void) const
QString GetModulation(void) const
TrustEncSISetting * m_trustEncSI
QString modsys(void) const
void setRolloff(const QString &rolloff)
void setTransmode(const QString &trans_mode)
void setSymbolrate(const QString &symbolrate)
int GetMultiplex(void) const
bool ignoreSignalTimeout(void) const
QString bandwidth(void) const
QString guard_interval(void) const
bool DoIgnoreSignalTimeout(void) const
PaneSingle * m_paneSingle
QString coderate_hp(void) const
bool DoIgnoreSignalTimeout(void) const
QString guard_interval(void) const
void setHierarchy(const QString &hierarchy)
QVariant value(int i) const
bool GetFollowNIT(void) const
QString trans_mode(void) const
QString frequency(void) const
bool exec(void)
Wrap QSqlQuery::exec() so we can display SQL.
void SetSourceID(const QString &sourceid)
void setBandwidth(const QString &bandwidth)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
void addTargetedChild(const QString &value, StandardSetting *setting)
void SetTuningPaneValuesATSC(const QString &freqtable)
ChannelNumbersOnly * m_lcnOnly
void setSymbolrate(const QString &symbolrate)
static uint GetMplexID(uint sourceid, const QString &channum)
void setCodeRateLP(const QString &coderate_lp)
QString inversion(void) const
void setInversion(const QString &inversion)
bool ignoreSignalTimeout(void) const
QString getModulation(const QString &satname)
virtual bool FillFromDB(DTVTunerType type, uint mplexid)
QString polarity(void) const
FreeToAirOnly * m_ftaOnly
void setFec(const QString &fec)
static QString ProbeSubTypeName(uint inputid)
QString GetFrequencyTable(void) const
QString inversion(void) const
bool DoChannelNumbersOnly(void) const
void setPolarity(const QString &polarity)
QString coderate_lp(void) const
QString modsys(void) const
void setPolarity(const QString &polarity)
QString GetFrequencyTable(void) const
ScanOptionalConfig(ScanTypeSetting *_scan_type)
virtual void addChild(StandardSetting *child)
void SetTuningPaneValues(uint frequency, const DTVMultiplex &mpx)
void setGuardInterval(const QString &guard_interval)
void setSymbolrate(const QString &symbolrate)
void setFec(const QString &fec)
void setTransmode(const QString &trans_mode)
void setGuardInterval(const QString &guard_interval)
void setFec(const QString &fec)
void SetPaneDefaults(const QString &cardid_inputname)
QString symbolrate(void) const
FullChannelSearch * m_fullSearch
QString constellation(void) const
void setModulation(const QString &modulation)
void setConstellation(const QString &constellation)
bool DoAddFullTS(void) const
void setInversion(const QString &inversion)
QString getFrequency(const QString &satname)
DTVGuardInterval m_guardInterval
QString getFec(const QString &satname)
ScanCountry * m_dvbTCountry
static MSqlQueryInfo InitCon(ConnectionReuse _reuse=kNormalConnection)
Only use this in combination with MSqlQuery constructor.
static void DBError(const QString &where, const MSqlQuery &query)
void setFrequency(uint frequency)
@ CurrentTransportScan
Scans the transport when there is no tuner (for ASI)
QString coderate_lp(void) const
ScanTypeSetting * m_scanType
ServiceRequirements GetServiceRequirements(void) const
virtual void setHelpText(const QString &str)
void setFrequency(uint frequency)
void SetSourceID(uint sourceid)
void setInversion(const QString &inversion)
static CardUtil::INPUT_TYPES toDVBInputType(const QString &deviceid)
uint GetScanID(void) const
void SetInput(const QString &cardid_inputname)
QString modsys(void) const
ServiceRequirements GetServiceRequirements(void) const
ScanCountry * m_dvbT2Country
void setModulation(const QString &modulation)
void setBandwidth(const QString &bandwidth)
RemoveDuplicates * m_removeDuplicates
ScanOptionalConfig * m_scanConfig
QString GetFrequencyStandard(void) const
DTVModulationSystem m_modSys
void setCodeRateHP(const QString &coderate_hp)
void setModsys(const QString &modsys)
virtual QString getValue(void) const
PaneExistingScanImport * m_paneExistingScanImport
QString frequency(void) const
QString symbolrate(void) const
void SetTuningParameters(StandardSetting *setting)
void setConstellation(const QString &constellation)
bool DoFullChannelSearch(void) const
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
ScanTransponder * m_transponder
QString frequency(void) const
QString modulation(void) const
void setInversion(const QString &inversion)
bool DoFreeToAirOnly(void) const
QString hierarchy(void) const
uint GetSourceID(void) const
QString bandwidth(void) const
QString inversion(void) const
uint GetScanID(void) const
bool GetFrequencyTableRange(QString &start, QString &end) const
void setCodeRateHP(const QString &coderate_hp)
virtual void setLabel(QString str)
void setFrequency(uint frequency)
uint GetMultiplex(void) const
QString getModSys(const QString &satname)
void valueChanged(const QString &newValue)
QString frequency(void) const
static DTVTunerType GetTunerTypeFromMultiplex(uint mplexid)
void setFrequency(uint frequency)
void addSelection(const QString &label, QString value=QString(), bool select=false)
QString getSymbolrate(const QString &satname)
bool DoCompleteChannelsOnly(void) const
CompleteChannelsOnly * m_completeOnly
bool DoFollowNIT(void) const
QString GetFrequencyTable(void) const
void SetSourceID(uint sourceid)
QString hierarchy(void) const
QString inversion(void) const
void setCodeRateLP(const QString &coderate_lp)
void bindValue(const QString &placeholder, const QVariant &val)
Add a single binding.
static bool HDHRdoesDVB(const QString &device)
If the device is valid, check if the model does DVB.
void SetupConfig(uint default_sourceid, uint default_cardid, const QString &default_inputname)
void setInversion(const QString &inversion)
void SetInput(const QString &cardids_inputname)
QString getPolarity(const QString &satname)
QString GetFilename(void) const
void setModSys(const QString &modsys)
QString constellation(void) const
void setHierarchy(const QString &hierarchy)
DesiredServices * m_services
void setVisible(bool visible)
DTVModulation m_modulation
QMap< QString, QString > GetStartChan(void) const
void setModsys(const QString &mod_sys)
QString GetModulation(void) const
PaneAnalog * m_paneAnalog
bool GetFrequencyTableRange(QString &start, QString &end) const
INPUT_TYPES
all the different inputs
VideoSourceSelector * m_videoSource
QString GetFilename(void) const
QString polarity(void) const
bool DoTestDecryption(void) const
PaneDVBUtilsImport * m_paneDVBUtilsImport
QString trans_mode(void) const
QString frequency(void) const
QString coderate_hp(void) const
bool GetFollowNIT(void) const
QString modulation(void) const
DTVTransmitMode m_transMode
void setFrequency(uint frequency)
static QString GetVideoDevice(uint inputid)
ScanTypeSetting * m_scanType
void SetSourceID(uint sourceid)
QString symbolrate(void) const
QString GetSetting(const QString &key, const QString &defaultval="")
bool prepare(const QString &query)
QSqlQuery::prepare() is not thread safe in Qt <= 3.3.2.
static INPUT_TYPES toInputType(const QString &name)