rename funktion
[enigma2.git] / lib / service / servicedvbrecord.h
index 6bd9fb9..17e3d16 100644 (file)
@@ -14,9 +14,12 @@ class eDVBServiceRecord: public iRecordableService, public Object
 {
 DECLARE_REF(eDVBServiceRecord);
 public:
 {
 DECLARE_REF(eDVBServiceRecord);
 public:
+       RESULT prepare(const char *filename);
        RESULT start();
        RESULT stop();
 private:
        RESULT start();
        RESULT stop();
 private:
+       enum { stateIdle, statePrepared, stateRecording };
+       int m_state, m_want_record;
        friend class eServiceFactoryDVB;
        eDVBServiceRecord(const eServiceReferenceDVB &ref);
        
        friend class eServiceFactoryDVB;
        eDVBServiceRecord(const eServiceReferenceDVB &ref);
        
@@ -28,6 +31,10 @@ private:
        
        int m_recording;
        std::set<int> m_pids_active;
        
        int m_recording;
        std::set<int> m_pids_active;
+       std::string m_filename;
+       
+       int doPrepare();
+       int doRecord();
 };
 
 #endif
 };
 
 #endif