add .cvsignore
[enigma2.git] / lib / service / servicedvbrecord.h
index 5f36991f92935b78982cdbb4538c41512cef9894..dcce33885ce400c877ffa3782455138e43bfba1b 100644 (file)
 #include <lib/service/servicedvb.h>
 
 class eDVBServiceRecord: public eDVBServiceBase,
-       public iRecordableService, public Object
+       public iRecordableService, 
+       public iStreamableService,
+       public Object
 {
 DECLARE_REF(eDVBServiceRecord);
 public:
        RESULT connectEvent(const Slot2<void,iRecordableService*,int> &event, ePtr<eConnection> &connection);
        RESULT prepare(const char *filename, time_t begTime, time_t endTime, int eit_event_id);
+       RESULT prepareStreaming();
        RESULT start();
        RESULT stop();
+       RESULT stream(ePtr<iStreamableService> &ptr);
        RESULT getError(int &error) { error = m_error; return 0; }
+       RESULT frontendInfo(ePtr<iFrontendInformation> &ptr);
+
+               /* streamable service */
+       PyObject *getStreamingData();
+
 private:
        enum { stateIdle, statePrepared, stateRecording };
        int m_state, m_want_record;
@@ -29,20 +38,23 @@ private:
        eServiceReferenceDVB m_ref;
        
        ePtr<iDVBTSRecorder> m_record;
+       ePtr<eConnection>       m_con_record_event;
        
        int m_recording, m_tuned, m_error;
        std::set<int> m_pids_active;
        std::string m_filename;
        int m_target_fd;
+       int m_streaming;
        
        int doPrepare();
        int doRecord();
-       RESULT frontendInfo(ePtr<iFrontendInformation> &ptr);
 
                        /* events */
        void serviceEvent(int event);
        Signal2<void,iRecordableService*,int> m_event;
-
+       
+                       /* recorder events */
+       void recordEvent(int event);
 };
 
 #endif