4 #ifndef PYCONSOLE_REQUEST_H_
5 #define PYCONSOLE_REQUEST_H_
8 #include "PyInterp_Request.h"
14 class PyInterp_Interp;
15 class PyConsole_Editor;
19 \brief Python command execution request.
22 class ExecCommand : public PyInterp_LockRequest
28 Creates new python command execution request.
29 \param theInterp python interpreter
30 \param theCommand python command
31 \param theListener widget to get the notification messages
32 \param sync if True the request is processed synchronously
34 ExecCommand( PyInterp_Interp* theInterp,
35 const QString& theCommand,
36 PyConsole_Editor* theListener,
41 \brief Execute the python command in the interpreter and
42 get its execution status.
44 virtual void execute();
47 \brief Create and return a notification event.
48 \return new notification event
50 virtual QEvent* createEvent();
53 QString myCommand; //!< Python command
54 int myState; //!< Python command execution status
57 class PyConsole_EnhInterp;
58 class PyConsole_EnhEditor;
60 class CompletionCommand : public PyInterp_LockRequest
63 CompletionCommand( PyConsole_EnhInterp* theInterp,
65 const QString& startMatch,
66 PyConsole_EnhEditor* theListener,
71 /** List of separators identifying the last parsable token for completion */
72 static const std::vector<QString> SEPARATORS;
74 /** String to be passed to the dir() command */
76 /** Begining of the command (as typed by the user) */
78 /** was the completion command successful */
81 virtual void execute();
82 virtual QEvent* createEvent();
86 #endif /* PYCONSOLE_REQUEST_H_ */