X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/1c384bc7cd9e5e2222c275a7a6b47bfd5712e870..a52476e8ffc33c408318eabbf24fdf87e404ddaf:/lib/python/enigma_python.i diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index 8d18e416..8029a265 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -68,6 +68,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include #include #include #include @@ -78,11 +79,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(); %} @@ -123,6 +126,10 @@ typedef long time_t; %include %include %include + +%immutable eTimer::timeout; +%immutable eSocketNotifier::activated; +%include %include %include %include @@ -135,6 +142,7 @@ typedef long time_t; %immutable eButton::selected; %immutable eInput::changed; %immutable eComponentScan::statusChanged; +%immutable eComponentScan::newService; %immutable pNavigation::m_event; %include @@ -175,6 +183,8 @@ typedef long time_t; %include %include %include +%include +%include /************** eptr **************/ %template(eActionMapPtr) ePtr; @@ -211,20 +221,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 +228,7 @@ void runMainloop(); void quitMainloop(int exit_code); void setLCD(const char*); void setLCDClock(const char*); +eApplication *getApplication(); %immutable keyPressed; PSignal1 &keyPressedSignal(); @@ -249,4 +246,9 @@ 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); +} %}