X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/e677ac4a7bf81391877c909a703e5918ce4a511b..3f7725e9ffccaa9cdb0671d618aa3449cf17a047:/lib/nav/pcore.h diff --git a/lib/nav/pcore.h b/lib/nav/pcore.h index 3bb8f4ef..c157e0dc 100644 --- a/lib/nav/pcore.h +++ b/lib/nav/pcore.h @@ -6,22 +6,29 @@ /* a subset of eNavigation */ -class pNavigation: public iObject +class pNavigation: public iObject, public Object { -DECLARE_REF; -private: - ePtr m_core; + DECLARE_REF(pNavigation); public: - PSignal1 event; - + PSignal1 m_event; + PSignal2&, int> m_record_event; + pNavigation(); RESULT playService(const eServiceReference &service); - RESULT enqueueService(const eServiceReference &service); - RESULT getCurrentService(ePtr &service); - RESULT getPlaylist(ePtr &playlist); - + RESULT stopService(); RESULT pause(int p); + SWIG_VOID(RESULT) getCurrentService(ePtr &SWIG_OUTPUT); + + SWIG_VOID(RESULT) recordService(const eServiceReference &ref, ePtr &SWIG_OUTPUT, bool simulate); + RESULT stopRecordService(ePtr &service); + PyObject *getRecordings(bool simulate=false); + +private: + ePtr m_core; + ePtr m_nav_event_connection, m_nav_record_event_connection; + void navEvent(int event); + void navRecordEvent(ePtr, int event); }; #endif