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())
70 QCoreApplication::exit(0);
92 #if 0 // THESE_ARE_CURRENTLY_IGNORED
111 msg = QString(
"%1% S/N %2 %3 : %4 (%5) %6")
123 static QString s_oldMsg;
126 LOG(VB_CHANSCAN, LOG_INFO,
LOC + msg);
132 if (msg.length() > 80)
133 msg = msg.left(77) +
"...";
134 std::cout<<
"\r"<<msg.toLatin1().constData()<<
"\r";
135 std::cout<<std::flush;
143 std::cerr<<
"ERROR: "<<
error.toLatin1().constData()<<std::endl;
164 bool ,
bool ,
bool ,
bool )
167 std::cout<<
"\r0%"<<std::flush;
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)
static const Type kAppendTextToLog
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
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.
static const Type kSetStatusText
static const Type kScanShutdown
static const Type kScanComplete
bool m_freeToAirOnly
Only fta channels desired post scan?
ChannelScanSM * m_sigmonScanner
virtual void Process(const ScanDTVTransportList &_transports)
static const Type kSetStatusRotorPosition
static const Type kSetStatusSignalToNoise
void InformUser(const QString &error) override
bool m_fullSearch
Extended search for old channels post scan?
virtual void Teardown(void)
static const Type kSetStatusSignalLock
std::vector< ScanDTVTransport > ScanDTVTransportList
static const Type kSetStatusSignalStrength
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 const Type kSetStatusTitleText
static const Type kSetPercentComplete
static const Type kScanErrored
static bool VERBOSE_LEVEL_NONE()
chan_info_map_t GetChannelList(transport_scan_items_it_t trans_info, ScannedChannelInfo *scan_info) const
void post_event(QObject *dest, QEvent::Type type, int val)
Percentage to set to after the first tune.
bool m_completeOnly
Only complete channels desired post scan?