blob: c157e0dcc43f449902be4564b5ebe07fc9e1bbe2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef __lib_nav_pcore_h
#define __lib_nav_pcore_h
#include <lib/nav/core.h>
#include <lib/python/connections.h>
/* a subset of eNavigation */
class pNavigation: public iObject, public Object
{
DECLARE_REF(pNavigation);
public:
PSignal1<void, int> m_event;
PSignal2<void, ePtr<iRecordableService>&, int> m_record_event;
pNavigation();
RESULT playService(const eServiceReference &service);
RESULT stopService();
RESULT pause(int p);
SWIG_VOID(RESULT) getCurrentService(ePtr<iPlayableService> &SWIG_OUTPUT);
SWIG_VOID(RESULT) recordService(const eServiceReference &ref, ePtr<iRecordableService> &SWIG_OUTPUT, bool simulate);
RESULT stopRecordService(ePtr<iRecordableService> &service);
PyObject *getRecordings(bool simulate=false);
private:
ePtr<eNavigation> m_core;
ePtr<eConnection> m_nav_event_connection, m_nav_record_event_connection;
void navEvent(int event);
void navRecordEvent(ePtr<iRecordableService>, int event);
};
#endif
|