X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/dba614edd2aad3c17e244914eaef3809d8300cb1..d04e6435efecf42a192a4f6c71dca9a1a053d5fb:/lib/nav/core.h diff --git a/lib/nav/core.h b/lib/nav/core.h index 6c94fe2c..9f7be884 100644 --- a/lib/nav/core.h +++ b/lib/nav/core.h @@ -3,38 +3,38 @@ #include #include -#include #include +#include +#include class eNavigation: public iObject, public Object { DECLARE_REF(eNavigation); -private: - ePtr m_runningService; ePtr m_servicehandler; - Signal2 m_event; + + ePtr m_runningService; + Signal1 m_event; ePtr m_service_event_conn; void serviceEvent(iPlayableService* service, int event); - - ePtr m_playlist; + + std::map, ePtr, std::less > m_recordings; + std::set, std::less > m_simulate_recordings; + + Signal2,int> m_record_event; + void recordEvent(iRecordableService* service, int event); public: - 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 */ - }; RESULT playService(const eServiceReference &service); - RESULT enqueueService(const eServiceReference &service); - RESULT connectEvent(const Slot2 &event, ePtr &connection); + RESULT connectEvent(const Slot1 &event, ePtr &connection); + RESULT connectRecordEvent(const Slot2,int> &event, ePtr &connection); /* int connectServiceEvent(const Slot1 &event, ePtr &connection); */ RESULT getCurrentService(ePtr &service); - RESULT getPlaylist(ePtr &playlist); RESULT stopService(void); + RESULT recordService(const eServiceReference &ref, ePtr &service, bool simulate=false); + RESULT stopRecordService(ePtr &service); + PyObject *getRecordings(bool simulate=false); + RESULT pause(int p); eNavigation(iServiceHandler *serviceHandler); virtual ~eNavigation();