X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/0e65f17c7564ec8ea11477a9baa5e6ef82fc94f8..ce31b562c29e94d2421e0a2b0257030eca97f1cd:/lib/nav/pcore.h diff --git a/lib/nav/pcore.h b/lib/nav/pcore.h index e9a06403..c157e0dc 100644 --- a/lib/nav/pcore.h +++ b/lib/nav/pcore.h @@ -8,23 +8,27 @@ class pNavigation: public iObject, public Object { -DECLARE_REF(pNavigation); + DECLARE_REF(pNavigation); public: PSignal1 m_event; - + PSignal2&, int> m_record_event; + pNavigation(); RESULT playService(const eServiceReference &service); - SWIG_VOID(RESULT) recordService(const eServiceReference &ref, ePtr &SWIG_OUTPUT); - - SWIG_VOID(RESULT) getCurrentService(ePtr &SWIG_OUTPUT); 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; - void navEvent(eNavigation *nav, int event); + ePtr m_nav_event_connection, m_nav_record_event_connection; + void navEvent(int event); + void navRecordEvent(ePtr, int event); }; #endif