5 #include <lib/base/object.h>
6 #include <lib/service/iservice.h>
10 typedef ePtr<eServiceCenter> eServiceCenterPtr;
12 class eServiceCenter: public iServiceHandler
14 DECLARE_REF(eServiceCenter);
16 std::map<int,iServiceHandlerPtr> handler;
17 static eServiceCenter *instance;
25 virtual ~eServiceCenter();
28 RESULT play(const eServiceReference &, iPlayableServicePtr &ptr);
29 RESULT record(const eServiceReference &, iRecordableServicePtr &ptr);
30 RESULT list(const eServiceReference &, iListableServicePtr &ptr);
31 RESULT info(const eServiceReference &, ePtr<iStaticServiceInformation> &ptr);
32 RESULT offlineOperations(const eServiceReference &, ePtr<iServiceOfflineOperations> &ptr);
35 static RESULT getPrivInstance(eServiceCenterPtr &ptr) { ptr = instance; return 0; }
36 static SWIG_VOID(RESULT) getInstance(iServiceHandlerPtr &SWIG_NAMED_OUTPUT(ptr)) { ptr = instance; return 0; }
37 RESULT addServiceFactory(int id, iServiceHandler *hnd);
38 RESULT removeServiceFactory(int id);