MythTV  master
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
ChannelScanner Class Referenceabstract

#include <channelscanner.h>

Inheritance diagram for ChannelScanner:
Inheritance graph
[legend]
Collaboration diagram for ChannelScanner:
Collaboration graph
[legend]

Public Member Functions

 ChannelScanner ()=default
 
virtual ~ChannelScanner ()
 
void Scan (int scantype, uint cardid, const QString &inputname, uint sourceid, bool do_ignore_signal_timeout, bool do_follow_nit, bool do_test_decryption, bool do_fta_only, bool do_lcn_only, bool do_complete_only, bool do_full_channel_search, bool do_remove_duplicates, bool do_add_full_ts, ServiceRequirements service_requirements, uint mplexid, const QMap< QString, QString > &startChan, const QString &freq_std, const QString &mod, const QString &tbl, const QString &tbl_start=QString(), const QString &tbl_end=QString())
 
virtual DTVConfParser::return_t ImportDVBUtils (uint sourceid, int cardtype, const QString &file)
 
virtual bool ImportM3U (uint cardid, const QString &inputname, uint sourceid, bool is_mpts)
 
virtual bool ImportVBox (uint cardid, const QString &inputname, uint sourceid, bool ftaOnly, ServiceRequirements serviceType)
 
virtual bool ImportExternRecorder (uint cardid, const QString &inputname, uint sourceid)
 
virtual bool ImportHDHR (uint cardid, const QString &inputname, uint sourceid, ServiceRequirements serviceType)
 

Protected Member Functions

virtual void Teardown (void)
 
virtual void PreScanCommon (int scantype, uint cardid, const QString &inputname, uint sourceid, bool do_ignore_signal_timeout, bool do_test_decryption)
 
virtual void MonitorProgress (bool, bool, bool, bool)
 
virtual void HandleEvent (const ScannerEvent *)=0
 
virtual void InformUser (const QString &)=0
 

Protected Attributes

ScanMonitorm_scanMonitor {nullptr}
 
ChannelBasem_channel {nullptr}
 
ChannelScanSMm_sigmonScanner {nullptr}
 
IPTVChannelFetcherm_iptvScanner {nullptr}
 
DTVChannelList m_channels
 imported channels More...
 
fbox_chan_map_t m_iptvChannels
 
HDHRChannelFetcherm_hdhrScanner {nullptr}
 
bool m_freeToAirOnly {false}
 Only fta channels desired post scan? More...
 
bool m_channelNumbersOnly {false}
 Only channels with logical channel numbers desired post scan? More...
 
bool m_completeOnly {false}
 Only complete channels desired post scan? More...
 
bool m_fullSearch {false}
 Extended search for old channels post scan? More...
 
bool m_removeDuplicates {false}
 Remove duplicate transports and channels? More...
 
bool m_addFullTS {false}
 Add MPTS "full transport stream" channels. More...
 
int m_sourceid {-1}
 
ServiceRequirements m_serviceRequirements {kRequireAV}
 Services desired post scan. More...
 

Friends

class ScanMonitor
 

Detailed Description

Definition at line 66 of file channelscanner.h.

Constructor & Destructor Documentation

◆ ChannelScanner()

ChannelScanner::ChannelScanner ( )
default

◆ ~ChannelScanner()

ChannelScanner::~ChannelScanner ( )
virtual

Definition at line 52 of file channelscanner.cpp.

Member Function Documentation

◆ Scan()

void ChannelScanner::Scan ( int  scantype,
uint  cardid,
const QString &  inputname,
uint  sourceid,
bool  do_ignore_signal_timeout,
bool  do_follow_nit,
bool  do_test_decryption,
bool  do_fta_only,
bool  do_lcn_only,
bool  do_complete_only,
bool  do_full_channel_search,
bool  do_remove_duplicates,
bool  do_add_full_ts,
ServiceRequirements  service_requirements,
uint  mplexid,
const QMap< QString, QString > &  startChan,
const QString &  freq_std,
const QString &  mod,
const QString &  tbl,
const QString &  tbl_start = QString(),
const QString &  tbl_end = QString() 
)

Definition at line 109 of file channelscanner.cpp.

Referenced by main(), ScanWizard::Scan(), and ChannelScannerWeb::StartScan().

◆ ImportDVBUtils()

DTVConfParser::return_t ChannelScanner::ImportDVBUtils ( uint  sourceid,
int  cardtype,
const QString &  file 
)
virtual

Definition at line 293 of file channelscanner.cpp.

Referenced by ScanWizard::Scan().

◆ ImportM3U()

bool ChannelScanner::ImportM3U ( uint  cardid,
const QString &  inputname,
uint  sourceid,
bool  is_mpts 
)
virtual

