aboutsummaryrefslogtreecommitdiff
path: root/lib/nav/pcore.h
blob: e9a06403e5715d51bb263074bb1f875ef069d3ff (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
#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;
	
	pNavigation();
	
	RESULT playService(const eServiceReference &service);
	SWIG_VOID(RESULT) recordService(const eServiceReference &ref, ePtr<iRecordableService> &SWIG_OUTPUT);
	
	SWIG_VOID(RESULT) getCurrentService(ePtr<iPlayableService> &SWIG_OUTPUT);
	RESULT stopService();
	
	RESULT pause(int p);
private:
	ePtr<eNavigation> m_core;
	ePtr<eConnection> m_nav_event_connection;
	void navEvent(eNavigation *nav, int event);
};

#endif