recording service events now working
[enigma2.git] / lib / service / iservice.h
index 73d35eed1f5c5c9dafb8d66d0f5d2ee3717d40a7..1dd419c1680ffe8e23d043831bf2b42b74bd6acf 100644 (file)
@@ -476,6 +476,7 @@ public:
        virtual RESULT enableSubtitles(eWidget *parent, PyObject *entry)=0;
        virtual RESULT disableSubtitles(eWidget *parent)=0;
        virtual PyObject *getSubtitleList()=0;
+       virtual PyObject *getCachedSubtitle()=0;
 };
 
 TEMPLATE_TYPEDEF(ePtr<iSubtitleOutput>, iSubtitleOutputPtr);
@@ -511,7 +512,9 @@ public:
 
                evUpdatedRadioText
        };
+#ifndef SWIG
        virtual RESULT connectEvent(const Slot2<void,iPlayableService*,int> &event, ePtr<eConnection> &connection)=0;
+#endif
        virtual RESULT start()=0;
        virtual RESULT stop()=0;
                        /* might have to be changed... */
@@ -539,6 +542,31 @@ class iRecordableService: public iObject
        ~iRecordableService();
 #endif
 public:
+       enum
+       {
+               evStart,
+               evStop,
+               evTunedIn,
+               evTuneFailed,
+               evRecordRunning,
+               evRecordStopped,
+               evNewProgramInfo,
+               evRecordFailed
+//             evDiskFull
+       };
+       enum
+       {
+               NoError=0,
+               errOpenRecordFile=-1,
+               errNoDemuxAvailable=-2,
+               errNoTsRecorderAvailable=-3,
+               errDiskFull=-4,
+               errTuneFailed=-255
+       };
+#ifndef SWIG
+       virtual RESULT connectEvent(const Slot2<void,iRecordableService*,int> &event, ePtr<eConnection> &connection)=0;
+#endif
+       virtual RESULT getError(int &)=0;
        virtual RESULT prepare(const char *filename, time_t begTime=-1, time_t endTime=-1, int eit_event_id=-1)=0;
        virtual RESULT start()=0;
        virtual RESULT stop()=0;
@@ -547,6 +575,8 @@ public:
 
 TEMPLATE_TYPEDEF(ePtr<iRecordableService>, iRecordableServicePtr);
 
+PyObject *PyFrom(ePtr<iRecordableService>&);  // implemented in servicedvbrecord.cpp
+
 // TEMPLATE_TYPEDEF(std::list<eServiceReference>, eServiceReferenceList);
 
 class iMutableServiceList: public iObject