aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-02-25 01:46:44 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-02-25 01:46:44 +0000
commit1cdf6cb021fcaa6548b90ba7b6765cf1e8b8b37b (patch)
tree5bd4dbac6538cf499f641849d26193958b48a187 /lib/python
parente677ac4a7bf81391877c909a703e5918ce4a511b (diff)
downloadenigma2-1cdf6cb021fcaa6548b90ba7b6765cf1e8b8b37b.tar.gz
enigma2-1cdf6cb021fcaa6548b90ba7b6765cf1e8b8b37b.zip
- work on actions
- changed time when screens are acutally constructed - added service name (not working atm) and event info (now&next)
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/enigma_python.i19
1 files changed, 16 insertions, 3 deletions
diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i
index 3562c3e9..33fc0a14 100644
--- a/lib/python/enigma_python.i
+++ b/lib/python/enigma_python.i
@@ -29,8 +29,7 @@
Oh, things like "operator= is private in this context" etc.
-is usually caused by not marking PSignals as immutable.
-
+is usually caused by not marking PSignals as immutable.
*/
%define RefCount(...)
@@ -48,6 +47,7 @@ is usually caused by not marking PSignals as immutable.
#include <lib/base/econfig.h>
#include <lib/service/iservice.h>
#include <lib/service/service.h>
+#include <lib/service/event.h>
#include <lib/gui/ewidget.h>
#include <lib/gui/elabel.h>
@@ -61,6 +61,7 @@ is usually caused by not marking PSignals as immutable.
#include <lib/service/listboxservice.h>
#include <lib/components/scan.h>
#include <lib/nav/pcore.h>
+#include <lib/actions/action.h>
extern void runMainloop();
extern void quitMainloop();
@@ -73,6 +74,7 @@ RefCount(eListboxServiceContent)
RefCount(eComponentScan)
#define DEBUG
+%include "typemaps.i"
%include "stl.i"
%include <lib/base/object.h>
%include <lib/base/eerror.h>
@@ -81,12 +83,13 @@ RefCount(eComponentScan)
%include <lib/service/iservice.h>
%include <lib/service/service.h>
%template(eServiceCenterPtr) ePtr<eServiceCenter>;
+%include <lib/service/event.h>
// TODO: embed these...
%immutable eButton::selected;
%immutable eComponentScan::statusChanged;
-%immutable pNavigation::event;
+%immutable pNavigation::m_event;
%include <lib/gdi/epoint.h>
%include <lib/gdi/erect.h>
@@ -103,6 +106,16 @@ RefCount(eComponentScan)
%include <lib/service/listboxservice.h>
%include <lib/components/scan.h>
%include <lib/nav/pcore.h>
+%include <lib/actions/action.h>
+
+/************** eptr **************/
+
+%template(eActionMapPtr) ePtr<eActionMap>;
+RefCount(eActionMap)
+%apply eActionMapPtr OUTPUT { eActionMapPtr &ptr }
+%apply eActionMap* *OUTPUT { eActionMap **ptr }
+
+/************** signals **************/
template<class R> class PSignal0
{