IPTVChannelFetcher Class Reference

#include <iptvchannelfetcher.h>

List of all members.


Detailed Description

Definition at line 14 of file iptvchannelfetcher.h.


Signals

void ServiceScanPercentComplete (int p)
 Tells listener how far along we are from 0.
void ServiceScanUpdateText (const QString &status)
 Returns tatus message from the scanner.
void ServiceScanComplete (void)
 Signals that the scan is complete.

Public Member Functions

 IPTVChannelFetcher (uint cardid, const QString &inputname, uint sourceid)
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)

Private Member Functions

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

Private Attributes

uint _cardid
QString _inputname
uint _sourceid
uint _chan_cnt
bool _thread_running
bool _stop_now
pthread_t _thread
QMutex _lock

Friends

void * run_scan_thunk (void *param)

Constructor & Destructor Documentation

IPTVChannelFetcher::IPTVChannelFetcher ( uint  cardid,
const QString &  inputname,
uint  sourceid 
)

Definition at line 29 of file iptvchannelfetcher.cpp.

IPTVChannelFetcher::~IPTVChannelFetcher (  )  [private]

Definition at line 38 of file iptvchannelfetcher.cpp.


Member Function Documentation

bool IPTVChannelFetcher::Scan ( void   ) 

Scans the given frequency list, blocking call.

Definition at line 70 of file iptvchannelfetcher.cpp.

Referenced by ScanWizardScanner::ImportM3U().

void IPTVChannelFetcher::Stop ( void   ) 

Stops the scanning thread running.

Definition at line 51 of file iptvchannelfetcher.cpp.

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

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

Definition at line 190 of file iptvchannelfetcher.cpp.

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

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

Definition at line 230 of file iptvchannelfetcher.cpp.

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

void IPTVChannelFetcher::ServiceScanPercentComplete ( int  p  )  [signal]

Tells listener how far along we are from 0.

.100%

Parameters:
p percentage completion

Referenced by RunScan(), SetNumChannelsInserted(), and SetNumChannelsParsed().

void IPTVChannelFetcher::ServiceScanUpdateText ( const QString &  status  )  [signal]

Returns tatus message from the scanner.

Referenced by RunScan(), and SetMessage().

void IPTVChannelFetcher::ServiceScanComplete ( void   )  [signal]

Signals that the scan is complete.

Referenced by RunScan().

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

Definition at line 42 of file iptvchannelfetcher.h.

Referenced by ParsePlaylist(), and RunScan().

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

Definition at line 171 of file iptvchannelfetcher.cpp.

Referenced by ParsePlaylist().

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

Definition at line 178 of file iptvchannelfetcher.cpp.

Referenced by RunScan().

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

Definition at line 185 of file iptvchannelfetcher.cpp.

Referenced by ParsePlaylist().

void IPTVChannelFetcher::RunScan ( void   )  [private]

Definition at line 97 of file iptvchannelfetcher.cpp.

Referenced by run_scan_thunk().


Friends And Related Function Documentation

void* run_scan_thunk ( void *  param  )  [friend]

Referenced by Scan().


Member Data Documentation

Definition at line 49 of file iptvchannelfetcher.h.

Referenced by RunScan().

QString IPTVChannelFetcher::_inputname [private]

Definition at line 50 of file iptvchannelfetcher.h.

Definition at line 51 of file iptvchannelfetcher.h.

Referenced by RunScan().

Definition at line 53 of file iptvchannelfetcher.h.

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

Definition at line 54 of file iptvchannelfetcher.h.

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

Definition at line 55 of file iptvchannelfetcher.h.

Referenced by Scan(), and Stop().

QMutex IPTVChannelFetcher::_lock [private]

Definition at line 56 of file iptvchannelfetcher.h.

Referenced by Scan(), and Stop().


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

Generated on Sat Dec 18 05:16:04 2010 for MythTV by  doxygen 1.5.5