much more flexible method to get a servicelist in python..
[enigma2.git] / lib / service / iservice.h
index fb56175d056bbcf31eb0ceb4c7b6996c5c941314..5ddf0cf8bbf7f73566607ab77902c0438414c862 100644 (file)
@@ -51,13 +51,26 @@ public:
        std::string getPath() { return path; }
        void setPath( const std::string &n ) { path=n; }
 
-       unsigned int getData(unsigned int num) const
+       unsigned int getUnsignedData(unsigned int num) const
        {
                if ( num < sizeof(data)/sizeof(int) )
                        return data[num];
                return 0;
        }
 
+       int getData(unsigned int num) const
+       {
+               if ( num < sizeof(data)/sizeof(int) )
+                       return data[num];
+               return 0;
+       }
+
+       void setUnsignedData(unsigned int num, unsigned int val)
+       {
+               if ( num < sizeof(data)/sizeof(int) )
+                       data[num] = val;
+       }
+
        void setData(unsigned int num, int val)
        {
                if ( num < sizeof(data)/sizeof(int) )
@@ -500,7 +513,7 @@ class iListableService: public iObject
 public:
                /* legacy interface: get a list */
        virtual RESULT getContent(std::list<eServiceReference> &list, bool sorted=false)=0;
-       virtual RESULT getContent(PyObject *list, bool sorted=false)=0;
+       virtual PyObject *getContent(const char* format, bool sorted=false)=0;
 
                /* new, shiny interface: streaming. */
        virtual SWIG_VOID(RESULT) getNext(eServiceReference &SWIG_OUTPUT)=0;