Processes data from a IPTVFeeder and writes it to disk. More...
#include <iptvrecorder.h>
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. | |
| IPTVRecorder & | operator= (const IPTVRecorder &) |
| IPTVRecorder (const IPTVRecorder &) | |
| IPTVRecorder () | |
Private Attributes | |
| IPTVChannel * | _channel |
Friends | |
| class | IPTVMediaSink |
Processes data from a IPTVFeeder and writes it to disk.
Definition at line 21 of file iptvrecorder.h.
| 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] |
| 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.
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.
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] |
friend class IPTVMediaSink [friend] |
Definition at line 23 of file iptvrecorder.h.
IPTVChannel* IPTVRecorder::_channel [private] |
Definition at line 49 of file iptvrecorder.h.
Referenced by Close(), IPTVRecorder(), Open(), run(), StopRecording(), and ~IPTVRecorder().
1.6.3