X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/c0f5089ea04bd04fe25148e712fa62cd49dc17da..72e36c763566033b8ef325b49d6efe60cf8d3757:/lib/nav/core.h diff --git a/lib/nav/core.h b/lib/nav/core.h index 056c150b..9f7be884 100644 --- a/lib/nav/core.h +++ b/lib/nav/core.h @@ -4,30 +4,36 @@ #include #include #include +#include +#include class eNavigation: public iObject, public Object { - DECLARE_REF; -private: - ePtr m_runningService; + DECLARE_REF(eNavigation); ePtr m_servicehandler; - Signal2 m_event; + + ePtr m_runningService; + Signal1 m_event; ePtr m_service_event_conn; void serviceEvent(iPlayableService* service, int event); - - std::list m_playlist; + + std::map, ePtr, std::less > m_recordings; + std::set, std::less > m_simulate_recordings; + + Signal2,int> m_record_event; + void recordEvent(iRecordableService* service, int event); public: - enum - { - evNewService, - evPlayFailed, - evPlaylistDone - }; + RESULT playService(const eServiceReference &service); - RESULT enqueueService(const eServiceReference &service); - RESULT connectEvent(const Slot2 &event, ePtr &connection); + RESULT connectEvent(const Slot1 &event, ePtr &connection); + RESULT connectRecordEvent(const Slot2,int> &event, ePtr &connection); /* int connectServiceEvent(const Slot1 &event, ePtr &connection); */ RESULT getCurrentService(ePtr &service); + RESULT stopService(void); + + RESULT recordService(const eServiceReference &ref, ePtr &service, bool simulate=false); + RESULT stopRecordService(ePtr &service); + PyObject *getRecordings(bool simulate=false); RESULT pause(int p); eNavigation(iServiceHandler *serviceHandler);