diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-04-14 15:10:50 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-04-14 15:10:50 +0000 |
| commit | 47367fb1c159557cb3676f67172b9839531c8dc9 (patch) | |
| tree | 8fcf5ec00c058528ce2fd8113b77d4f2250cd75c /lib/service/service.h | |
| parent | efc5aca651306518e6f21a6bd7cbfa1928821b60 (diff) | |
| download | enigma2-47367fb1c159557cb3676f67172b9839531c8dc9.tar.gz enigma2-47367fb1c159557cb3676f67172b9839531c8dc9.zip | |
better handling for eServiceFS file extensions
Diffstat (limited to 'lib/service/service.h')
| -rw-r--r-- | lib/service/service.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/service/service.h b/lib/service/service.h index 77173c53..3929f752 100644 --- a/lib/service/service.h +++ b/lib/service/service.h @@ -16,6 +16,7 @@ class eServiceCenter: public iServiceHandler DECLARE_REF(eServiceCenter); private: std::map<int,ePtr<iServiceHandler> > handler; + std::map<int,std::list<std::string> > extensions; static eServiceCenter *instance; #ifdef SWIG eServiceCenter(); @@ -26,6 +27,9 @@ public: 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); @@ -35,7 +39,7 @@ public: // eServiceCenter static RESULT getPrivInstance(ePtr<eServiceCenter> &ptr) { ptr = instance; return 0; } - RESULT addServiceFactory(int id, iServiceHandler *hnd); + 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; } |
