MythTV  master
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ChannelScannerWeb Class Reference

#include <libmythtv/channelscan/channelscanner_web.h>

Inheritance diagram for ChannelScannerWeb:
[legend]
Collaboration diagram for ChannelScannerWeb:
[legend]

Public Member Functions

 ~ChannelScannerWeb () override=default
 
void HandleEvent (const ScannerEvent *scanEvent) override
 
void ResetStatus ()
 
void setupScan (int CardId)
 
void stopScan ()
 
void stopMon (void)
 
void log (const QString &msg)
 
bool StartScan (uint CardId, const QString &DesiredServices, bool FreeToAirOnly, bool ChannelNumbersOnly, bool CompleteChannelsOnly, bool FullChannelSearch, bool RemoveDuplicates, bool AddFullTS, bool TestDecryptable, const QString &ScanType, const QString &FreqTable, QString Modulation, const QString &FirstChan, const QString &LastChan, uint ScanId, bool IgnoreSignalTimeout, bool FollowNITSetting, uint MplexId, const QString &Frequency, const QString &Bandwidth, const QString &Polarity, const QString &SymbolRate, const QString &Inversion, const QString &Constellation, const QString &ModSys, const QString &CodeRate_LP, const QString &CodeRate_HP, const QString &FEC, const QString &Trans_Mode, const QString &Guard_Interval, const QString &Hierarchy, const QString &RollOff)
 
- Public Member Functions inherited from ChannelScanner
 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, CardUtil::INPUT_TYPES 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)
 

Static Public Member Functions

static ChannelScannerWebgetInstance ()
 

Public Attributes

QMutex m_mutex
 
QWaitCondition m_waitCondition
 
uint m_cardid {0}
 
QString m_status {"IDLE"}
 
bool m_statusLock {false}
 
uint m_statusProgress {0}
 
int m_statusSnr {0}
 
QString m_statusText
 
QString m_statusLog
 
QString m_statusTitleText
 
int m_statusRotorPosition {0}
 
int m_statusSignalStrength {0}
 
QString m_dlgMsg
 
QStringList m_dlgButtons
 
bool m_dlgInputReq {false}
 
int m_dlgButton {-1}
 
QString m_dlgString
 
bool m_showSignalLock {false}
 
bool m_showSignalStrength {false}
 
bool m_showSignalNoise {false}
 
bool m_showRotorPos {false}
 
MThreadm_monitorThread {nullptr}
 

Protected Member Functions

void InformUser (const QString &error) override
 
void Process (const ScanDTVTransportList &_transports, bool success=false)
 
void MonitorProgress (bool lock, bool strength, bool snr, bool rotor) override
 
- Protected Member Functions inherited from ChannelScanner
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)
 

Private Member Functions

 ChannelScannerWeb (void)=default
 

Private Attributes

int m_runType {0}
 
bool m_onlysavescan {false}
 
bool m_interactive {false}
 
ScanDTVTransportList m_transports
 
int m_scantype {-1}
 
int m_scanId {0}
 

Static Private Attributes

static ChannelScannerWebs_Instance = nullptr
 

Additional Inherited Members

- Protected Attributes inherited from ChannelScanner
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...
 

Detailed Description

Definition at line 46 of file channelscanner_web.h.

Constructor & Destructor Documentation

◆ ChannelScannerWeb()

ChannelScannerWeb::ChannelScannerWeb ( void  )
privatedefault

Referenced by getInstance().

◆ ~ChannelScannerWeb()

ChannelScannerWeb::~ChannelScannerWeb ( )
overridedefault

Member Function Documentation

◆ HandleEvent()

void ChannelScannerWeb::HandleEvent ( const ScannerEvent scanEvent)
overridevirtual

Implements ChannelScanner.

Definition at line 457 of file channelscanner_web.cpp.

◆ getInstance()

ChannelScannerWeb * ChannelScannerWeb::getInstance ( )
static

◆ ResetStatus()

void ChannelScannerWeb::ResetStatus ( )

Definition at line 389 of file channelscanner_web.cpp.

Referenced by setupScan(), and StartScan().

◆ setupScan()

void ChannelScannerWeb::setupScan ( int  CardId)

Definition at line 415 of file channelscanner_web.cpp.

Referenced by StartScan().

◆ stopScan()

void ChannelScannerWeb::stopScan ( )

Definition at line 428 of file channelscanner_web.cpp.

Referenced by V2Channel::StopScan().

◆ stopMon()

void ChannelScannerWeb::stopMon ( void  )

Definition at line 438 of file channelscanner_web.cpp.

Referenced by HandleEvent(), and setupScan().

◆ log()

void ChannelScannerWeb::log ( const QString &  msg)

◆ StartScan()

bool ChannelScannerWeb::StartScan ( uint  CardId,
const QString &  DesiredServices,
bool  FreeToAirOnly,
bool  ChannelNumbersOnly,
bool  CompleteChannelsOnly,
bool  FullChannelSearch,
bool  RemoveDuplicates,
bool  AddFullTS,
bool  TestDecryptable,
const QString &  ScanType,
const QString &  FreqTable,
QString  Modulation,
const QString &  FirstChan,
const QString &  LastChan,
uint  ScanId,
bool  IgnoreSignalTimeout,
bool  FollowNITSetting,
uint  MplexId,
const QString &  Frequency,
const QString &  Bandwidth,
const QString &  Polarity,
const QString &  SymbolRate,
const QString &  Inversion,
const QString &  Constellation,
const QString &  ModSys,
const QString &  CodeRate_LP,
const QString &  CodeRate_HP,
const QString &  FEC,
const QString &  Trans_Mode,
const QString &  Guard_Interval,
const QString &  Hierarchy,
const QString &  RollOff 
)

