X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/1c384bc7cd9e5e2222c275a7a6b47bfd5712e870..9938121132769969c336536523e76abccf8a6818:/lib/python/enigma_python.i diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index 8d18e416..322b3e56 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -39,7 +39,6 @@ is usually caused by not marking PSignals as immutable. #include #include #include -#include #include #include #include @@ -68,6 +67,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include #include #include #include @@ -78,11 +78,13 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include extern void runMainloop(); extern void quitMainloop(int exit_code); extern void setLCD(const char *c); extern void setLCDClock(const char *c); +extern eApplication *getApplication(); extern PSignal1 &keyPressedSignal(); %} @@ -122,7 +124,10 @@ typedef long time_t; %include %include %include -%include + +%immutable eTimer::timeout; +%immutable eSocketNotifier::activated; +%include %include %include %include @@ -135,7 +140,9 @@ typedef long time_t; %immutable eButton::selected; %immutable eInput::changed; %immutable eComponentScan::statusChanged; +%immutable eComponentScan::newService; %immutable pNavigation::m_event; +%immutable eListbox::selectionChanged; %include %include @@ -175,6 +182,8 @@ typedef long time_t; %include %include %include +%include +%include /************** eptr **************/ %template(eActionMapPtr) ePtr; @@ -211,20 +220,6 @@ public: $1 = $input->get(); } -/************** base **************/ - -%immutable eTimer::timeout; - -class eTimer -{ -public: - eTimer(eMainloop *context = eApp); - PSignal0 timeout; - - void start(long msec, bool singleShot=false); - void stop(); - void changeInterval(long msek); -}; /************** debug **************/ @@ -232,6 +227,7 @@ void runMainloop(); void quitMainloop(int exit_code); void setLCD(const char*); void setLCDClock(const char*); +eApplication *getApplication(); %immutable keyPressed; PSignal1 &keyPressedSignal(); @@ -249,4 +245,14 @@ RESULT SwigFromPython(ePtr &result, PyObject *obj) result = *res; return 0; } +PyObject *New_TestObj() +{ + TestObj *result = (TestObj *)new TestObj(); + return SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_TestObj, 1); +} +PyObject *New_eServiceReference(const eServiceReference &ref) +{ + eServiceReference *result = new eServiceReference(ref); + return SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_eServiceReference, 1); +} %}