git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update hu language
[enigma2.git]
/
lib
/
nav
/
core.h
diff --git
a/lib/nav/core.h
b/lib/nav/core.h
index 99cf75ae35caaf7fd6c7484ae7285fb7ca98fe3c..b82d2fbd4e00c8b3076c917c885cc1311487ca4a 100644
(file)
--- a/
lib/nav/core.h
+++ b/
lib/nav/core.h
@@
-4,31
+4,34
@@
#include <lib/base/object.h>
#include <lib/service/iservice.h>
#include <connection.h>
#include <lib/base/object.h>
#include <lib/service/iservice.h>
#include <connection.h>
+#include <map>
class eNavigation: public iObject, public Object
{
class eNavigation: public iObject, public Object
{
- DECLARE_REF;
+ DECLARE_REF
(eNavigation)
;
private:
private:
- ePtr<iPlayableService> m_runningService;
ePtr<iServiceHandler> m_servicehandler;
ePtr<iServiceHandler> m_servicehandler;
- Signal2<void,eNavigation*,int> m_event;
+
+ ePtr<iPlayableService> m_runningService;
+ Signal1<void,int> m_event;
ePtr<eConnection> m_service_event_conn;
void serviceEvent(iPlayableService* service, int event);
ePtr<eConnection> m_service_event_conn;
void serviceEvent(iPlayableService* service, int event);
-
- std::list<eServiceReference> m_playlist;
+
+ std::map<ePtr<iRecordableService>, ePtr<eConnection>, std::less<iRecordableService*> > m_recordings;
+ Signal2<void,ePtr<iRecordableService>,int> m_record_event;
+ void recordEvent(iRecordableService* service, int event);
public:
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,
- evPlaylistDone
- };
+
RESULT playService(const eServiceReference &service);
RESULT playService(const eServiceReference &service);
- RESULT
enqueueService(const eServiceReference &service
);
- RESULT connect
Event(const Slot2<void,eNavigation*
,int> &event, ePtr<eConnection> &connection);
+ RESULT
connectEvent(const Slot1<void,int> &event, ePtr<eConnection> &connection
);
+ RESULT connect
RecordEvent(const Slot2<void,ePtr<iRecordableService>
,int> &event, ePtr<eConnection> &connection);
/* int connectServiceEvent(const Slot1<void,iPlayableService*,int> &event, ePtr<eConnection> &connection); */
RESULT getCurrentService(ePtr<iPlayableService> &service);
/* 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 stopRecordService(ePtr<iRecordableService> &service);
+ PyObject *getRecordings(void);
RESULT pause(int p);
eNavigation(iServiceHandler *serviceHandler);
RESULT pause(int p);
eNavigation(iServiceHandler *serviceHandler);