Python command execution request.

Public Member Functions | |
| ExecCommand (PyInterp_Interp *theInterp, const QString &theCommand, PyConsole_Editor *theListener, bool sync=false) | |
| Constructor. | |
| bool | IsSync () const |
Static Public Member Functions | |
| static void | Destroy (PyInterp_Request *) |
Protected Member Functions | |
| virtual void | execute () |
| Execute the python command in the interpreter and get its execution status. | |
| virtual QEvent * | createEvent () const |
| Create and return a notification event. | |
| PyInterp_Interp * | getInterp () const |
| virtual void | safeExecute () |
| virtual void | processEvent (QObject *) |
| QObject * | listener () const |
| void | setListener (QObject *) |
Private Attributes | |
| QString | myCommand |
| Python command. | |
| int | myState |
| Python command execution status. | |
| ExecCommand.ExecCommand | ( | PyInterp_Interp * | theInterp, |
| const QString & | theCommand, | ||
| PyConsole_Editor * | theListener, | ||
| bool | sync = false |
||
| ) |
Creates new python command execution request.
| theInterp | python interpreter |
| theCommand | python command |
| theListener | widget to get the notification messages |
| sync | if True the request is processed synchronously |
| virtual void ExecCommand.execute | ( | ) | [protected, virtual] |
Implements PyInterp_Request.
References PyInterp_Event.ES_ERROR, PyInterp_Event.ES_INCOMPLETE, PyInterp_LockRequest.getInterp(), myCommand, myState, TestSalomeApp.ret, and PyInterp_Interp.run().
| virtual QEvent* ExecCommand.createEvent | ( | ) | const [protected, virtual] |
Reimplemented from PyInterp_Request.
References PyInterp_Request.IsSync(), PyInterp_Request.listener(), myState, and PRINT_EVENT.
| PyInterp_Interp* PyInterp_LockRequest.getInterp | ( | ) | const [protected, inherited] |
| void PyInterp_LockRequest::safeExecute | ( | ) | [protected, virtual, inherited] |
Reimplemented from PyInterp_Request.
| void PyInterp_Request::Destroy | ( | PyInterp_Request * | request | ) | [static, inherited] |
References PyInterp_Request.myMutex.
| bool PyInterp_Request.IsSync | ( | ) | const [inherited] |
| void PyInterp_Request::processEvent | ( | QObject * | o | ) | [protected, virtual, inherited] |
| QObject* PyInterp_Request.listener | ( | ) | const [protected, inherited] |
| void PyInterp_Request::setListener | ( | QObject * | o | ) | [protected, inherited] |
QString ExecCommand.myCommand [private] |
int ExecCommand.myState [private] |