X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/0e65f17c7564ec8ea11477a9baa5e6ef82fc94f8..09047544dbeddd0a5df972934c8863bef9e11a99:/lib/nav/core.h diff --git a/lib/nav/core.h b/lib/nav/core.h index fbcd566d..b82d2fbd 100644 --- a/lib/nav/core.h +++ b/lib/nav/core.h @@ -4,26 +4,34 @@ #include #include #include +#include class eNavigation: public iObject, public Object { DECLARE_REF(eNavigation); private: - ePtr m_runningService; - ePtr m_servicehandler; - Signal2 m_event; + + ePtr m_runningService; + Signal1 m_event; ePtr m_service_event_conn; void serviceEvent(iPlayableService* service, int event); + + std::map, ePtr, std::less > m_recordings; + Signal2,int> m_record_event; + void recordEvent(iRecordableService* service, int event); public: RESULT playService(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); + RESULT stopRecordService(ePtr &service); + PyObject *getRecordings(void); RESULT pause(int p); eNavigation(iServiceHandler *serviceHandler);