Qt 4.8
Public Functions | Private Functions | Properties | List of all members
QScriptDebuggerCommandSchedulerFrontend Class Reference

#include <qscriptdebuggercommandschedulerfrontend_p.h>

Public Functions

 QScriptDebuggerCommandSchedulerFrontend (QScriptDebuggerCommandSchedulerInterface *scheduler, QScriptDebuggerResponseHandlerInterface *responseHandler)
 
int scheduleClearExceptions ()
 
int scheduleContextsCheckpoint ()
 
int scheduleContinue ()
 Instructs the front-end to continue evaluation, and returns a unique identifier associated with this command. More...
 
int scheduleDeleteAllBreakpoints ()
 
int scheduleDeleteBreakpoint (int id)
 
int scheduleDeleteScriptObjectSnapshot (int id)
 
int scheduleDeleteScriptValueIterator (int id)
 
int scheduleEvaluate (int contextIndex, const QString &program, const QString &fileName=QString(), int lineNumber=1)
 
int scheduleForceReturn (int contextIndex, const QScriptDebuggerValue &value)
 
int scheduleGetActivationObject (int contextIndex)
 
int scheduleGetBacktrace ()
 
int scheduleGetBreakpointData (int id)
 
int scheduleGetBreakpoints ()
 
int scheduleGetCompletions (int contextIndex, const QStringList &path)
 
int scheduleGetContextCount ()
 
int scheduleGetContextId (int contextIndex)
 
int scheduleGetContextInfo (int contextIndex)
 
int scheduleGetContextState (int contextIndex)
 
int scheduleGetPropertiesByIterator (int id, int count)
 
int scheduleGetPropertyExpressionValue (int contextIndex, int lineNumber, const QStringList &path)
 
int scheduleGetScopeChain (int contextIndex)
 
int scheduleGetScriptData (qint64 id)
 
int scheduleGetScripts ()
 
int scheduleGetScriptsDelta ()
 
int scheduleGetThisObject (int contextIndex)
 
int scheduleInterrupt ()
 Instructs the front-end to break at the next script statement, and returns a unique identifier associated with this command. More...
 
int scheduleNewScriptObjectSnapshot ()
 
int scheduleNewScriptValueIterator (const QScriptDebuggerValue &object)
 
int scheduleResolveScript (const QString &fileName)
 
int scheduleRunToLocation (const QString &fileName, int lineNumber)
 Instructs the front-end to continue evaluation until the location specified by the given fileName and lineNumber is reached. More...
 
int scheduleRunToLocation (qint64 scriptId, int lineNumber)
 Instructs the front-end to continue evaluation until the location specified by the given scriptId and lineNumber is reached. More...
 
int scheduleScriptObjectSnapshotCapture (int id, const QScriptDebuggerValue &object)
 
int scheduleScriptsCheckpoint ()
 
int scheduleScriptValueToString (const QScriptDebuggerValue &value)
 
int scheduleSetBreakpoint (const QString &fileName, int lineNumber)
 
int scheduleSetBreakpoint (const QScriptBreakpointData &data)
 
int scheduleSetBreakpointData (int id, const QScriptBreakpointData &data)
 
int scheduleSetScriptValueProperty (const QScriptDebuggerValue &object, const QString &name, const QScriptDebuggerValue &value)
 
int scheduleStepInto (int count=1)
 Instructs the front-end to step into the next script statement, and returns a unique identifier associated with this command. More...
 
int scheduleStepOut ()
 Instructs the front-end to step out of the current script function, and returns a unique identifier associated with this command. More...
 
int scheduleStepOver (int count=1)
 Instructs the front-end to step over the next script statement, and returns a unique identifier associated with this command. More...
 
 ~QScriptDebuggerCommandSchedulerFrontend ()
 

Private Functions

int scheduleCommand (const QScriptDebuggerCommand &command)
 

Properties

QScriptDebuggerResponseHandlerInterfacem_responseHandler
 
QScriptDebuggerCommandSchedulerInterfacem_scheduler
 

Detailed Description

Definition at line 68 of file qscriptdebuggercommandschedulerfrontend_p.h.

Constructors and Destructors

◆ QScriptDebuggerCommandSchedulerFrontend()

QScriptDebuggerCommandSchedulerFrontend::QScriptDebuggerCommandSchedulerFrontend ( QScriptDebuggerCommandSchedulerInterface scheduler,
QScriptDebuggerResponseHandlerInterface responseHandler 
)

Definition at line 48 of file qscriptdebuggercommandschedulerfrontend.cpp.

