add ability to copy providers or all services from satellites to favourites (this...
[enigma2.git] / lib / python / enigma_python.i
index 8d18e4168d5333670908de2e9da9d741f077f6ef..53238e4a9344fe73ae0a7d576a75cc1b1e78af3d 100644 (file)
@@ -68,6 +68,7 @@ is usually caused by not marking PSignals as immutable.
 #include <lib/actions/action.h>
 #include <lib/gdi/gfont.h>
 #include <lib/gdi/epng.h>
+#include <lib/dvb/db.h>
 #include <lib/dvb/volume.h>
 #include <lib/dvb/sec.h>
 #include <lib/dvb/epgcache.h>
@@ -78,11 +79,13 @@ is usually caused by not marking PSignals as immutable.
 #include <lib/driver/etimezone.h>
 #include <lib/gdi/lcd.h>
 #include <lib/dvb_ci/dvbci_ui.h>
+#include <lib/python/python.h>
 
 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();
 %}
@@ -123,6 +126,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>
@@ -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 <lib/gdi/font.h>
@@ -175,6 +183,8 @@ typedef long time_t;
 %include <lib/driver/etimezone.h>
 %include <lib/gdi/lcd.h>
 %include <lib/dvb_ci/dvbci_ui.h>
+%include <lib/dvb/db.h>
+%include <lib/python/python.h>
 /**************  eptr  **************/
 
 %template(eActionMapPtr) ePtr<eActionMap>;
@@ -211,20 +221,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  **************/
 
@@ -232,6 +228,7 @@ void runMainloop();
 void quitMainloop(int exit_code);
 void setLCD(const char*);
 void setLCDClock(const char*);
+eApplication *getApplication();
 %immutable keyPressed;
 PSignal1<void,int> &keyPressedSignal();
 
@@ -249,4 +246,14 @@ RESULT SwigFromPython(ePtr<gPixmap> &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);
+}
 %}