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

#include <libmythtv/channelscan/hdhrchannelfetcher.h>

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

Public Member Functions

 HDHRChannelFetcher (uint cardid, QString inputname, uint sourceid, ServiceRequirements serviceType, ScanMonitor *monitor=nullptr)
 
 ~HDHRChannelFetcher () override
 
void Scan (void)
 
void Stop (void)
 Stops the scanning thread running. More...
 
hdhr_chan_map_t GetChannels (void)
 

Protected Member Functions

void run (void) override
 

Private Member Functions

 Q_DECLARE_TR_FUNCTIONS (HDHRChannelFetcher)
 
void SetTotalNumChannels (uint val)
 
void SetNumChannelsInserted (uint val)
 

Private Attributes

ScanMonitorm_scanMonitor {nullptr}
 
uint m_cardId
 
QString m_inputName
 
uint m_sourceId
 
ServiceRequirements m_serviceType
 
hdhr_chan_map_tm_channels {nullptr}
 
uint m_chanCnt {1}
 
bool m_threadRunning {false}
 
bool m_stopNow {false}
 
MThreadm_thread {nullptr}
 
QMutex m_lock
 

Detailed Description

Definition at line 92 of file hdhrchannelfetcher.h.

Constructor & Destructor Documentation

◆ HDHRChannelFetcher()

HDHRChannelFetcher::HDHRChannelFetcher ( uint  cardid,
QString  inputname,
uint  sourceid,
ServiceRequirements  serviceType,
ScanMonitor monitor = nullptr 
)

Definition at line 247 of file hdhrchannelfetcher.cpp.

◆ ~HDHRChannelFetcher()

HDHRChannelFetcher::~HDHRChannelFetcher ( )
override

Definition at line 260 of file hdhrchannelfetcher.cpp.

Member Function Documentation

◆ Q_DECLARE_TR_FUNCTIONS()

HDHRChannelFetcher::Q_DECLARE_TR_FUNCTIONS ( HDHRChannelFetcher  )
private

◆ Scan()

void HDHRChannelFetcher::Scan ( void  )

Definition at line 299 of file hdhrchannelfetcher.cpp.

Referenced by ChannelScanner::ImportHDHR().

◆ Stop()

void HDHRChannelFetcher::Stop ( void  )

Stops the scanning thread running.

Definition at line 272 of file hdhrchannelfetcher.cpp.

Referenced by Scan(), and ~HDHRChannelFetcher().

◆ GetChannels()

hdhr_chan_map_t HDHRChannelFetcher::GetChannels ( void  )

Definition at line 289 of file hdhrchannelfetcher.cpp.

◆ SetTotalNumChannels()

void HDHRChannelFetcher::SetTotalNumChannels ( uint  val)
inlineprivate

Definition at line 106 of file hdhrchannelfetcher.h.

Referenced by run().

◆ SetNumChannelsInserted()

void HDHRChannelFetcher::SetNumChannelsInserted ( uint  val)
private

Definition at line 488 of file hdhrchannelfetcher.cpp.

Referenced by run().

◆ run()

void HDHRChannelFetcher::run ( void  )
overrideprotected

Definition at line 306 of file hdhrchannelfetcher.cpp.

Member Data Documentation

◆ m_scanMonitor

ScanMonitor* HDHRChannelFetcher::m_scanMonitor {nullptr}
private

Definition at line 113 of file hdhrchannelfetcher.h.

Referenced by run(), and SetNumChannelsInserted().

◆ m_cardId

uint HDHRChannelFetcher::m_cardId
private

Definition at line 114 of file hdhrchannelfetcher.h.

Referenced by run().

◆ m_inputName

QString HDHRChannelFetcher::m_inputName
private

Definition at line 115 of file hdhrchannelfetcher.h.

◆ m_sourceId

uint HDHRChannelFetcher::m_sourceId
private

Definition at line 116 of file hdhrchannelfetcher.h.

Referenced by run().

◆ m_serviceType

ServiceRequirements HDHRChannelFetcher::m_serviceType
private

Definition at line 117 of file hdhrchannelfetcher.h.

Referenced by run().

◆ m_channels

hdhr_chan_map_t* HDHRChannelFetcher::m_channels {nullptr}
private

Definition at line 118 of file hdhrchannelfetcher.h.

Referenced by GetChannels(), run(), and ~HDHRChannelFetcher().

◆ m_chanCnt

uint HDHRChannelFetcher::m_chanCnt {1}
private

Definition at line 119 of file hdhrchannelfetcher.h.

Referenced by SetNumChannelsInserted(), and SetTotalNumChannels().

◆ m_threadRunning

bool HDHRChannelFetcher::m_threadRunning {false}
private

Definition at line 120 of file hdhrchannelfetcher.h.

Referenced by run(), and Stop().

◆ m_stopNow

bool HDHRChannelFetcher::m_stopNow {false}
private

Definition at line 121 of file hdhrchannelfetcher.h.

Referenced by run(), Scan(), and Stop().

◆ m_thread

MThread* HDHRChannelFetcher::m_thread {nullptr}
private

Definition at line 122 of file hdhrchannelfetcher.h.

Referenced by GetChannels(), Scan(), Stop(), and ~HDHRChannelFetcher().

◆ m_lock

QMutex HDHRChannelFetcher::m_lock
private

Definition at line 123 of file hdhrchannelfetcher.h.

Referenced by run(), and Stop().


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