|
Canorus
0.7
|
00001 00008 #ifndef PYCONSOLEINTERFACE_H_ 00009 #define PYCONSOLEINTERFACE_H_ 00010 00011 #include <QString> 00012 00013 class CAPyConsole; 00014 00015 class CAPyConsoleInterface { 00016 public: 00017 #if !defined( SWIG ) && !defined( SWIGCPP ) 00018 CAPyConsoleInterface (CAPyConsole* pyConsole); 00019 00020 // API for pycli plugin 00021 char* bufferedInput(char* prompt); // Input goes to script 00022 void bufferedOutput(char* bufInp, bool bStdErr); 00023 #else 00024 char* bufferedInput(char* prompt) {} 00025 void bufferedOutput(char* bufInp, bool bStdErr) {} 00026 #endif 00027 CAPyConsoleInterface () {} 00028 void pluginInit(void); // when script initializes 00029 00030 private: 00031 #if !defined( SWIG ) && !defined( SWIGCPP ) 00032 CAPyConsole* _pycons; 00033 #endif 00034 00035 }; 00036 00037 #endif /* PYCONSOLEINTERFACE_H_ */
1.8.0