IPTVRecorder Class Reference

Processes data from a IPTVFeeder and writes it to disk. More...

#include <iptvrecorder.h>

Inheritance diagram for IPTVRecorder:
DTVRecorder TSDataListener RecorderBase MPEGStreamListener MPEGSingleProgramStreamListener DVBMainStreamListener ATSCMainStreamListener TSPacketListener TSPacketListenerAV

List of all members.

Public Member Functions

 IPTVRecorder (TVRec *rec, IPTVChannel *channel)
 ~IPTVRecorder ()
bool Open (void)
void Close (void)
virtual void run (void)
 run() starts the recording process, and does not exit until the recording is complete.
virtual void SetOptionsFromProfile (RecordingProfile *, const QString &, const QString &, const QString &)
 Sets basic recorder options.
virtual void SetStreamData (void)
virtual bool IsExternalChannelChangeSupported (void)

Private Member Functions

bool ProcessTSPacket (const TSPacket &tspacket)
virtual bool PauseAndWait (int timeout=100)
 If request_pause is true, sets pause and blocks up to timeout milliseconds or until unpaused, whichever is sooner.
void AddData (const unsigned char *data, unsigned int dataSize)
 Callback function to add MPEG2 TS data.
IPTVRecorderoperator= (const IPTVRecorder &)
 IPTVRecorder (const IPTVRecorder &)
 IPTVRecorder ()

Private Attributes

IPTVChannel_channel

Friends

class IPTVMediaSink

Detailed Description

Processes data from a IPTVFeeder and writes it to disk.

Definition at line 21 of file iptvrecorder.h.


Constructor & Destructor Documentation

IPTVRecorder::IPTVRecorder ( TVRec rec,
IPTVChannel channel 
)

Definition at line 24 of file iptvrecorder.cpp.

IPTVRecorder::~IPTVRecorder (  ) 

Definition at line 31 of file iptvrecorder.cpp.

IPTVRecorder::IPTVRecorder ( const IPTVRecorder  )  [private]
IPTVRecorder::IPTVRecorder (  )  [private]

Member Function Documentation

bool IPTVRecorder::Open ( void   ) 

Definition at line 37 of file iptvrecorder.cpp.

Referenced by PauseAndWait(), and run().

void IPTVRecorder::Close ( void   ) 

Definition at line 58 of file iptvrecorder.cpp.

Referenced by run().

void IPTVRecorder::run ( void   )  [virtual]

run() starts the recording process, and does not exit until the recording is complete.

See also:
StopRecording()

Implements RecorderBase.

Definition at line 101 of file iptvrecorder.cpp.

virtual void IPTVRecorder::SetOptionsFromProfile ( RecordingProfile profile,
const QString &  videodev,
const QString &  audiodev,
const QString &  vbidev 
) [inline, virtual]

Sets basic recorder options.

SetOptionsFromProfile is used to tell the recorder about the recording profile as well as the devices to use.

Reimplemented from DTVRecorder.

Definition at line 34 of file iptvrecorder.h.

void IPTVRecorder::SetStreamData ( void   )  [virtual]

Reimplemented from DTVRecorder.

Definition at line 258 of file iptvrecorder.cpp.

virtual bool IPTVRecorder::IsExternalChannelChangeSupported ( void   )  [inline, virtual]

Definition at line 39 of file iptvrecorder.h.

bool IPTVRecorder::ProcessTSPacket ( const TSPacket tspacket  )  [private, virtual]

Reimplemented from DTVRecorder.

Definition at line 215 of file iptvrecorder.cpp.

Referenced by AddData().

bool IPTVRecorder::PauseAndWait ( int  timeout = 100  )  [private, virtual]

If request_pause is true, sets pause and blocks up to timeout milliseconds or until unpaused, whichever is sooner.

This is the where we actually do the pausing. For most recorders that need to do something special on pause, this is the method to overide.

Parameters:
timeout number of milliseconds to wait defaults to 100.
Returns:
true if recorder is paused.

Reimplemented from RecorderBase.

Definition at line 66 of file iptvrecorder.cpp.

Referenced by run().

void IPTVRecorder::AddData ( const unsigned char *  data,
unsigned int  dataSize 
) [private, virtual]

Callback function to add MPEG2 TS data.

Implements TSDataListener.

Definition at line 168 of file iptvrecorder.cpp.

IPTVRecorder& IPTVRecorder::operator= ( const IPTVRecorder  )  [private]

Friends And Related Function Documentation

friend class IPTVMediaSink [friend]

Definition at line 23 of file iptvrecorder.h.


Member Data Documentation

Definition at line 49 of file iptvrecorder.h.

Referenced by Close(), IPTVRecorder(), Open(), PauseAndWait(), run(), and ~IPTVRecorder().


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