X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d63d2c3c6cbbd574dda4f8b00ebe6c661735edd5..1ffaf6025834155c75c8367c4ac3dd56cc21785c:/lib/service/service.h diff --git a/lib/service/service.h b/lib/service/service.h index f32e23d9..17614c2f 100644 --- a/lib/service/service.h +++ b/lib/service/service.h @@ -5,23 +5,30 @@ #include #include -class eServiceCenter: public virtual iServiceHandler, public virtual iObject +class eServiceCenter; + +typedef ePtr eServiceCenterPtr; + +class eServiceCenter: public iServiceHandler { -DECLARE_REF; +DECLARE_REF(eServiceCenter); private: - std::map > handler; + std::map handler; static eServiceCenter *instance; public: eServiceCenter(); virtual ~eServiceCenter(); // iServiceHandler - RESULT play(const eServiceReference &, ePtr &ptr); - RESULT record(const eServiceReference &, ePtr &ptr); - RESULT list(const eServiceReference &, ePtr &ptr); + RESULT play(const eServiceReference &, iPlayableServicePtr &ptr); + RESULT record(const eServiceReference &, iRecordableServicePtr &ptr); + RESULT list(const eServiceReference &, iListableServicePtr &ptr); + RESULT info(const eServiceReference &, ePtr &ptr); + RESULT offlineOperations(const eServiceReference &, ePtr &ptr); // eServiceCenter - static RESULT getInstance(ePtr &ptr) { ptr = instance; return 0; } + static RESULT getPrivInstance(eServiceCenterPtr &ptr) { ptr = instance; return 0; } + static SWIG_VOID(RESULT) getInstance(iServiceHandlerPtr &SWIG_NAMED_OUTPUT(ptr)) { ptr = instance; return 0; } RESULT addServiceFactory(int id, iServiceHandler *hnd); RESULT removeServiceFactory(int id); };