From d0899514fa9495013cb73c8ead8c5a5baaf49111 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Thu, 29 Sep 2005 22:12:32 +0000 Subject: add offline operations to services --- lib/service/service.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/service/service.cpp') 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, ePtrsecond->info(ref, ptr); } +RESULT eServiceCenter::offlineOperations(const eServiceReference &ref, ePtr &ptr) +{ + std::map >::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 >(id, hnd)); -- cgit v1.2.3