add tag information for audio files
[enigma2.git] / lib / service / iservice.h
index 2d38d6f66e0ec4d90d0d6ccfd62031ee56095422..e74fa0a689692bd40872e7032139bd6734b0c09c 100644 (file)
@@ -252,6 +252,13 @@ public:
                
                sDescription,
                sTimeCreate,    // unix time or string
+               
+               sTitle,
+               sArtist,
+               sAlbum,
+               sComment,
+               sTracknumber,
+               sGenre,
        };
        enum { resNA = -1, resIsString = -2 };
 
@@ -271,9 +278,12 @@ public:
        enum {
                bitErrorRate,
                signalPower,
-               signalQuality
+               signalQuality,
+               LockState,
+               SyncState
        };
        virtual int getFrontendInfo(int w)=0;
+       virtual PyObject *getFrontendData(bool original=false)=0;
 };
 
 TEMPLATE_TYPEDEF(ePtr<iFrontendStatusInformation>, iFrontendStatusInformationPtr);
@@ -387,13 +397,13 @@ class iCueSheet: public iObject
 public:
                        /* returns a list of (pts, what)-tuples */
        virtual PyObject *getCutList() = 0;
-       
+       virtual void setCutList(PyObject *list) = 0;
+       virtual void setCutListEnable(int enable) = 0;
        enum { cutIn = 0, cutOut = 1, cutMark = 2 };
-       
-       virtual RESULT addCut(const pts_t &when, int what) = 0;
-       virtual RESULT removeCut(const pts_t &when, int what) = 0;
 };
 
+TEMPLATE_TYPEDEF(ePtr<iCueSheet>, iCueSheetPtr);
+
 class iPlayableService: public iObject
 {
 #ifdef SWIG
@@ -419,6 +429,9 @@ public:
                
                evEOF,
                evSOF, /* bounced against start of file (when seeking backwards) */
+               
+                       /* only when cueSheet is implemented */
+               evCuesheetChanged,
        };
        virtual RESULT connectEvent(const Slot2<void,iPlayableService*,int> &event, ePtr<eConnection> &connection)=0;
        virtual RESULT start()=0;
@@ -442,7 +455,7 @@ class iRecordableService: public iObject
        ~iRecordableService();
 #endif
 public:
-       virtual RESULT prepare(const char *filename)=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;
 };