add possibility to set manual lnb priority (only in advanced sat config)
[enigma2.git] / lib / service / service.h
index bd40fb0863a011963a540e8d55c599d7bf58746b..6f6ab98088a815189838b21edc5693650a6bdbed 100644 (file)
@@ -5,25 +5,43 @@
 #include <lib/base/object.h>
 #include <lib/service/iservice.h>
 
+class eServiceCenter;
+
+#ifndef SWIG
+typedef ePtr<eServiceCenter> eServiceCenterPtr;
+#endif
+
 class eServiceCenter: public iServiceHandler
 {
-DECLARE_REF;
-private:
+       DECLARE_REF(eServiceCenter);
        std::map<int,ePtr<iServiceHandler> > handler;
+       std::map<int,std::list<std::string> > extensions;
        static eServiceCenter *instance;
+#ifdef SWIG
+       eServiceCenter();
+       ~eServiceCenter();
+#endif
 public:
+#ifndef SWIG
        eServiceCenter();
        virtual ~eServiceCenter();
 
+       int getServiceTypeForExtension(const char *str);
+       int getServiceTypeForExtension(const std::string &str);
+
                // iServiceHandler
        RESULT play(const eServiceReference &, ePtr<iPlayableService> &ptr);
        RESULT record(const eServiceReference &, ePtr<iRecordableService> &ptr);
        RESULT list(const eServiceReference &, ePtr<iListableService> &ptr);
+       RESULT info(const eServiceReference &, ePtr<iStaticServiceInformation> &ptr);
+       RESULT offlineOperations(const eServiceReference &, ePtr<iServiceOfflineOperations> &ptr);
        
                // eServiceCenter
-       static RESULT getInstance(ePtr<eServiceCenter> &ptr) { ptr = instance; return 0; }
-       RESULT addServiceFactory(int id, iServiceHandler *hnd);
+       static RESULT getPrivInstance(ePtr<eServiceCenter> &ptr) { ptr = instance; return 0; }
+       RESULT addServiceFactory(int id, iServiceHandler *hnd, std::list<std::string> &extensions);
        RESULT removeServiceFactory(int id);
+#endif
+       static SWIG_VOID(RESULT) getInstance(ePtr<iServiceHandler> &SWIG_NAMED_OUTPUT(ptr)) { ptr = instance; return 0; }
 };
 
 #endif