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) |
| 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. | |
| 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 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.
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.
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.
| timeout | number of milliseconds to wait defaults to 100. |
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] |
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(), PauseAndWait(), run(), and ~IPTVRecorder().
1.6.3