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;
20 virtual ~eServiceCenter();
23 RESULT play(const eServiceReference &, iPlayableServicePtr &ptr);
24 RESULT record(const eServiceReference &, iRecordableServicePtr &ptr);
25 RESULT list(const eServiceReference &, iListableServicePtr &ptr);
26 RESULT info(const eServiceReference &, ePtr<iStaticServiceInformation> &ptr);
29 static RESULT getInstance(eServiceCenterPtr &ptr) { ptr = instance; return 0; }
30 RESULT addServiceFactory(int id, iServiceHandler *hnd);
31 RESULT removeServiceFactory(int id);