X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/1d7e5720b3e8653604323b981e37af1f6aa61709..3a044bea307a02147e2d01ad29f07b7348bd7203:/lib/nav/pcore.h?ds=sidebyside diff --git a/lib/nav/pcore.h b/lib/nav/pcore.h index 5da59d08..c157e0dc 100644 --- a/lib/nav/pcore.h +++ b/lib/nav/pcore.h @@ -8,33 +8,27 @@ class pNavigation: public iObject, public Object { -DECLARE_REF(pNavigation); + DECLARE_REF(pNavigation); public: PSignal1 m_event; - - enum - { - evStopService, /** the "current" service was just stopped and likes to be deallocated (clear refs!) */ - evNewService, /** a new "current" service was just started */ - evPlayFailed, /** the next service (in playlist) or the one given in playService failed to play */ - evPlaylistDone, /** the last service in the playlist was just played */ - evUpdatedEventInfo /** the "currently running" event info was updated */ - }; - + PSignal2&, int> m_record_event; + pNavigation(); RESULT playService(const eServiceReference &service); - RESULT recordService(const eServiceReference &ref, ePtr &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; - 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