1 #include <lib/nav/pcore.h>
2 #include <lib/service/service.h>
3 #include <lib/service/event.h>
4 #include <lib/base/eerror.h>
6 DEFINE_REF(pNavigation);
8 pNavigation::pNavigation()
10 ePtr<iServiceHandler> service_center;
11 eServiceCenter::getInstance(service_center);
13 assert(service_center);
14 m_core = new eNavigation(service_center);
16 m_core->connectEvent(slot(*this, &pNavigation::navEvent), m_nav_event_connection);
19 RESULT pNavigation::playService(const eServiceReference &service)
21 return m_core->playService(service);
24 RESULT pNavigation::recordService(const eServiceReference &ref, ePtr<iRecordableService> &service)
26 return m_core->recordService(ref, service);
29 RESULT pNavigation::getCurrentService(ePtr<iPlayableService> &service)
31 return m_core->getCurrentService(service);
34 RESULT pNavigation::pause(int p)
36 return m_core->pause(p);
39 RESULT pNavigation::stopService()
41 return m_core->stopService();
44 void pNavigation::navEvent(eNavigation *nav, int event)
46 /* just relay the events here. */