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)
void StopRecording (void)
 StopRecording() signals to the recorder that it should stop recording and exit cleanly.
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)
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 run().

void IPTVRecorder::Close ( void   ) 

Definition at line 58 of file iptvrecorder.cpp.

Referenced by run().

void IPTVRecorder::StopRecording ( void   )  [virtual]

StopRecording() signals to the recorder that it should stop recording and exit cleanly.

This function should block until recorder has finished up.

Reimplemented from RecorderBase.

Definition at line 66 of file iptvrecorder.cpp.

Referenced by ~IPTVRecorder().

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 77 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 35 of file iptvrecorder.h.

void IPTVRecorder::SetStreamData ( void   )  [virtual]

Reimplemented from DTVRecorder.

Definition at line 219 of file iptvrecorder.cpp.

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

Definition at line 40 of file iptvrecorder.h.

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

Reimplemented from DTVRecorder.

Definition at line 176 of file iptvrecorder.cpp.

Referenced by AddData().

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

Callback function to add MPEG2 TS data.

Implements TSDataListener.

Definition at line 129 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(), run(), StopRecording(), 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 Mon May 28 06:42:07 2012 for MythTV by  doxygen 1.6.3