diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2004-10-01 13:21:35 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2004-10-01 13:21:35 +0000 |
| commit | ddc3964ed95d01e72229dc9af968a327cd84e56c (patch) | |
| tree | 93e6694c639db3d188f5b2868f6b2b2951d21d60 /lib/service/service.h | |
| parent | 1aeefd997cc362c3b37c1587c5f08891b35c3a75 (diff) | |
| download | enigma2-ddc3964ed95d01e72229dc9af968a327cd84e56c.tar.gz enigma2-ddc3964ed95d01e72229dc9af968a327cd84e56c.zip | |
- add python, missing gui
- remove console (needs to be rewritten anyway)
- eString -> std::string
Diffstat (limited to 'lib/service/service.h')
| -rw-r--r-- | lib/service/service.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/service/service.h b/lib/service/service.h index bd40fb08..fbe34278 100644 --- a/lib/service/service.h +++ b/lib/service/service.h @@ -5,23 +5,27 @@ #include <lib/base/object.h> #include <lib/service/iservice.h> +class eServiceCenter; + +typedef ePtr<eServiceCenter> eServiceCenterPtr; + class eServiceCenter: public iServiceHandler { DECLARE_REF; private: - std::map<int,ePtr<iServiceHandler> > handler; + std::map<int,iServiceHandlerPtr> handler; static eServiceCenter *instance; public: eServiceCenter(); virtual ~eServiceCenter(); // iServiceHandler - RESULT play(const eServiceReference &, ePtr<iPlayableService> &ptr); - RESULT record(const eServiceReference &, ePtr<iRecordableService> &ptr); - RESULT list(const eServiceReference &, ePtr<iListableService> &ptr); + RESULT play(const eServiceReference &, iPlayableServicePtr &ptr); + RESULT record(const eServiceReference &, iRecordableServicePtr &ptr); + RESULT list(const eServiceReference &, iListableServicePtr &ptr); // eServiceCenter - static RESULT getInstance(ePtr<eServiceCenter> &ptr) { ptr = instance; return 0; } + static RESULT getInstance(eServiceCenterPtr &ptr) { ptr = instance; return 0; } RESULT addServiceFactory(int id, iServiceHandler *hnd); RESULT removeServiceFactory(int id); }; |
