diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-09-29 22:12:32 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-09-29 22:12:32 +0000 |
| commit | d0899514fa9495013cb73c8ead8c5a5baaf49111 (patch) | |
| tree | 85967f5ac0aa005cea828373fba8e429ae41e69b /lib/service/service.cpp | |
| parent | 2ee3a3e99c59ec6441cb26f083124726f12e1fa5 (diff) | |
| download | enigma2-d0899514fa9495013cb73c8ead8c5a5baaf49111.tar.gz enigma2-d0899514fa9495013cb73c8ead8c5a5baaf49111.zip | |
add offline operations to services
Diffstat (limited to 'lib/service/service.cpp')
| -rw-r--r-- | lib/service/service.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/service/service.cpp b/lib/service/service.cpp index 0a4a8012..3a59d444 100644 --- a/lib/service/service.cpp +++ b/lib/service/service.cpp @@ -101,6 +101,17 @@ RESULT eServiceCenter::info(const eServiceReference &ref, ePtr<iStaticServiceInf return i->second->info(ref, ptr); } +RESULT eServiceCenter::offlineOperations(const eServiceReference &ref, ePtr<iServiceOfflineOperations> &ptr) +{ + std::map<int,ePtr<iServiceHandler> >::iterator i = handler.find(ref.type); + if (i == handler.end()) + { + ptr = 0; + return -1; + } + return i->second->offlineOperations(ref, ptr); +} + RESULT eServiceCenter::addServiceFactory(int id, iServiceHandler *hnd) { handler.insert(std::pair<int,ePtr<iServiceHandler> >(id, hnd)); |
