21 #ifndef PYTHON_INTERPRETER_WORKER_HH
22 #define PYTHON_INTERPRETER_WORKER_HH
27 #pragma push_macro("slots")
29 #include <boost/python.hpp>
30 #include <boost/shared_ptr.hpp>
31 #pragma pop_macro("slots")
39 namespace ost {
namespace gui {
40 namespace bp = boost::python;
48 unsigned int AddCommand(
const QString& command);
51 void Finished(
unsigned int id,
bool error_state);
52 void Output(
unsigned int id,
const QString& output);
53 void ErrorOutput(
unsigned int id,
const QString& output);
81 #endif // PYTHON_INTERPRETER_WORKER_HH
QQueue< std::pair< unsigned int, QString > > exec_queue_
bool is_simple_expression(const QString &expr)
void ErrorOutput(unsigned int id, const QString &output)
boost::shared_ptr< OutputRedirector > error_redirector_
struct sigaction sig_act_
PythonInterpreterWorker()
boost::shared_ptr< OutputRedirector > output_redirector_
~PythonInterpreterWorker()
bp::object parse_expr_cmd_
void Finished(unsigned int id, bool error_state)
void Output(unsigned int id, const QString &output)
void run_command_(std::pair< unsigned int, QString > pair)
void handle_redirector_output(const QString &output)
unsigned int AddCommand(const QString &command)
void handle_redirector_error(const QString &output)