1 #ifndef __servicedvbrecord_h
2 #define __servicedvbrecord_h
4 #include <lib/service/iservice.h>
5 #include <lib/dvb/idvb.h>
7 #include <lib/dvb/pmt.h>
8 #include <lib/dvb/eit.h>
11 #include <lib/service/servicedvb.h>
13 class eDVBServiceRecord: public eDVBServiceBase,
14 public iRecordableService, public Object
16 DECLARE_REF(eDVBServiceRecord);
18 RESULT prepare(const char *filename, time_t begTime, time_t endTime, int eit_event_id);
22 enum { stateIdle, statePrepared, stateRecording };
23 int m_state, m_want_record;
24 friend class eServiceFactoryDVB;
25 eDVBServiceRecord(const eServiceReferenceDVB &ref);
27 eServiceReferenceDVB m_ref;
28 void serviceEvent(int event);
30 ePtr<iDVBTSRecorder> m_record;
32 int m_recording, m_tuned;
33 std::set<int> m_pids_active;
34 std::string m_filename;
39 RESULT frontendInfo(ePtr<iFrontendInformation> &ptr);