make some operator functions const
[enigma2.git] / lib / base / console.h
index 1b58dbda676f5f4fd3e7d8aaf4e38450b38dc08d..07ad6a90f5f5a99de81c16535f6d3827cdd4f541 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __LIB_BASE_CONSOLE_H__
 #define __LIB_BASE_CONSOLE_H__
 
+#include "Python.h"
 #include <string>
 #include <lib/base/ebase.h>
 #include <lib/python/connections.h>
@@ -34,11 +35,14 @@ class eConsoleAppContainer: public Object
 public:
        eConsoleAppContainer();
        int execute( const char *str );
+       int execute( const char *cmdline, const char *const argv[] );
+       int execute( PyObject *cmdline, PyObject *args );
        ~eConsoleAppContainer();
        int getPID() { return pid; }
        void kill();
        void sendCtrlC();
        void write( const char *data, int len );
+       void write( PyObject *data );
        bool running() { return (fd[0]!=-1) && (fd[1]!=-1) && (fd[2]!=-1); }
        PSignal1<void, const char*> dataAvail;
        PSignal1<void,int> dataSent;