- work on actions
[vuplus_dvbapp] / lib / nav / pcore.h
index 3bb8f4e..004bab2 100644 (file)
@@ -6,13 +6,20 @@
 
 /* a subset of eNavigation */
 
-class pNavigation: public iObject
+class pNavigation: public iObject, public Object
 {
 DECLARE_REF;
-private:
-       ePtr<eNavigation> m_core;
 public:
-       PSignal1<void, int> event;
+       PSignal1<void, int> 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<ePlaylist> &playlist);
        
        RESULT pause(int p);
+private:
+       ePtr<eNavigation> m_core;
+       ePtr<eConnection> m_nav_event_connection;
+       void navEvent(eNavigation *nav, int event);
 };
 
 #endif