X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/e677ac4a7bf81391877c909a703e5918ce4a511b..8a7fd294aeb67932e1057bf967958bbe5a959cfb:/lib/nav/pcore.h diff --git a/lib/nav/pcore.h b/lib/nav/pcore.h index 3bb8f4ef..1a910b82 100644 --- a/lib/nav/pcore.h +++ b/lib/nav/pcore.h @@ -6,13 +6,20 @@ /* 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; + + 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 */ + }; pNavigation(); @@ -22,6 +29,10 @@ public: RESULT getPlaylist(ePtr &playlist); RESULT pause(int p); +private: + ePtr m_core; + ePtr m_nav_event_connection; + void navEvent(eNavigation *nav, int event); }; #endif