51  : m_scheduler(scheduler), m_responseHandler(responseHandler)
52 {
53 }
QScriptDebuggerCommandSchedulerInterface * m_scheduler
QScriptDebuggerResponseHandlerInterface * m_responseHandler

◆ ~QScriptDebuggerCommandSchedulerFrontend()

QScriptDebuggerCommandSchedulerFrontend::~QScriptDebuggerCommandSchedulerFrontend ( )

Definition at line 55 of file qscriptdebuggercommandschedulerfrontend.cpp.

56 {
57 }

Functions

◆ scheduleClearExceptions()

int QScriptDebuggerCommandSchedulerFrontend::scheduleClearExceptions ( )

◆ scheduleCommand()

int QScriptDebuggerCommandSchedulerFrontend::scheduleCommand ( const QScriptDebuggerCommand command)
private

Definition at line 59 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by scheduleClearExceptions(), scheduleContextsCheckpoint(), scheduleContinue(), scheduleDeleteAllBreakpoints(), scheduleDeleteBreakpoint(), scheduleDeleteScriptObjectSnapshot(), scheduleDeleteScriptValueIterator(), scheduleEvaluate(), scheduleForceReturn(), scheduleGetActivationObject(), scheduleGetBacktrace(), scheduleGetBreakpointData(), scheduleGetBreakpoints(), scheduleGetCompletions(), scheduleGetContextCount(), scheduleGetContextId(), scheduleGetContextInfo(), scheduleGetContextState(), scheduleGetPropertiesByIterator(), scheduleGetPropertyExpressionValue(), scheduleGetScopeChain(), scheduleGetScriptData(), scheduleGetScripts(), scheduleGetScriptsDelta(), scheduleGetThisObject(), scheduleInterrupt(), scheduleNewScriptObjectSnapshot(), scheduleNewScriptValueIterator(), scheduleResolveScript(), scheduleRunToLocation(), scheduleScriptObjectSnapshotCapture(), scheduleScriptsCheckpoint(), scheduleScriptValueToString(), scheduleSetBreakpoint(), scheduleSetBreakpointData(), scheduleSetScriptValueProperty(), scheduleStepInto(), scheduleStepOut(), and scheduleStepOver().

60 {
62 }
QScriptDebuggerCommandSchedulerInterface * m_scheduler
virtual int scheduleCommand(const QScriptDebuggerCommand &command, QScriptDebuggerResponseHandlerInterface *responseHandler)=0
QScriptDebuggerResponseHandlerInterface * m_responseHandler

◆ scheduleContextsCheckpoint()

int QScriptDebuggerCommandSchedulerFrontend::scheduleContextsCheckpoint ( )

Definition at line 249 of file qscriptdebuggercommandschedulerfrontend.cpp.

250 {
252 }
int scheduleCommand(const QScriptDebuggerCommand &command)
static QScriptDebuggerCommand contextsCheckpoint()

◆ scheduleContinue()

int QScriptDebuggerCommandSchedulerFrontend::scheduleContinue ( )

Instructs the front-end to continue evaluation, and returns a unique identifier associated with this command.

See also
scheduleBreak()

Definition at line 84 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerConsoleGlobalObject::scheduleContinue().

85 {
87 }
int scheduleCommand(const QScriptDebuggerCommand &command)
static QScriptDebuggerCommand continueCommand()

◆ scheduleDeleteAllBreakpoints()

int QScriptDebuggerCommandSchedulerFrontend::scheduleDeleteAllBreakpoints ( )

◆ scheduleDeleteBreakpoint()

int QScriptDebuggerCommandSchedulerFrontend::scheduleDeleteBreakpoint ( int  id)

◆ scheduleDeleteScriptObjectSnapshot()

int QScriptDebuggerCommandSchedulerFrontend::scheduleDeleteScriptObjectSnapshot ( int  id)

◆ scheduleDeleteScriptValueIterator()

int QScriptDebuggerCommandSchedulerFrontend::scheduleDeleteScriptValueIterator ( int  id)

◆ scheduleEvaluate()

int QScriptDebuggerCommandSchedulerFrontend::scheduleEvaluate ( int  contextIndex,
const QString program,
const QString fileName = QString(),
int  lineNumber = 1 
)

Definition at line 265 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerLocalsModelPrivate::get(), and QScriptDebuggerConsoleGlobalObject::scheduleEvaluate().

