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

#include <externrecscanner.h>

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

Public Member Functions

 ExternRecChannelScanner (uint cardid, QString inputname, uint sourceid, ScanMonitor *monitor=nullptr)
 
 ~ExternRecChannelScanner () override
 
void Scan (void)
 Scans the list. More...
 
void Stop (void)
 Stops the scanning thread running. More...
 

Protected Member Functions

void run (void) override
 

Private Member Functions

 Q_DECLARE_TR_FUNCTIONS (ExternRecChannelScanner)
 
void SetNumChannelsParsed (uint val)
 
void SetNumChannelsInserted (uint val)
 
void SetMessage (const QString &status)
 

Private Attributes

ScanMonitorm_scanMonitor {nullptr}
 
uint m_cardId
 
QString m_inputName
 
uint m_sourceId
 
uint m_channelTotal {0}
 
uint m_channelCnt {1}
 
bool m_threadRunning {false}
 
bool m_stopNow {false}
 
MThreadm_thread {nullptr}
 
QMutex m_lock
 

Detailed Description

Definition at line 22 of file externrecscanner.h.

Constructor & Destructor Documentation

◆ ExternRecChannelScanner()

ExternRecChannelScanner::ExternRecChannelScanner ( uint  cardid,
QString  inputname,
uint  sourceid,
ScanMonitor monitor = nullptr 
)

Definition at line 23 of file externrecscanner.cpp.

◆ ~ExternRecChannelScanner()

ExternRecChannelScanner::~ExternRecChannelScanner ( )
override

Definition at line 37 of file externrecscanner.cpp.

Member Function Documentation

◆ Q_DECLARE_TR_FUNCTIONS()

ExternRecChannelScanner::Q_DECLARE_TR_FUNCTIONS ( ExternRecChannelScanner  )
private

◆ Scan()

void ExternRecChannelScanner::Scan ( void  )

Scans the list.

Definition at line 65 of file externrecscanner.cpp.

◆ Stop()

void ExternRecChannelScanner::Stop ( void  )

Stops the scanning thread running.

Definition at line 47 of file externrecscanner.cpp.

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

◆ SetNumChannelsParsed()

void ExternRecChannelScanner::SetNumChannelsParsed ( uint  val)
private

Definition at line 218 of file externrecscanner.cpp.

◆ SetNumChannelsInserted()

void ExternRecChannelScanner::SetNumChannelsInserted ( uint  val)
private

Definition at line 227 of file externrecscanner.cpp.

Referenced by run().

◆ SetMessage()

void ExternRecChannelScanner::SetMessage ( const QString &  status)
private

Definition at line 236 of file externrecscanner.cpp.

◆ run()

void ExternRecChannelScanner::run ( void  )
overrideprotected

Definition at line 72 of file externrecscanner.cpp.

Member Data Documentation

◆ m_scanMonitor

ScanMonitor* ExternRecChannelScanner::m_scanMonitor {nullptr}
private

Definition at line 43 of file externrecscanner.h.

Referenced by run(), SetMessage(), SetNumChannelsInserted(), and SetNumChannelsParsed().

◆ m_cardId

uint ExternRecChannelScanner::m_cardId
private

Definition at line 44 of file externrecscanner.h.

Referenced by run().

◆ m_inputName

QString ExternRecChannelScanner::m_inputName
private

Definition at line 45 of file externrecscanner.h.

◆ m_sourceId

uint ExternRecChannelScanner::m_sourceId
private

Definition at line 46 of file externrecscanner.h.

Referenced by run().

◆ m_channelTotal

uint ExternRecChannelScanner::m_channelTotal {0}
private

Definition at line 47 of file externrecscanner.h.

Referenced by run().

◆ m_channelCnt

uint ExternRecChannelScanner::m_channelCnt {1}
private

Definition at line 48 of file externrecscanner.h.

Referenced by SetNumChannelsInserted(), and SetNumChannelsParsed().

◆ m_threadRunning

bool ExternRecChannelScanner::m_threadRunning {false}
private

Definition at line 49 of file externrecscanner.h.

Referenced by run(), and Stop().

◆ m_stopNow

bool ExternRecChannelScanner::m_stopNow {false}
private

Definition at line 50 of file externrecscanner.h.

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

◆ m_thread

MThread* ExternRecChannelScanner::m_thread {nullptr}
private

Definition at line 51 of file externrecscanner.h.

Referenced by Scan(), Stop(), and ~ExternRecChannelScanner().

◆ m_lock

QMutex ExternRecChannelScanner::m_lock
private

Definition at line 52 of file externrecscanner.h.

Referenced by run(), and Stop().


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