Go to the documentation of this file.
27 #include <QCoreApplication>
35 #define LOC QString("ChScanCLI: ")
46 std::cerr<<
"HandleEvent(void) -- scan shutdown"<<std::endl;
48 std::cerr<<
"HandleEvent(void) -- scan complete"<<std::endl;
64 else if (!transports.empty())
68 QCoreApplication::exit(0);
80 #if 0 // THESE_ARE_CURRENTLY_IGNORED
93 msg = QString(
"%1% S/N %2 %3 : %4 (%5) %6")
105 static QString s_oldMsg;
108 LOG(VB_CHANSCAN, LOG_INFO,
LOC + msg);
114 if (msg.length() > 80)
115 msg = msg.left(77) +
"...";
116 std::cout<<
"\r"<<msg.toLatin1().constData()<<
"\r";
117 std::cout<<std::flush;
125 std::cerr<<
"ERROR: "<<
error.toLatin1().constData()<<std::endl;
146 bool ,
bool ,
bool ,
bool )
149 std::cout<<
"\r0%"<<std::flush;
static Type SetPercentComplete
static void error(const char *str,...)
void MonitorProgress(bool lock, bool strength, bool snr, bool rotor) override
static bool VERBOSE_LEVEL_CHECK(uint64_t mask, LogLevel_t level)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
static Type SetStatusText
bool m_removeDuplicates
Remove duplicate transports and channels?
void HandleEvent(const ScannerEvent *scanEvent) override
void Process(const ScanDTVTransportList &_transports, int sourceid=-1)
void StopScanner(void)
Stops the ChannelScanSM event loop and the signal monitor, blocking until both exit.
bool m_freeToAirOnly
Only fta channels desired post scan?
ChannelScanSM * m_sigmonScanner
static Type AppendTextToLog
static Type SetStatusSignalToNoise
virtual void Process(const ScanDTVTransportList &_transports)
void InformUser(const QString &error) override
bool m_fullSearch
Extended search for old channels post scan?
virtual void Teardown(void)
static Type SetStatusSignalLock
std::vector< ScanDTVTransport > ScanDTVTransportList
bool m_channelNumbersOnly
Only channels with logical channel numbers desired post scan?
bool m_addFullTS
Add MPTS "full transport stream" channels.
ServiceRequirements m_serviceRequirements
Services desired post scan.
ScanMonitor * m_scanMonitor
static Type SetStatusRotorPosition
static bool VERBOSE_LEVEL_NONE()
chan_info_map_t GetChannelList(transport_scan_items_it_t trans_info, ScannedChannelInfo *scan_info) const
static Type SetStatusSignalStrength
void post_event(QObject *dest, QEvent::Type type, int val)
Percentage to set to after the first tune.
static Type SetStatusTitleText
bool m_completeOnly
Only complete channels desired post scan?