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

#include <iptvchannelfetcher.h>

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

Public Member Functions

 IPTVChannelFetcher (uint cardid, QString inputname, uint sourceid, bool is_mpts, ScanMonitor *monitor=nullptr)
 
 ~IPTVChannelFetcher () override
 
void Scan (void)
 Scans the given frequency list. More...
 
void Stop (void)
 Stops the scanning thread running. More...
 
fbox_chan_map_t GetChannels (void)
 

Static Public Member Functions

static QString DownloadPlaylist (const QString &url)
 
static MTV_PUBLIC fbox_chan_map_t ParsePlaylist (const QString &rawdata, IPTVChannelFetcher *fetcher=nullptr)
 

Protected Member Functions

void run (void) override
 

Private Member Functions

 Q_DECLARE_TR_FUNCTIONS (IPTVChannelFetcher)
 
void SetTotalNumChannels (uint val)
 
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
 
bool m_isMpts
 
fbox_chan_map_t m_channels
 
uint m_chanCnt {1}
 
bool m_threadRunning {false}
 
bool m_stopNow {false}
 
MThreadm_thread {nullptr}
 
QMutex m_lock
 

Detailed Description

Definition at line 64 of file iptvchannelfetcher.h.

Constructor & Destructor Documentation

◆ IPTVChannelFetcher()

IPTVChannelFetcher::IPTVChannelFetcher ( uint  cardid,
QString  inputname,
uint  sourceid,
bool  is_mpts,
ScanMonitor monitor = nullptr 
)

Definition at line 36 of file iptvchannelfetcher.cpp.

◆ ~IPTVChannelFetcher()

IPTVChannelFetcher::~IPTVChannelFetcher ( )
override

Definition at line 48 of file iptvchannelfetcher.cpp.

Member Function Documentation

◆ Q_DECLARE_TR_FUNCTIONS()

IPTVChannelFetcher::Q_DECLARE_TR_FUNCTIONS ( IPTVChannelFetcher  )
private

◆ Scan()

void IPTVChannelFetcher::Scan ( void  )

Scans the given frequency list.

Definition at line 86 of file iptvchannelfetcher.cpp.

Referenced by ChannelScanner::ImportM3U().

◆ Stop()

void IPTVChannelFetcher::Stop ( void  )

Stops the scanning thread running.

Definition at line 58 of file iptvchannelfetcher.cpp.

Referenced by Scan(), ChannelScanner::Teardown(), and ~IPTVChannelFetcher().

◆ GetChannels()

fbox_chan_map_t IPTVChannelFetcher::GetChannels ( void  )

Definition at line 75 of file iptvchannelfetcher.cpp.

Referenced by ChannelScanner::ImportM3U().

◆ DownloadPlaylist()

QString IPTVChannelFetcher::DownloadPlaylist ( const QString &  url)
static

Definition at line 240 of file iptvchannelfetcher.cpp.

Referenced by run().

◆ ParsePlaylist()

fbox_chan_map_t IPTVChannelFetcher::ParsePlaylist ( const QString &  rawdata,
IPTVChannelFetcher fetcher = nullptr 
)
static

Definition at line 294 of file iptvchannelfetcher.cpp.

Referenced by run().

◆ SetTotalNumChannels()

void IPTVChannelFetcher::SetTotalNumChannels ( uint  val)
inlineprivate

Definition at line 82 of file iptvchannelfetcher.h.

Referenced by ParsePlaylist(), and run().

◆ SetNumChannelsParsed()

void IPTVChannelFetcher::SetNumChannelsParsed ( uint  val)
private

Definition at line 215 of file iptvchannelfetcher.cpp.

Referenced by ParsePlaylist().

◆ SetNumChannelsInserted()

void IPTVChannelFetcher::SetNumChannelsInserted ( uint  val)
private

Definition at line 224 of file iptvchannelfetcher.cpp.

Referenced by run().

◆ SetMessage()

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

Definition at line 233 of file iptvchannelfetcher.cpp.

Referenced by ParsePlaylist().

◆ run()

void IPTVChannelFetcher::run ( void  )
overrideprotected

Definition at line 93 of file iptvchannelfetcher.cpp.

Member Data Documentation

◆ m_scanMonitor

ScanMonitor* IPTVChannelFetcher::m_scanMonitor {nullptr}
private

Definition at line 91 of file iptvchannelfetcher.h.

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

◆ m_cardId

uint IPTVChannelFetcher::m_cardId
private

Definition at line 92 of file iptvchannelfetcher.h.

Referenced by run().

◆ m_inputName

QString IPTVChannelFetcher::m_inputName
private

Definition at line 93 of file iptvchannelfetcher.h.

◆ m_sourceId

uint IPTVChannelFetcher::m_sourceId
private

Definition at line 94 of file iptvchannelfetcher.h.

Referenced by ParsePlaylist(), and run().

◆ m_isMpts

bool IPTVChannelFetcher::m_isMpts
private

Definition at line 95 of file iptvchannelfetcher.h.

Referenced by run().

◆ m_channels

fbox_chan_map_t IPTVChannelFetcher::m_channels
private

Definition at line 96 of file iptvchannelfetcher.h.

Referenced by GetChannels(), and run().

◆ m_chanCnt

uint IPTVChannelFetcher::m_chanCnt {1}
private

◆ m_threadRunning

bool IPTVChannelFetcher::m_threadRunning {false}
private

Definition at line 98 of file iptvchannelfetcher.h.

Referenced by run(), and Stop().

◆ m_stopNow

bool IPTVChannelFetcher::m_stopNow {false}
private

Definition at line 99 of file iptvchannelfetcher.h.

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

◆ m_thread

MThread* IPTVChannelFetcher::m_thread {nullptr}
private

Definition at line 100 of file iptvchannelfetcher.h.

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

◆ m_lock

QMutex IPTVChannelFetcher::m_lock
private

Definition at line 101 of file iptvchannelfetcher.h.

Referenced by run(), and Stop().


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