start timer after message box is actually visible
[enigma2.git] / lib / service / iservice.h
index 0d11dd7eba1b90f7c4455c5093d08d1985d1005f..2ada9095e56c8b03ab42bb00876f0e4e354e72ae 100644 (file)
@@ -39,7 +39,8 @@ public:
                shouldSort=8,                   // should be ASCII-sorted according to service_name. great for directories.
                hasSortKey=16,          // has a sort key in data[3]. not having a sort key implies 0.
                sort1=32,                                       // sort key is 1 instead of 0
-               isMarker=64                     // Marker
+               isMarker=64,                    // Marker
+               isGroup=128                     // is a group of services
        };
        int flags; // flags will NOT be compared.
 
@@ -137,12 +138,12 @@ public:
                data[3]=data3;
                data[4]=data4;
        }
+#endif
        eServiceReference(int type, int flags, const std::string &path)
                : type(type), flags(flags), path(path)
        {
                memset(data, 0, sizeof(data));
        }
-#endif
        eServiceReference(const std::string &string);
        std::string toString() const;
        std::string toCompareString() const;
@@ -238,7 +239,7 @@ public:
        virtual int getLength(const eServiceReference &ref);
        virtual SWIG_VOID(RESULT) getEvent(const eServiceReference &ref, ePtr<eServiceEvent> &SWIG_OUTPUT, time_t start_time=-1);
                // returns true when not implemented
-       virtual bool isPlayable(const eServiceReference &ref, const eServiceReference &ignore);
+       virtual int isPlayable(const eServiceReference &ref, const eServiceReference &ignore);
 
        virtual int getInfo(const eServiceReference &ref, int w);
        virtual std::string getInfoString(const eServiceReference &ref,int w);
@@ -298,6 +299,8 @@ public:
                sVideoType,  // MPEG2 MPEG4
                
                sTags,  /* space seperated list of tags */
+               
+               sDVBState, /* states as defined in pmt handler (as events there) */
        };
        enum { resNA = -1, resIsString = -2, resIsPyObject = -3 };
 
@@ -645,8 +648,10 @@ class iListableService: public iObject
        ~iListableService();
 #endif
 public:
+#ifndef SWIG
                /* legacy interface: get a list */
        virtual RESULT getContent(std::list<eServiceReference> &list, bool sorted=false)=0;
+#endif
        virtual PyObject *getContent(const char* format, bool sorted=false)=0;
 
                /* new, shiny interface: streaming. */