show "in timer" icon also in multiepg
[enigma2.git] / lib / nav / pcore.cpp
index 23df003..fdcb385 100644 (file)
@@ -7,7 +7,7 @@ DEFINE_REF(pNavigation);
 
 pNavigation::pNavigation()
 {
-       ePtr<eServiceCenter> service_center;
+       ePtr<iServiceHandler> service_center;
        eServiceCenter::getInstance(service_center);
 
        assert(service_center);
@@ -21,19 +21,9 @@ RESULT pNavigation::playService(const eServiceReference &service)
        return m_core->playService(service);
 }
 
-RESULT pNavigation::recordService(const eServiceReference &service)
+RESULT pNavigation::recordService(const eServiceReference &ref, ePtr<iRecordableService> &service)
 {
-       return m_core->recordService(service);
-}
-
-RESULT pNavigation::endRecording()
-{
-       return m_core->endRecording();
-}
-
-RESULT pNavigation::enqueueService(const eServiceReference &service)
-{
-       return m_core->enqueueService(service);
+       return m_core->recordService(ref, service);
 }
 
 RESULT pNavigation::getCurrentService(ePtr<iPlayableService> &service)
@@ -41,35 +31,18 @@ RESULT pNavigation::getCurrentService(ePtr<iPlayableService> &service)
        return m_core->getCurrentService(service);
 }
 
-RESULT pNavigation::getPlaylist(ePtr<ePlaylist> &playlist)
+RESULT pNavigation::pause(int p)
 {
-       return m_core->getPlaylist(playlist);
+       return m_core->pause(p);
 }
 
-RESULT pNavigation::pause(int p)
+RESULT pNavigation::stopService()
 {
-       return m_core->pause(p);
+       return m_core->stopService();
 }
 
 void pNavigation::navEvent(eNavigation *nav, int event)
 {
                /* just relay the events here. */
-       switch (event)
-       {
-       case eNavigation::evStopService:
-               m_event(evStopService);
-               break;
-       case eNavigation::evNewService:
-               m_event(evNewService);
-               break;
-       case eNavigation::evPlayFailed:
-               m_event(evPlayFailed);
-               break;
-       case eNavigation::evPlaylistDone:
-               m_event(evPlaylistDone);
-               break;
-       case eNavigation::evUpdatedEventInfo:
-               m_event(evUpdatedEventInfo);
-               break;
-       }
+       m_event(event);
 }