Definition at line 56 of file channelscanner_web.cpp.

Referenced by V2Channel::StartScan().

◆ InformUser()

void ChannelScannerWeb::InformUser ( const QString &  error)
overrideprotectedvirtual

Implements ChannelScanner.

Definition at line 579 of file channelscanner_web.cpp.

◆ Process()

void ChannelScannerWeb::Process ( const ScanDTVTransportList _transports,
bool  success = false 
)
protected

Definition at line 593 of file channelscanner_web.cpp.

Referenced by HandleEvent().

◆ MonitorProgress()

void ChannelScannerWeb::MonitorProgress ( bool  lock,
bool  strength,
bool  snr,
bool  rotor 
)
overrideprotectedvirtual

Reimplemented from ChannelScanner.

Definition at line 602 of file channelscanner_web.cpp.

Member Data Documentation

◆ s_Instance

ChannelScannerWeb * ChannelScannerWeb::s_Instance = nullptr
staticprivate

Definition at line 100 of file channelscanner_web.h.

Referenced by getInstance().

◆ m_runType

int ChannelScannerWeb::m_runType {0}
private

Definition at line 101 of file channelscanner_web.h.

Referenced by ResetStatus().

◆ m_onlysavescan

bool ChannelScannerWeb::m_onlysavescan {false}
private

Definition at line 102 of file channelscanner_web.h.

Referenced by ResetStatus().

◆ m_interactive

bool ChannelScannerWeb::m_interactive {false}
private

Definition at line 103 of file channelscanner_web.h.

Referenced by ResetStatus().

◆ m_transports

ScanDTVTransportList ChannelScannerWeb::m_transports
private

Definition at line 104 of file channelscanner_web.h.

Referenced by HandleEvent().

◆ m_scantype

int ChannelScannerWeb::m_scantype {-1}
private

Definition at line 105 of file channelscanner_web.h.

Referenced by HandleEvent(), and StartScan().

◆ m_scanId

int ChannelScannerWeb::m_scanId {0}
private

Definition at line 106 of file channelscanner_web.h.

Referenced by HandleEvent(), and StartScan().

◆ m_mutex

QMutex ChannelScannerWeb::m_mutex

◆ m_waitCondition

QWaitCondition ChannelScannerWeb::m_waitCondition

◆ m_cardid

uint ChannelScannerWeb::m_cardid {0}

◆ m_status

QString ChannelScannerWeb::m_status {"IDLE"}

◆ m_statusLock

bool ChannelScannerWeb::m_statusLock {false}

Definition at line 115 of file channelscanner_web.h.

Referenced by V2Channel::GetScanStatus(), HandleEvent(), and ResetStatus().

◆ m_statusProgress

uint ChannelScannerWeb::m_statusProgress {0}

Definition at line 116 of file channelscanner_web.h.

Referenced by V2Channel::GetScanStatus(), HandleEvent(), and ResetStatus().

◆ m_statusSnr

int ChannelScannerWeb::m_statusSnr {0}

Definition at line 117 of file channelscanner_web.h.

Referenced by V2Channel::GetScanStatus(), HandleEvent(), and ResetStatus().

◆ m_statusText

QString ChannelScannerWeb::m_statusText

Definition at line 118 of file channelscanner_web.h.

Referenced by V2Channel::GetScanStatus(), HandleEvent(), and ResetStatus().

◆ m_statusLog

QString ChannelScannerWeb::m_statusLog

Definition at line 119 of file channelscanner_web.h.

Referenced by V2Channel::GetScanStatus(), InformUser(), log(), and ResetStatus().

◆ m_statusTitleText

QString ChannelScannerWeb::m_statusTitleText

Definition at line 120 of file channelscanner_web.h.

Referenced by V2Channel::GetScanStatus(), HandleEvent(), and ResetStatus().

◆ m_statusRotorPosition

int ChannelScannerWeb::m_statusRotorPosition {0}

Definition at line 121 of file channelscanner_web.h.

Referenced by HandleEvent(), and ResetStatus().

◆ m_statusSignalStrength

int ChannelScannerWeb::m_statusSignalStrength {0}

Definition at line 122 of file channelscanner_web.h.

Referenced by V2Channel::GetScanStatus(), HandleEvent(), and ResetStatus().

◆ m_dlgMsg

QString ChannelScannerWeb::m_dlgMsg

◆ m_dlgButtons

QStringList ChannelScannerWeb::m_dlgButtons

◆ m_dlgInputReq

bool ChannelScannerWeb::m_dlgInputReq {false}

◆ m_dlgButton

int ChannelScannerWeb::m_dlgButton {-1}

◆ m_dlgString

QString ChannelScannerWeb::m_dlgString

◆ m_showSignalLock

bool ChannelScannerWeb::m_showSignalLock {false}

Definition at line 130 of file channelscanner_web.h.

Referenced by MonitorProgress(), and ResetStatus().

◆ m_showSignalStrength

bool ChannelScannerWeb::m_showSignalStrength {false}

Definition at line 131 of file channelscanner_web.h.

Referenced by MonitorProgress(), and ResetStatus().

◆ m_showSignalNoise

bool ChannelScannerWeb::m_showSignalNoise {false}

Definition at line 132 of file channelscanner_web.h.

Referenced by MonitorProgress(), and ResetStatus().

◆ m_showRotorPos

bool ChannelScannerWeb::m_showRotorPos {false}

Definition at line 133 of file channelscanner_web.h.

Referenced by MonitorProgress(), and ResetStatus().

◆ m_monitorThread

MThread* ChannelScannerWeb::m_monitorThread {nullptr}

Definition at line 135 of file channelscanner_web.h.

Referenced by setupScan(), and stopMon().


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