Version: 6.3.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes

ExecCommand Class Reference

Python command execution request.

Inheritance diagram for ExecCommand:
Inheritance graph

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 QEventcreateEvent () const
 Create and return a notification event.
PyInterp_InterpgetInterp () const
virtual void safeExecute ()
virtual void processEvent (QObject *)
QObjectlistener () const
void setListener (QObject *)

Private Attributes

QString myCommand
 Python command.
int myState
 Python command execution status.

Constructor & Destructor Documentation

ExecCommand.ExecCommand ( PyInterp_Interp theInterp,
const QString &  theCommand,
PyConsole_Editor theListener,
bool  sync = false 
)

Creates new python command execution request.

Parameters:
theInterppython interpreter
theCommandpython command
theListenerwidget to get the notification messages
syncif True the request is processed synchronously

Member Function Documentation

virtual void ExecCommand.execute ( ) [protected, virtual]
virtual QEvent* ExecCommand.createEvent ( ) const [protected, virtual]
Returns:
new notification event

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]
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]

Field Documentation

QString ExecCommand.myCommand [private]
int ExecCommand.myState [private]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS