IPTVChannelFetcher Class Reference

#include <iptvchannelfetcher.h>

List of all members.

Public Member Functions

 IPTVChannelFetcher (uint cardid, const QString &inputname, uint sourceid, ScanMonitor *monitor=NULL)
 ~IPTVChannelFetcher ()
bool Scan (void)
 Scans the given frequency list, blocking call.
void Stop (void)
 Stops the scanning thread running.

Static Public Member Functions

static QString DownloadPlaylist (const QString &url, bool inQtThread)
static fbox_chan_map_t ParsePlaylist (const QString &rawdata, IPTVChannelFetcher *fetcher=NULL)

Protected Member Functions

virtual void run (void)

Private Member Functions

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

Private Attributes

ScanMonitor_scan_monitor
uint _cardid
QString _inputname
uint _sourceid
uint _chan_cnt
bool _thread_running
bool _stop_now
MThread_thread
QMutex _lock

Detailed Description

Definition at line 16 of file iptvchannelfetcher.h.


Constructor & Destructor Documentation

IPTVChannelFetcher::IPTVChannelFetcher ( uint  cardid,
const QString &  inputname,
uint  sourceid,
ScanMonitor monitor = NULL 
)

Definition at line 31 of file iptvchannelfetcher.cpp.

IPTVChannelFetcher::~IPTVChannelFetcher (  ) 

Definition at line 44 of file iptvchannelfetcher.cpp.


Member Function Documentation

bool IPTVChannelFetcher::Scan ( void   ) 

Scans the given frequency list, blocking call.

Definition at line 74 of file iptvchannelfetcher.cpp.

Referenced by ChannelScanner::ImportM3U().

void IPTVChannelFetcher::Stop ( void   ) 

Stops the scanning thread running.

Definition at line 54 of file iptvchannelfetcher.cpp.

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

QString IPTVChannelFetcher::DownloadPlaylist ( const QString &  url,
bool  inQtThread 
) [static]

Definition at line 210 of file iptvchannelfetcher.cpp.

Referenced by IPTVChannel::Open(), and run().

fbox_chan_map_t IPTVChannelFetcher::ParsePlaylist ( const QString &  rawdata,
IPTVChannelFetcher fetcher = NULL 
) [static]

Definition at line 267 of file iptvchannelfetcher.cpp.

Referenced by IPTVChannel::Open(), and run().

void IPTVChannelFetcher::SetTotalNumChannels ( uint  val  )  [inline, private]

Definition at line 31 of file iptvchannelfetcher.h.

Referenced by ParsePlaylist(), and run().

void IPTVChannelFetcher::SetNumChannelsParsed ( uint  val  )  [private]

Definition at line 188 of file iptvchannelfetcher.cpp.

Referenced by ParsePlaylist().

void IPTVChannelFetcher::SetNumChannelsInserted ( uint  val  )  [private]

Definition at line 196 of file iptvchannelfetcher.cpp.

Referenced by run().

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

Definition at line 204 of file iptvchannelfetcher.cpp.

Referenced by ParsePlaylist().

void IPTVChannelFetcher::run ( void   )  [protected, virtual]

Definition at line 93 of file iptvchannelfetcher.cpp.


Member Data Documentation

Definition at line 40 of file iptvchannelfetcher.h.

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

Definition at line 41 of file iptvchannelfetcher.h.

Referenced by run().

QString IPTVChannelFetcher::_inputname [private]

Definition at line 42 of file iptvchannelfetcher.h.

Referenced by IPTVChannelFetcher().

Definition at line 43 of file iptvchannelfetcher.h.

Referenced by run().

Definition at line 45 of file iptvchannelfetcher.h.

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

Definition at line 46 of file iptvchannelfetcher.h.

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

Definition at line 47 of file iptvchannelfetcher.h.

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

QMutex IPTVChannelFetcher::_lock [private]

Definition at line 48 of file iptvchannelfetcher.h.

Referenced by Scan(), and Stop().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:07 2012 for MythTV by  doxygen 1.6.3