269 {
270  return scheduleCommand(QScriptDebuggerCommand::evaluateCommand(contextIndex, program, fileName, lineNumber));
271 }
static QScriptDebuggerCommand evaluateCommand(int contextIndex, const QString &program, const QString &fileName=QString(), int lineNumber=1)
int scheduleCommand(const QScriptDebuggerCommand &command)

◆ scheduleForceReturn()

int QScriptDebuggerCommandSchedulerFrontend::scheduleForceReturn ( int  contextIndex,
const QScriptDebuggerValue value 
)

Definition at line 144 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerPrivate::debuggerEvent(), and QScriptDebuggerConsoleGlobalObject::scheduleForceReturn().

145 {
146  return scheduleCommand(QScriptDebuggerCommand::forceReturnCommand(contextIndex, value));
147 }
static QScriptDebuggerCommand forceReturnCommand(int contextIndex, const QScriptDebuggerValue &value)
int scheduleCommand(const QScriptDebuggerCommand &command)

◆ scheduleGetActivationObject()

int QScriptDebuggerCommandSchedulerFrontend::scheduleGetActivationObject ( int  contextIndex)

Definition at line 239 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerConsoleGlobalObject::scheduleGetActivationObject().

240 {
242 }
static QScriptDebuggerCommand getActivationObjectCommand(int contextIndex)
int scheduleCommand(const QScriptDebuggerCommand &command)

◆ scheduleGetBacktrace()

int QScriptDebuggerCommandSchedulerFrontend::scheduleGetBacktrace ( )

◆ scheduleGetBreakpointData()

int QScriptDebuggerCommandSchedulerFrontend::scheduleGetBreakpointData ( int  id)

◆ scheduleGetBreakpoints()

int QScriptDebuggerCommandSchedulerFrontend::scheduleGetBreakpoints ( )

◆ scheduleGetCompletions()

int QScriptDebuggerCommandSchedulerFrontend::scheduleGetCompletions ( int  contextIndex,
const QStringList path 
)

Definition at line 260 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptCompleteExpressionJob::start().

261 {
262  return scheduleCommand(QScriptDebuggerCommand::getCompletions(contextIndex, path));
263 }
int scheduleCommand(const QScriptDebuggerCommand &command)
static QScriptDebuggerCommand getCompletions(int contextIndex, const QStringList &path)

◆ scheduleGetContextCount()

int QScriptDebuggerCommandSchedulerFrontend::scheduleGetContextCount ( )

◆ scheduleGetContextId()

int QScriptDebuggerCommandSchedulerFrontend::scheduleGetContextId ( int  contextIndex)

Definition at line 229 of file qscriptdebuggercommandschedulerfrontend.cpp.

230 {
232 }
static QScriptDebuggerCommand getContextIdCommand(int contextIndex)
int scheduleCommand(const QScriptDebuggerCommand &command)

◆ scheduleGetContextInfo()

int QScriptDebuggerCommandSchedulerFrontend::scheduleGetContextInfo ( int  contextIndex)

◆ scheduleGetContextState()

int QScriptDebuggerCommandSchedulerFrontend::scheduleGetContextState ( int  contextIndex)

Definition at line 219 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerPrivate::createLocalsModel().

220 {
222 }
static QScriptDebuggerCommand getContextStateCommand(int contextIndex)
int scheduleCommand(const QScriptDebuggerCommand &command)

◆ scheduleGetPropertiesByIterator()

int QScriptDebuggerCommandSchedulerFrontend::scheduleGetPropertiesByIterator ( int  id,
int  count 
)

Definition at line 278 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerConsoleGlobalObject::scheduleGetPropertiesByIterator().

279 {
281 }
int scheduleCommand(const QScriptDebuggerCommand &command)
static QScriptDebuggerCommand getPropertiesByIteratorCommand(int id, int count)

◆ scheduleGetPropertyExpressionValue()

int QScriptDebuggerCommandSchedulerFrontend::scheduleGetPropertyExpressionValue ( int  contextIndex,
int  lineNumber,
const QStringList path 
)

Definition at line 254 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptToolTipJob::start().

256 {
257  return scheduleCommand(QScriptDebuggerCommand::getPropertyExpressionValue(contextIndex, lineNumber, path));
258 }
static QScriptDebuggerCommand getPropertyExpressionValue(int contextIndex, int lineNumber, const QStringList &path)
int scheduleCommand(const QScriptDebuggerCommand &command)

◆ scheduleGetScopeChain()

int QScriptDebuggerCommandSchedulerFrontend::scheduleGetScopeChain ( int  contextIndex)

Definition at line 244 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerLocalsModelPrivate::addTopLevelObject(), and QScriptDebuggerLocalsModel::init().

245 {
247 }
int scheduleCommand(const QScriptDebuggerCommand &command)
static QScriptDebuggerCommand getScopeChainCommand(int contextIndex)

◆ scheduleGetScriptData()

int QScriptDebuggerCommandSchedulerFrontend::scheduleGetScriptData ( qint64  id)

◆ scheduleGetScripts()

int QScriptDebuggerCommandSchedulerFrontend::scheduleGetScripts ( )

◆ scheduleGetScriptsDelta()

int QScriptDebuggerCommandSchedulerFrontend::scheduleGetScriptsDelta ( )

◆ scheduleGetThisObject()

int QScriptDebuggerCommandSchedulerFrontend::scheduleGetThisObject ( int  contextIndex)

◆ scheduleInterrupt()

int QScriptDebuggerCommandSchedulerFrontend::scheduleInterrupt ( )

Instructs the front-end to break at the next script statement, and returns a unique identifier associated with this command.

When the next script statement is encountered, the client will be notified, and the front-end will be ready to accept commands.

See also
scheduleContinue()

Definition at line 73 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerConsoleGlobalObject::scheduleInterrupt().

74 {
76 }
static QScriptDebuggerCommand interruptCommand()
int scheduleCommand(const QScriptDebuggerCommand &command)

◆ scheduleNewScriptObjectSnapshot()

int QScriptDebuggerCommandSchedulerFrontend::scheduleNewScriptObjectSnapshot ( )

◆ scheduleNewScriptValueIterator()

int QScriptDebuggerCommandSchedulerFrontend::scheduleNewScriptValueIterator ( const QScriptDebuggerValue object)

Definition at line 273 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerConsoleGlobalObject::scheduleNewScriptValueIterator().

274 {
276 }
static QScriptDebuggerCommand newScriptValueIteratorCommand(const QScriptDebuggerValue &object)
int scheduleCommand(const QScriptDebuggerCommand &command)

◆ scheduleResolveScript()

int QScriptDebuggerCommandSchedulerFrontend::scheduleResolveScript ( const QString fileName)

Definition at line 204 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerConsoleGlobalObject::scheduleResolveScript().

205 {
207 }
int scheduleCommand(const QScriptDebuggerCommand &command)
static QScriptDebuggerCommand resolveScriptCommand(const QString &fileName)

◆ scheduleRunToLocation() [1/2]

int QScriptDebuggerCommandSchedulerFrontend::scheduleRunToLocation ( const QString fileName,
int  lineNumber 
)

Instructs the front-end to continue evaluation until the location specified by the given fileName and lineNumber is reached.

Definition at line 130 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerPrivate::_q_runToCursor(), QScriptDebuggerPrivate::_q_runToNewScript(), and QScriptDebuggerConsoleGlobalObject::scheduleRunToLocation().

131 {
133 }
static QScriptDebuggerCommand runToLocationCommand(const QString &fileName, int lineNumber)
int scheduleCommand(const QScriptDebuggerCommand &command)

◆ scheduleRunToLocation() [2/2]

int QScriptDebuggerCommandSchedulerFrontend::scheduleRunToLocation ( qint64  scriptId,
int  lineNumber 
)

Instructs the front-end to continue evaluation until the location specified by the given scriptId and lineNumber is reached.

Definition at line 139 of file qscriptdebuggercommandschedulerfrontend.cpp.

140 {
142 }
static QScriptDebuggerCommand runToLocationCommand(const QString &fileName, int lineNumber)
int scheduleCommand(const QScriptDebuggerCommand &command)

◆ scheduleScriptObjectSnapshotCapture()

int QScriptDebuggerCommandSchedulerFrontend::scheduleScriptObjectSnapshotCapture ( int  id,
const QScriptDebuggerValue object 
)

Definition at line 310 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerLocalsModelPrivate::isTopLevelNode(), and QScriptDebuggerLocalsModel::sync().

311 {
313 }
int scheduleCommand(const QScriptDebuggerCommand &command)
static QScriptDebuggerCommand scriptObjectSnapshotCaptureCommand(int id, const QScriptDebuggerValue &object)

◆ scheduleScriptsCheckpoint()

int QScriptDebuggerCommandSchedulerFrontend::scheduleScriptsCheckpoint ( )

◆ scheduleScriptValueToString()

int QScriptDebuggerCommandSchedulerFrontend::scheduleScriptValueToString ( const QScriptDebuggerValue value)

Definition at line 288 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerConsoleGlobalObject::scheduleScriptValueToString().

289 {
291 }
static QScriptDebuggerCommand scriptValueToStringCommand(const QScriptDebuggerValue &value)
int scheduleCommand(const QScriptDebuggerCommand &command)

◆ scheduleSetBreakpoint() [1/2]

int QScriptDebuggerCommandSchedulerFrontend::scheduleSetBreakpoint ( const QString fileName,
int  lineNumber 
)

Definition at line 149 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerConsoleGlobalObject::scheduleSetBreakpoint(), and QScriptBreakpointsModel::~QScriptBreakpointsModel().

150 {
152 }
static QScriptDebuggerCommand setBreakpointCommand(const QString &fileName, int lineNumber)
int scheduleCommand(const QScriptDebuggerCommand &command)

◆ scheduleSetBreakpoint() [2/2]

int QScriptDebuggerCommandSchedulerFrontend::scheduleSetBreakpoint ( const QScriptBreakpointData data)

Definition at line 154 of file qscriptdebuggercommandschedulerfrontend.cpp.

155 {
157 }
static QScriptDebuggerCommand setBreakpointCommand(const QString &fileName, int lineNumber)
int scheduleCommand(const QScriptDebuggerCommand &command)

◆ scheduleSetBreakpointData()

int QScriptDebuggerCommandSchedulerFrontend::scheduleSetBreakpointData ( int  id,
const QScriptBreakpointData data 
)

Definition at line 179 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerConsoleGlobalObject::scheduleSetBreakpointData(), and QScriptBreakpointsModel::setBreakpoint().

180 {
182 }
static QScriptDebuggerCommand setBreakpointDataCommand(int id, const QScriptBreakpointData &data)
int scheduleCommand(const QScriptDebuggerCommand &command)

◆ scheduleSetScriptValueProperty()

int QScriptDebuggerCommandSchedulerFrontend::scheduleSetScriptValueProperty ( const QScriptDebuggerValue object,
const QString name,
const QScriptDebuggerValue value 
)

Definition at line 293 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerLocalsModelPrivate::get().

296 {
298 }
int scheduleCommand(const QScriptDebuggerCommand &command)
static QScriptDebuggerCommand setScriptValuePropertyCommand(const QScriptDebuggerValue &object, const QString &name, const QScriptDebuggerValue &value)

◆ scheduleStepInto()

int QScriptDebuggerCommandSchedulerFrontend::scheduleStepInto ( int  count = 1)

Instructs the front-end to step into the next script statement, and returns a unique identifier associated with this command.

Evaluation will automatically be continued, and the client()'s event() function will be called when the statement has been stepped into.

Definition at line 96 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerConsoleGlobalObject::scheduleStepInto().

97 {
99 }
int scheduleCommand(const QScriptDebuggerCommand &command)
static QScriptDebuggerCommand stepIntoCommand(int count=1)

◆ scheduleStepOut()

int QScriptDebuggerCommandSchedulerFrontend::scheduleStepOut ( )

Instructs the front-end to step out of the current script function, and returns a unique identifier associated with this command.

Evaluation will automatically be continued, and the client()'s event() function will be called when the script function has been stepped out of.

Definition at line 121 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerConsoleGlobalObject::scheduleStepOut().

122 {
124 }
int scheduleCommand(const QScriptDebuggerCommand &command)
static QScriptDebuggerCommand stepOutCommand()

◆ scheduleStepOver()

int QScriptDebuggerCommandSchedulerFrontend::scheduleStepOver ( int  count = 1)

Instructs the front-end to step over the next script statement, and returns a unique identifier associated with this command.

Evaluation will automatically be continued, and the client()'s event() function will be called when the statement has been stepped over.

Definition at line 108 of file qscriptdebuggercommandschedulerfrontend.cpp.

Referenced by QScriptDebuggerConsoleGlobalObject::scheduleStepOver().

109 {
111 }
static QScriptDebuggerCommand stepOverCommand(int count=1)
int scheduleCommand(const QScriptDebuggerCommand &command)

Properties

◆ m_responseHandler

QScriptDebuggerResponseHandlerInterface* QScriptDebuggerCommandSchedulerFrontend::m_responseHandler
private

Definition at line 141 of file qscriptdebuggercommandschedulerfrontend_p.h.

Referenced by scheduleCommand().

◆ m_scheduler

QScriptDebuggerCommandSchedulerInterface* QScriptDebuggerCommandSchedulerFrontend::m_scheduler
private

Definition at line 140 of file qscriptdebuggercommandschedulerfrontend_p.h.

Referenced by scheduleCommand().


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