Definition at line 334 of file channelscanner.cpp.

Referenced by main(), ScanWizard::Scan(), and ChannelScannerWeb::StartScan().

◆ ImportVBox()

bool ChannelScanner::ImportVBox ( uint  cardid,
const QString &  inputname,
uint  sourceid,
bool  ftaOnly,
ServiceRequirements  serviceType 
)
virtual

Definition at line 358 of file channelscanner.cpp.

Referenced by ScanWizard::Scan(), and ChannelScannerWeb::StartScan().

◆ ImportExternRecorder()

bool ChannelScanner::ImportExternRecorder ( uint  cardid,
const QString &  inputname,
uint  sourceid 
)
virtual

Definition at line 382 of file channelscanner.cpp.

Referenced by ScanWizard::Scan(), Scan(), and ChannelScannerWeb::StartScan().

◆ ImportHDHR()

bool ChannelScanner::ImportHDHR ( uint  cardid,
const QString &  inputname,
uint  sourceid,
ServiceRequirements  serviceType 
)
virtual

Definition at line 407 of file channelscanner.cpp.

Referenced by ScanWizard::Scan(), and ChannelScannerWeb::StartScan().

◆ Teardown()

void ChannelScanner::Teardown ( void  )
protectedvirtual

◆ PreScanCommon()

void ChannelScanner::PreScanCommon ( int  scantype,
uint  cardid,
const QString &  inputname,
uint  sourceid,
bool  do_ignore_signal_timeout,
bool  do_test_decryption 
)
protectedvirtual

Definition at line 430 of file channelscanner.cpp.

Referenced by Scan().

◆ MonitorProgress()

virtual void ChannelScanner::MonitorProgress ( bool  ,
bool  ,
bool  ,
bool   
)
inlineprotectedvirtual

◆ HandleEvent()

virtual void ChannelScanner::HandleEvent ( const ScannerEvent )
protectedpure virtual

◆ InformUser()

virtual void ChannelScanner::InformUser ( const QString &  )
protectedpure virtual

Friends And Related Function Documentation

◆ ScanMonitor

friend class ScanMonitor
friend

Member Data Documentation

◆ m_scanMonitor

ScanMonitor* ChannelScanner::m_scanMonitor {nullptr}
protected

◆ m_channel

ChannelBase* ChannelScanner::m_channel {nullptr}
protected

Definition at line 128 of file channelscanner.h.

Referenced by PreScanCommon(), and Teardown().

◆ m_sigmonScanner

ChannelScanSM* ChannelScanner::m_sigmonScanner {nullptr}
protected

◆ m_iptvScanner

IPTVChannelFetcher* ChannelScanner::m_iptvScanner {nullptr}
protected

◆ m_channels

DTVChannelList ChannelScanner::m_channels
protected

imported channels

Definition at line 135 of file channelscanner.h.

Referenced by ImportDVBUtils(), and Scan().

◆ m_iptvChannels

fbox_chan_map_t ChannelScanner::m_iptvChannels
protected

Definition at line 136 of file channelscanner.h.

Referenced by ImportM3U(), and Scan().

◆ m_hdhrScanner

HDHRChannelFetcher* ChannelScanner::m_hdhrScanner {nullptr}
protected

◆ m_freeToAirOnly

bool ChannelScanner::m_freeToAirOnly {false}
protected

◆ m_channelNumbersOnly

bool ChannelScanner::m_channelNumbersOnly {false}
protected

Only channels with logical channel numbers desired post scan?

Definition at line 154 of file channelscanner.h.

Referenced by ChannelScannerWeb::HandleEvent(), ChannelScannerCLI::Process(), ChannelScannerGUI::Process(), ChannelScannerWeb::Process(), Scan(), and ChannelScannerWeb::StartScan().

◆ m_completeOnly

bool ChannelScanner::m_completeOnly {false}
protected

◆ m_fullSearch

bool ChannelScanner::m_fullSearch {false}
protected

◆ m_removeDuplicates

bool ChannelScanner::m_removeDuplicates {false}
protected

◆ m_addFullTS

bool ChannelScanner::m_addFullTS {false}
protected

Add MPTS "full transport stream" channels.

Definition at line 166 of file channelscanner.h.

Referenced by ChannelScannerCLI::HandleEvent(), ChannelScannerWeb::HandleEvent(), ChannelScannerGUI::HandleEvent(), Scan(), and ChannelScannerWeb::StartScan().

◆ m_sourceid

int ChannelScanner::m_sourceid {-1}
protected

◆ m_serviceRequirements

ServiceRequirements ChannelScanner::m_serviceRequirements {kRequireAV}
protected

The documentation for this class was generated from the following files: