Qt 4.8
Public Functions | Public Variables | List of all members
QScriptEngineDebuggerBackendPrivate Class Reference
Inheritance diagram for QScriptEngineDebuggerBackendPrivate:
QScriptDebuggerBackendPrivate

Public Functions

bool event (QEvent *e)
 Reimplemented Function More...
 
 QScriptEngineDebuggerBackendPrivate ()
 
 ~QScriptEngineDebuggerBackendPrivate ()
 
- Public Functions inherited from QScriptDebuggerBackendPrivate
void agentDestroyed (QScriptDebuggerAgent *)
 
virtual void breakpoint (qint64 scriptId, int lineNumber, int columnNumber, int breakpointId)
 The agent calls this function when a breakpoint has been triggered. More...
 
virtual void debuggerInvocationRequest (qint64 scriptId, int lineNumber, int columnNumber)
 The agent calls this function when the engine has reached a "debugger" statement. More...
 
virtual void exception (qint64 scriptId, const QScriptValue &exception, bool hasHandler)
 The agent calls this function when an uncaught exception has occurred. More...
 
virtual void forcedReturn (qint64 scriptId, int lineNumber, int columnNumber, const QScriptValue &value)
 
virtual void interrupted (qint64 scriptId, int lineNumber, int columnNumber)
 The agent calls this function when evaluation has been interrupted. More...
 
virtual void locationReached (qint64 scriptId, int lineNumber, int columnNumber)
 The agent calls this function when it has run to a particular location. More...
 
void postEvent (QEvent *e)
 
 QScriptDebuggerBackendPrivate ()
 
virtual void stepped (qint64 scriptId, int lineNumber, int columnNumber, const QScriptValue &result)
 The agent calls this function when it has completed a step operation. More...
 
virtual ~QScriptDebuggerBackendPrivate ()
 

Public Variables

QList< QEventLoop * > eventLoopPool
 
QList< QEventLoop * > eventLoopStack
 
QScriptEngineDebuggerFrontendPrivatefrontend
 
- Public Variables inherited from QScriptDebuggerBackendPrivate
QScriptDebuggerAgentagent
 
QScriptDebuggerCommandExecutorcommandExecutor
 
QObjecteventReceiver
 
bool ignoreExceptions
 
int nextScriptObjectSnapshotId
 
int nextScriptValueIteratorId
 
QScriptValue origFileNameFunction
 
QScriptValue origLineNumberFunction
 
QScriptValue origTraceFunction
 
int pendingEvaluateContextIndex
 
QString pendingEvaluateFileName
 
int pendingEvaluateLineNumber
 
QString pendingEvaluateProgram
 
QScriptDebuggerBackendq_ptr
 
QMap< int, QScriptObjectSnapshot * > scriptObjectSnapshots
 
QMap< int, QScriptValueIterator * > scriptValueIterators
 

Additional Inherited Members

- Static Public Functions inherited from QScriptDebuggerBackendPrivate
static QScriptValue fileName (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue lineNumber (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue qsassert (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue trace (QScriptContext *context, QScriptEngine *engine)
 

Detailed Description

Definition at line 121 of file qscriptenginedebuggerfrontend.cpp.

Constructors and Destructors

◆ QScriptEngineDebuggerBackendPrivate()

QScriptEngineDebuggerBackendPrivate::QScriptEngineDebuggerBackendPrivate ( )

Definition at line 150 of file qscriptenginedebuggerfrontend.cpp.

151 {
152  frontend = 0;
153 }
QScriptEngineDebuggerFrontendPrivate * frontend

◆ ~QScriptEngineDebuggerBackendPrivate()

QScriptEngineDebuggerBackendPrivate::~QScriptEngineDebuggerBackendPrivate ( )

Definition at line 155 of file qscriptenginedebuggerfrontend.cpp.

156 {
158  eventLoopStack.clear();
159  while (!eventLoopPool.isEmpty()) {
160  QEventLoop *eventLoop = eventLoopPool.takeFirst();
161  if (eventLoop->isRunning()) {
162  eventLoop->quit();
163  eventLoop->deleteLater();
164  } else {
165  delete eventLoop;
166  }
167  }
168 }
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
Definition: qlist.h:152
The QEventLoop class provides a means of entering and leaving an event loop.
Definition: qeventloop.h:55
T takeFirst()
Removes the first item in the list and returns it.
Definition: qlist.h:489
void quit()
Tells the event loop to exit normally.
Definition: qeventloop.cpp:332
void clear()
Removes all items from the list.
Definition: qlist.h:764
bool isRunning() const
Returns true if the event loop is running; otherwise returns false.
Definition: qeventloop.cpp:306
void deleteLater()
Schedules this object for deletion.
Definition: qobject.cpp:2145

Functions

◆ event()

bool QScriptEngineDebuggerBackendPrivate::event ( QEvent e)
virtual

Reimplemented Function

Reimplemented from QScriptDebuggerBackendPrivate.

Definition at line 173 of file qscriptenginedebuggerfrontend.cpp.

174 {
176  if (e->type() == QEvent::User+3) {
178  QScriptDebuggerCommandExecutor *executor = q->commandExecutor();
179  QScriptDebuggerResponse response = executor->execute(q, ce->command());
180  frontend->postCommandFinished(ce->id(), response);
181  return true;
182  }
184 }
QScriptEngineDebuggerFrontendPrivate * frontend
virtual QScriptDebuggerResponse execute(QScriptDebuggerBackend *backend, const QScriptDebuggerCommand &command)
Applies the given command to the given backend.
The QScriptDebuggerResponse class represents a front-end&#39;s response to a QScriptDebuggerCommand.
const QScriptDebuggerCommand & command() const
void postCommandFinished(int id, const QScriptDebuggerResponse &response)
#define Q_Q(Class)
Definition: qglobal.h:2483
The QScriptDebuggerCommandExecutor applies debugger commands to a back-end.
Type type() const
Returns the event type.
Definition: qcoreevent.h:303

Properties

◆ eventLoopPool

QList<QEventLoop*> QScriptEngineDebuggerBackendPrivate::eventLoopPool

Definition at line 132 of file qscriptenginedebuggerfrontend.cpp.

◆ eventLoopStack

QList<QEventLoop*> QScriptEngineDebuggerBackendPrivate::eventLoopStack

Definition at line 133 of file qscriptenginedebuggerfrontend.cpp.

◆ frontend

QScriptEngineDebuggerFrontendPrivate* QScriptEngineDebuggerBackendPrivate::frontend

Definition at line 131 of file qscriptenginedebuggerfrontend.cpp.


The documentation for this class was generated from the following file: