fix inverted setting (meaning was inverted too)
[enigma2.git] / lib / nav / core.h
index 056c150bfe4de8eb4a3eb2d91963990082008a47..f1146b447a473c98ca80b2c90c37bdffd9bbb8c1 100644 (file)
@@ -7,27 +7,33 @@
 
 class eNavigation: public iObject, public Object
 {
-       DECLARE_REF;
+       DECLARE_REF(eNavigation);
 private:
        ePtr<iPlayableService> m_runningService;
+       
        ePtr<iServiceHandler> m_servicehandler;
        Signal2<void,eNavigation*,int> m_event;
        ePtr<eConnection> m_service_event_conn;
        void serviceEvent(iPlayableService* service, int event);
-       
-       std::list<eServiceReference> m_playlist;
 public:
        enum
        {
-               evNewService,
-               evPlayFailed,
-               evPlaylistDone
+               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 */
+               evUpdatedEventInfo, /** the "currently running" event info was updated */
+               evUpdatedInfo, /** the program info of this service was updated */
+               evSeekableStatusChanged,
+               evEnd
        };
+       
        RESULT playService(const eServiceReference &service);
-       RESULT enqueueService(const eServiceReference &service);
        RESULT connectEvent(const Slot2<void,eNavigation*,int> &event, ePtr<eConnection> &connection);
 /*     int connectServiceEvent(const Slot1<void,iPlayableService*,int> &event, ePtr<eConnection> &connection); */
        RESULT getCurrentService(ePtr<iPlayableService> &service);
+       RESULT stopService(void);
+       
+       RESULT recordService(const eServiceReference &ref, ePtr<iRecordableService> &service);
        
        RESULT pause(int p);
        eNavigation(iServiceHandler *serviceHandler);