diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-01-05 21:34:48 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-01-05 21:34:48 +0000 |
| commit | d026012d8ba6198d879df68cb4bf6c92c95a633a (patch) | |
| tree | 0ca023e07c8030c0f4196891e413fc1682f0558d /lib/python | |
| parent | a7bc9fd319677465f0561773401ff0390ae3af9c (diff) | |
| download | enigma2-d026012d8ba6198d879df68cb4bf6c92c95a633a.tar.gz enigma2-d026012d8ba6198d879df68cb4bf6c92c95a633a.zip | |
make our event loop compatible to my new twisted reactor core
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/enigma_python.i | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index 54a5bcf3..16ca40cf 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -84,6 +84,7 @@ 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<void,int> &keyPressedSignal(); %} @@ -124,6 +125,10 @@ typedef long time_t; %include <lib/base/object.h> %include <lib/base/eerror.h> %include <lib/base/econfig.h> + +%immutable eTimer::timeout; +%immutable eSocketNotifier::activated; +%include <lib/base/ebase.h> %include <lib/base/smartptr.h> %include <lib/service/iservice.h> %include <lib/service/service.h> @@ -213,20 +218,6 @@ public: $1 = $input->get(); } -/************** base **************/ - -%immutable eTimer::timeout; - -class eTimer -{ -public: - eTimer(eMainloop *context = eApp); - PSignal0<void> timeout; - - void start(long msec, bool singleShot=false); - void stop(); - void changeInterval(long msek); -}; /************** debug **************/ @@ -234,6 +225,7 @@ void runMainloop(); void quitMainloop(int exit_code); void setLCD(const char*); void setLCDClock(const char*); +eApplication *getApplication(); %immutable keyPressed; PSignal1<void,int> &keyPressedSignal(); |
