support for renderer
[enigma2.git] / lib / python / enigma_python.i
index 06d844738e723498cca6fc5676ef901dadeccdec..b80959c63cb149f3e80072160882707d0ecc870a 100644 (file)
@@ -92,9 +92,10 @@ is usually caused by not marking PSignals as immutable.
 extern void runMainloop();
 extern void quitMainloop(int exit_code);
 extern eApplication *getApplication();
-
-extern PSignal1<void,int> &keyPressedSignal();
 extern int getPrevAsciiCode();
+extern int isUTF8(const std::string &);
+extern std::string convertUTF8DVB(const std::string &, int);
+extern std::string convertDVBUTF8(const unsigned char *data, int len, int table, int tsidonid);
 %}
 
 %feature("ref")   iObject "$this->AddRef(); /* eDebug(\"AddRef (%s:%d)!\", __FILE__, __LINE__); */ "
@@ -259,10 +260,17 @@ int getPrevAsciiCode();
 void runMainloop();
 void quitMainloop(int exit_code);
 eApplication *getApplication();
-%immutable keyPressed;
-PSignal1<void,int> &keyPressedSignal();
-
+int isUTF8(const std::string &);
+std::string convertUTF8DVB(const std::string &, int);
+std::string convertDVBUTF8(std::string text, int table);
 %{
+
+std::string convertDVBUTF8(std::string text, int table)
+{
+       int len = text.length();
+       return convertDVBUTF8(len?(unsigned char*)text.c_str():(unsigned char*)"", len, table, 0);
+}
+
 RESULT SwigFromPython(ePtr<gPixmap> &result, PyObject *obj)
 {      
        ePtr<gPixmap> *res;