Qt 4.8
Public Types | Public Functions | Static Public Functions | Properties | Friends | List of all members
QScriptDebuggerCommand Class Reference

The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend. More...

#include <qscriptdebuggercommand_p.h>

Public Types

enum  Attribute {
  ScriptID, FileName, LineNumber, Program,
  BreakpointID, BreakpointData, ContextIndex, ScriptValue,
  StepCount, IteratorID, Name, SubordinateScriptValue,
  SnapshotID, UserAttribute = 1000, MaxUserAttribute = 32767
}
 
enum  Type {
  None, Interrupt, Continue, StepInto,
  StepOver, StepOut, RunToLocation, RunToLocationByID,
  ForceReturn, Resume, SetBreakpoint, DeleteBreakpoint,
  DeleteAllBreakpoints, GetBreakpoints, GetBreakpointData, SetBreakpointData,
  GetScripts, GetScriptData, ScriptsCheckpoint, GetScriptsDelta,
  ResolveScript, GetBacktrace, GetContextCount, GetContextInfo,
  GetContextState, GetContextID, GetThisObject, GetActivationObject,
  GetScopeChain, ContextsCheckpoint, GetPropertyExpressionValue, GetCompletions,
  NewScriptObjectSnapshot, ScriptObjectSnapshotCapture, DeleteScriptObjectSnapshot, NewScriptValueIterator,
  GetPropertiesByIterator, DeleteScriptValueIterator, Evaluate, SetScriptValueProperty,
  ScriptValueToString, ClearExceptions, UserCommand = 1000, MaxUserCommand = 32767
}
 

Public Functions

QVariant attribute (Attribute attribute, const QVariant &defaultValue=QVariant()) const
 Returns the value of the given attribute, or defaultValue if the attribute is not defined. More...
 
QHash< Attribute, QVariantattributes () const
 
QScriptBreakpointData breakpointData () const
 
int breakpointId () const
 
int contextIndex () const
 
QString fileName () const
 Returns the FileName attribute of this command converted to a string. More...
 
int iteratorId () const
 
int lineNumber () const
 Returns the LineNumber attribute of this command converted to an int. More...
 
QString name () const
 
bool operator!= (const QScriptDebuggerCommand &other) const
 Returns true if this QScriptDebuggerCommand is not equal to the other command, otherwise returns false. More...
 
QScriptDebuggerCommandoperator= (const QScriptDebuggerCommand &other)
 Assigns the other value to this QScriptDebuggerCommand. More...
 
bool operator== (const QScriptDebuggerCommand &other) const
 Returns true if this QScriptDebuggerCommand is equal to the other command, otherwise returns false. More...
 
QString program () const
 
 QScriptDebuggerCommand ()
 Constructs a QScriptDebuggerCommand of type None. More...
 
 QScriptDebuggerCommand (Type type)
 Constructs a QScriptDebuggerCommand of the given type, with no attributes defined. More...
 
 QScriptDebuggerCommand (const QScriptDebuggerCommand &other)
 Constructs a QScriptDebuggerCommand that is a copy of the other command. More...
 
qint64 scriptId () const
 Returns the ScriptID attribute of this command converted to a qint64. More...
 
QScriptDebuggerValue scriptValue () const
 
void setAttribute (Attribute attribute, const QVariant &value)
 Sets the value of the given attribute. More...
 
void setBreakpointData (const QScriptBreakpointData &data)
 
void setBreakpointId (int id)
 
void setContextIndex (int index)
 
void setFileName (const QString &fileName)
 
void setIteratorId (int id)
 
void setLineNumber (int lineNumber)
 
void setName (const QString &name)
 
void setProgram (const QString &program)
 
void setScriptId (qint64 id)
 
void setScriptValue (const QScriptDebuggerValue &value)
 
void setSnapshotId (int id)
 
void setSubordinateScriptValue (const QScriptDebuggerValue &value)
 
int snapshotId () const
 
QScriptDebuggerValue subordinateScriptValue () const
 
Type type () const
 Returns the type of this command. More...
 
 ~QScriptDebuggerCommand ()
 Destroys this QScriptDebuggerCommand. More...
 

Static Public Functions

static QScriptDebuggerCommand clearExceptionsCommand ()
 
static QScriptDebuggerCommand contextsCheckpoint ()
 
static QScriptDebuggerCommand continueCommand ()
 
static QScriptDebuggerCommand deleteAllBreakpointsCommand ()
 
static QScriptDebuggerCommand deleteBreakpointCommand (int id)
 
static QScriptDebuggerCommand deleteScriptObjectSnapshotCommand (int id)
 
static QScriptDebuggerCommand deleteScriptValueIteratorCommand (int id)
 
static QScriptDebuggerCommand evaluateCommand (int contextIndex, const QString &program, const QString &fileName=QString(), int lineNumber=1)
 
static QScriptDebuggerCommand forceReturnCommand (int contextIndex, const QScriptDebuggerValue &value)
 
static QScriptDebuggerCommand getActivationObjectCommand (int contextIndex)
 
static QScriptDebuggerCommand getBacktraceCommand ()
 
static QScriptDebuggerCommand getBreakpointDataCommand (int id)
 
static QScriptDebuggerCommand getBreakpointsCommand ()
 
static QScriptDebuggerCommand getCompletions (int contextIndex, const QStringList &path)
 
static QScriptDebuggerCommand getContextCountCommand ()
 
static QScriptDebuggerCommand getContextIdCommand (int contextIndex)
 
static QScriptDebuggerCommand getContextInfoCommand (int contextIndex)
 
static QScriptDebuggerCommand getContextStateCommand (int contextIndex)
 
static QScriptDebuggerCommand getPropertiesByIteratorCommand (int id, int count)
 
static QScriptDebuggerCommand getPropertyExpressionValue (int contextIndex, int lineNumber, const QStringList &path)
 
static QScriptDebuggerCommand getScopeChainCommand (int contextIndex)
 
static QScriptDebuggerCommand getScriptDataCommand (qint64 id)
 
static QScriptDebuggerCommand getScriptsCommand ()
 
static QScriptDebuggerCommand getScriptsDeltaCommand ()
 
static QScriptDebuggerCommand getThisObjectCommand (int contextIndex)
 
static QScriptDebuggerCommand interruptCommand ()
 
static QScriptDebuggerCommand newScriptObjectSnapshotCommand ()
 
static QScriptDebuggerCommand newScriptValueIteratorCommand (const QScriptDebuggerValue &object)
 
static QScriptDebuggerCommand resolveScriptCommand (const QString &fileName)
 
static QScriptDebuggerCommand resumeCommand ()
 
static QScriptDebuggerCommand runToLocationCommand (const QString &fileName, int lineNumber)
 
static QScriptDebuggerCommand runToLocationCommand (qint64 scriptId, int lineNumber)
 
static QScriptDebuggerCommand scriptObjectSnapshotCaptureCommand (int id, const QScriptDebuggerValue &object)
 
static QScriptDebuggerCommand scriptsCheckpointCommand ()
 
static QScriptDebuggerCommand scriptValueToStringCommand (const QScriptDebuggerValue &value)
 
static QScriptDebuggerCommand setBreakpointCommand (const QString &fileName, int lineNumber)
 
static QScriptDebuggerCommand setBreakpointCommand (const QScriptBreakpointData &data)
 
static QScriptDebuggerCommand setBreakpointDataCommand (int id, const QScriptBreakpointData &data)
 
static QScriptDebuggerCommand setScriptValuePropertyCommand (const QScriptDebuggerValue &object, const QString &name, const QScriptDebuggerValue &value)
 
static QScriptDebuggerCommand stepIntoCommand (int count=1)
 
static QScriptDebuggerCommand stepOutCommand ()
 
static QScriptDebuggerCommand stepOverCommand (int count=1)
 

Properties

QScopedPointer< QScriptDebuggerCommandPrivated_ptr
 

Friends

Q_AUTOTEST_EXPORT QDataStreamoperator<< (QDataStream &, const QScriptDebuggerCommand &)
 Writes the given command to the specified stream. More...
 
Q_AUTOTEST_EXPORT QDataStreamoperator>> (QDataStream &, QScriptDebuggerCommand &)
 Reads a QScriptDebuggerCommand from the specified stream into the given command. More...
 

Detailed Description

The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

Since
4.5
Warning
This function is not part of the public interface.

A debugger command is described by a command type and zero or more attributes. Such commands are generated internally by the QScriptDebuggerFrontend class (through the scheduleXXX commands). A command is typically passed on to a QScriptDebuggerCommandExecutor that applies the command to a QScriptDebuggerBackend.

Definition at line 68 of file qscriptdebuggercommand_p.h.

Enumerations

◆ Attribute

Enumerator
ScriptID 
FileName 
LineNumber 
Program 
BreakpointID 
BreakpointData 
ContextIndex 
ScriptValue 
StepCount 
IteratorID 
Name 
SubordinateScriptValue 
SnapshotID 
UserAttribute 
MaxUserAttribute 

Definition at line 131 of file qscriptdebuggercommand_p.h.

◆ Type

Enumerator
None 
Interrupt 
Continue 
StepInto 
StepOver 
StepOut 
RunToLocation 
RunToLocationByID 
ForceReturn 
Resume 
SetBreakpoint 
DeleteBreakpoint 
DeleteAllBreakpoints 
GetBreakpoints 
GetBreakpointData 
SetBreakpointData 
GetScripts 
GetScriptData 
ScriptsCheckpoint 
GetScriptsDelta 
ResolveScript 
GetBacktrace 
GetContextCount 
GetContextInfo 
GetContextState 
GetContextID 
GetThisObject 
GetActivationObject 
GetScopeChain 
ContextsCheckpoint 
GetPropertyExpressionValue 
GetCompletions 
NewScriptObjectSnapshot 
ScriptObjectSnapshotCapture 
DeleteScriptObjectSnapshot 
NewScriptValueIterator 
GetPropertiesByIterator 
DeleteScriptValueIterator 
Evaluate 
SetScriptValueProperty 
ScriptValueToString 
ClearExceptions 
UserCommand 
MaxUserCommand 

Definition at line 74 of file qscriptdebuggercommand_p.h.

74  {
75  None,
76 
77  Interrupt,
78  Continue,
79  StepInto,
80  StepOver,
81  StepOut,
85  Resume,
86 
93 
94  GetScripts,
99 
100  GetBacktrace,
104  GetContextID,
111 
115 
119 
120  Evaluate,
121 
124 
126 
127  UserCommand = 1000,
128  MaxUserCommand = 32767
129  };

Constructors and Destructors

◆ QScriptDebuggerCommand() [1/3]

QScriptDebuggerCommand::QScriptDebuggerCommand ( )

Constructs a QScriptDebuggerCommand of type None.

Definition at line 94 of file qscriptdebuggercommand.cpp.

◆ QScriptDebuggerCommand() [2/3]

QScriptDebuggerCommand::QScriptDebuggerCommand ( Type  type)

Constructs a QScriptDebuggerCommand of the given type, with no attributes defined.

Definition at line 104 of file qscriptdebuggercommand.cpp.

106 {
107  d_ptr->type = type;
108 }
Type type() const
Returns the type of this command.
QScopedPointer< QScriptDebuggerCommandPrivate > d_ptr
QScriptDebuggerCommand::Type type

◆ QScriptDebuggerCommand() [3/3]

QScriptDebuggerCommand::QScriptDebuggerCommand ( const QScriptDebuggerCommand other)

Constructs a QScriptDebuggerCommand that is a copy of the other command.

Definition at line 114 of file qscriptdebuggercommand.cpp.

116 {
117  *d_ptr = *other.d_ptr;
118 }
QScopedPointer< QScriptDebuggerCommandPrivate > d_ptr

◆ ~QScriptDebuggerCommand()

QScriptDebuggerCommand::~QScriptDebuggerCommand ( )

Destroys this QScriptDebuggerCommand.

Definition at line 123 of file qscriptdebuggercommand.cpp.

124 {
125 }

Functions

◆ attribute()

QVariant QScriptDebuggerCommand::attribute ( Attribute  attribute,
const QVariant defaultValue = QVariant() 
) const

Returns the value of the given attribute, or defaultValue if the attribute is not defined.

Definition at line 149 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandExecutor::execute(), and setAttribute().

151 {
153  return d->attributes.value(attribute, defaultValue);
154 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.
QVariant attribute(Attribute attribute, const QVariant &defaultValue=QVariant()) const
Returns the value of the given attribute, or defaultValue if the attribute is not defined...

◆ attributes()

QHash< QScriptDebuggerCommand::Attribute, QVariant > QScriptDebuggerCommand::attributes ( ) const

Definition at line 169 of file qscriptdebuggercommand.cpp.

170 {
172  return d->attributes;
173 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ breakpointData()

QScriptBreakpointData QScriptDebuggerCommand::breakpointData ( ) const

Definition at line 253 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandExecutor::execute(), and QScriptDebuggerPrivate::handleResponse().

254 {
256  return qvariant_cast<QScriptBreakpointData>(d->attributes.value(BreakpointData));
257 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptBreakpointData class contains data associated with a breakpoint.
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.
T qvariant_cast(const QVariant &)
Definition: qvariant.h:571

◆ breakpointId()

int QScriptDebuggerCommand::breakpointId ( ) const

Definition at line 241 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandExecutor::execute(), and QScriptDebuggerPrivate::handleResponse().

242 {
244  return d->attributes.value(BreakpointID, -1).toInt();
245 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ clearExceptionsCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::clearExceptionsCommand ( )
static

Definition at line 657 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleClearExceptions().

658 {
660  return cmd;
661 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ contextIndex()

int QScriptDebuggerCommand::contextIndex ( ) const

Definition at line 277 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandExecutor::execute().

278 {
280  return d->attributes.value(ContextIndex, -1).toInt();
281 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ contextsCheckpoint()

QScriptDebuggerCommand QScriptDebuggerCommand::contextsCheckpoint ( )
static

Definition at line 558 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleContextsCheckpoint().

559 {
561  return cmd;
562 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ continueCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::continueCommand ( )
static

Definition at line 368 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleContinue().

369 {
371  return cmd;
372 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ deleteAllBreakpointsCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::deleteAllBreakpointsCommand ( )
static

Definition at line 445 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleDeleteAllBreakpoints().

446 {
448  return cmd;
449 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ deleteBreakpointCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::deleteBreakpointCommand ( int  id)
static

Definition at line 438 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleDeleteBreakpoint().

439 {
441  cmd.setBreakpointId(id);
442  return cmd;
443 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ deleteScriptObjectSnapshotCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::deleteScriptObjectSnapshotCommand ( int  id)
static

Definition at line 598 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleDeleteScriptObjectSnapshot().

599 {
601  cmd.setSnapshotId(id);
602  return cmd;
603 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ deleteScriptValueIteratorCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::deleteScriptValueIteratorCommand ( int  id)
static

Definition at line 621 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleDeleteScriptValueIterator().

622 {
624  cmd.setIteratorId(id);
625  return cmd;
626 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ evaluateCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::evaluateCommand ( int  contextIndex,
const QString program,
const QString fileName = QString(),
int  lineNumber = 1 
)
static

Definition at line 628 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleEvaluate().

630 {
632  cmd.setContextIndex(contextIndex);
633  cmd.setProgram(program);
634  cmd.setFileName(fileName);
635  cmd.setLineNumber(lineNumber);
636  return cmd;
637 }
int lineNumber() const
Returns the LineNumber attribute of this command converted to an int.
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ fileName()

QString QScriptDebuggerCommand::fileName ( ) const

Returns the FileName attribute of this command converted to a string.

This function is provided for convenience.

See also
attribute()

Definition at line 181 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandExecutor::execute(), and setFileName().

182 {
184  return d->attributes.value(FileName).toString();
185 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ forceReturnCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::forceReturnCommand ( int  contextIndex,
const QScriptDebuggerValue value 
)
static

Definition at line 410 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleForceReturn().

411 {
413  cmd.setContextIndex(contextIndex);
414  cmd.setScriptValue(value);
415  return cmd;
416 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ getActivationObjectCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::getActivationObjectCommand ( int  contextIndex)
static

Definition at line 544 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetActivationObject().

545 {
547  cmd.setContextIndex(contextIndex);
548  return cmd;
549 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ getBacktraceCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::getBacktraceCommand ( )
static

Definition at line 504 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetBacktrace().

505 {
507  return cmd;
508 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ getBreakpointDataCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::getBreakpointDataCommand ( int  id)
static

Definition at line 457 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetBreakpointData().

458 {
460  cmd.setBreakpointId(id);
461  return cmd;
462 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ getBreakpointsCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::getBreakpointsCommand ( )
static

Definition at line 451 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetBreakpoints().

452 {
454  return cmd;
455 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ getCompletions()

QScriptDebuggerCommand QScriptDebuggerCommand::getCompletions ( int  contextIndex,
const QStringList path 
)
static

Definition at line 574 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetCompletions().

576 {
578  cmd.setContextIndex(contextIndex);
579  cmd.setAttribute(UserAttribute, path);
580  return cmd;
581 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ getContextCountCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::getContextCountCommand ( )
static

Definition at line 510 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetContextCount().

511 {
513  return cmd;
514 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ getContextIdCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::getContextIdCommand ( int  contextIndex)
static

Definition at line 530 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetContextId().

531 {
533  cmd.setContextIndex(contextIndex);
534  return cmd;
535 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ getContextInfoCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::getContextInfoCommand ( int  contextIndex)
static

Definition at line 523 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetContextInfo().

524 {
526  cmd.setContextIndex(contextIndex);
527  return cmd;
528 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ getContextStateCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::getContextStateCommand ( int  contextIndex)
static

Definition at line 516 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetContextState().

517 {
519  cmd.setContextIndex(contextIndex);
520  return cmd;
521 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ getPropertiesByIteratorCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::getPropertiesByIteratorCommand ( int  id,
int  count 
)
static

Definition at line 613 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetPropertiesByIterator().

614 {
615  Q_UNUSED(count);
617  cmd.setIteratorId(id);
618  return cmd;
619 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ getPropertyExpressionValue()

QScriptDebuggerCommand QScriptDebuggerCommand::getPropertyExpressionValue ( int  contextIndex,
int  lineNumber,
const QStringList path 
)
static

Definition at line 564 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetPropertyExpressionValue().

566 {
568  cmd.setContextIndex(contextIndex);
569  cmd.setLineNumber(lineNumber);
570  cmd.setAttribute(UserAttribute, path);
571  return cmd;
572 }
int lineNumber() const
Returns the LineNumber attribute of this command converted to an int.
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ getScopeChainCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::getScopeChainCommand ( int  contextIndex)
static

Definition at line 551 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetScopeChain().

552 {
554  cmd.setContextIndex(contextIndex);
555  return cmd;
556 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ getScriptDataCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::getScriptDataCommand ( qint64  id)
static

Definition at line 478 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetScriptData().

479 {
481  cmd.setScriptId(id);
482  return cmd;
483 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ getScriptsCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::getScriptsCommand ( )
static

Definition at line 472 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetScripts().

473 {
475  return cmd;
476 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ getScriptsDeltaCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::getScriptsDeltaCommand ( )
static

Definition at line 491 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetScriptsDelta().

492 {
494  return cmd;
495 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ getThisObjectCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::getThisObjectCommand ( int  contextIndex)
static

Definition at line 537 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetThisObject().

538 {
540  cmd.setContextIndex(contextIndex);
541  return cmd;
542 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ interruptCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::interruptCommand ( )
static

Definition at line 362 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleInterrupt().

363 {
365  return cmd;
366 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ iteratorId()

int QScriptDebuggerCommand::iteratorId ( ) const

Definition at line 289 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandExecutor::execute().

290 {
292  return d->attributes.value(IteratorID, -1).toInt();
293 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ lineNumber()

int QScriptDebuggerCommand::lineNumber ( ) const

Returns the LineNumber attribute of this command converted to an int.

This function is provided for convenience.

See also
attribute()

Definition at line 199 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandExecutor::execute(), and setLineNumber().

200 {
202  return d->attributes.value(LineNumber, -1).toInt();
203 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ name()

QString QScriptDebuggerCommand::name ( ) const

Definition at line 301 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandExecutor::execute(), and setName().

302 {
304  return d->attributes.value(Name).toString();
305 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ newScriptObjectSnapshotCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::newScriptObjectSnapshotCommand ( )
static

Definition at line 583 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleNewScriptObjectSnapshot().

584 {
586  return cmd;
587 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ newScriptValueIteratorCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::newScriptValueIteratorCommand ( const QScriptDebuggerValue object)
static

Definition at line 605 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleNewScriptValueIterator().

606 {
609  cmd.setScriptValue(object);
610  return cmd;
611 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
Type type() const
Returns the type of this command.
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ operator!=()

bool QScriptDebuggerCommand::operator!= ( const QScriptDebuggerCommand other) const

Returns true if this QScriptDebuggerCommand is not equal to the other command, otherwise returns false.

Definition at line 357 of file qscriptdebuggercommand.cpp.

358 {
359  return !(*this == other);
360 }

◆ operator=()

QScriptDebuggerCommand & QScriptDebuggerCommand::operator= ( const QScriptDebuggerCommand other)

Assigns the other value to this QScriptDebuggerCommand.

Definition at line 130 of file qscriptdebuggercommand.cpp.

131 {
132  *d_ptr = *other.d_ptr;
133  return *this;
134 }
QScopedPointer< QScriptDebuggerCommandPrivate > d_ptr

◆ operator==()

bool QScriptDebuggerCommand::operator== ( const QScriptDebuggerCommand other) const

Returns true if this QScriptDebuggerCommand is equal to the other command, otherwise returns false.

Definition at line 341 of file qscriptdebuggercommand.cpp.

342 {
344  const QScriptDebuggerCommandPrivate *od = other.d_func();
345  if (d == od)
346  return true;
347  if (!d || !od)
348  return false;
349  return ((d->type == od->type)
350  && (d->attributes == od->attributes));
351 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
QHash< QScriptDebuggerCommand::Attribute, QVariant > attributes
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.
QScriptDebuggerCommand::Type type

◆ program()

QString QScriptDebuggerCommand::program ( ) const

Definition at line 229 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandExecutor::execute(), and setProgram().

230 {
232  return d->attributes.value(Program).toString();
233 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ resolveScriptCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::resolveScriptCommand ( const QString fileName)
static

Definition at line 497 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleResolveScript().

498 {
500  cmd.setFileName(fileName);
501  return cmd;
502 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ resumeCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::resumeCommand ( )
static

Definition at line 418 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerFrontendPrivate::event().

419 {
421  return cmd;
422 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ runToLocationCommand() [1/2]

QScriptDebuggerCommand QScriptDebuggerCommand::runToLocationCommand ( const QString fileName,
int  lineNumber 
)
static

Definition at line 394 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleRunToLocation().

395 {
397  cmd.setFileName(fileName);
398  cmd.setLineNumber(lineNumber);
399  return cmd;
400 }
int lineNumber() const
Returns the LineNumber attribute of this command converted to an int.
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ runToLocationCommand() [2/2]

QScriptDebuggerCommand QScriptDebuggerCommand::runToLocationCommand ( qint64  scriptId,
int  lineNumber 
)
static

Definition at line 402 of file qscriptdebuggercommand.cpp.

403 {
405  cmd.setScriptId(scriptId);
406  cmd.setLineNumber(lineNumber);
407  return cmd;
408 }
int lineNumber() const
Returns the LineNumber attribute of this command converted to an int.
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.
qint64 scriptId() const
Returns the ScriptID attribute of this command converted to a qint64.

◆ scriptId()

qint64 QScriptDebuggerCommand::scriptId ( ) const

Returns the ScriptID attribute of this command converted to a qint64.

This function is provided for convenience.

See also
attribute()

Definition at line 217 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandExecutor::execute().

218 {
220  return d->attributes.value(ScriptID, -1).toLongLong();
221 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ scriptObjectSnapshotCaptureCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::scriptObjectSnapshotCaptureCommand ( int  id,
const QScriptDebuggerValue object 
)
static

Definition at line 589 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleScriptObjectSnapshotCapture().

590 {
593  cmd.setSnapshotId(id);
594  cmd.setScriptValue(object);
595  return cmd;
596 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
Type type() const
Returns the type of this command.
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ scriptsCheckpointCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::scriptsCheckpointCommand ( )
static

Definition at line 485 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleScriptsCheckpoint().

486 {
488  return cmd;
489 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ scriptValue()

QScriptDebuggerValue QScriptDebuggerCommand::scriptValue ( ) const

Definition at line 265 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandExecutor::execute().

266 {
268  return qvariant_cast<QScriptDebuggerValue>(d->attributes.value(ScriptValue));
269 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.
The QScriptDebuggerValue class represents a script value.
T qvariant_cast(const QVariant &)
Definition: qvariant.h:571

◆ scriptValueToStringCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::scriptValueToStringCommand ( const QScriptDebuggerValue value)
static

Definition at line 639 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleScriptValueToString().

640 {
642  cmd.setScriptValue(value);
643  return cmd;
644 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ setAttribute()

void QScriptDebuggerCommand::setAttribute ( Attribute  attribute,
const QVariant value 
)

Sets the value of the given attribute.

Definition at line 159 of file qscriptdebuggercommand.cpp.

Referenced by getCompletions(), getPropertyExpressionValue(), stepIntoCommand(), and stepOverCommand().

161 {
163  if (!value.isValid())
164  d->attributes.remove(attribute);
165  else
166  d->attributes[attribute] = value;
167 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.
QVariant attribute(Attribute attribute, const QVariant &defaultValue=QVariant()) const
Returns the value of the given attribute, or defaultValue if the attribute is not defined...
bool isValid() const
Returns true if the storage type of this variant is not QVariant::Invalid; otherwise returns false...
Definition: qvariant.h:485

◆ setBreakpointCommand() [1/2]

QScriptDebuggerCommand QScriptDebuggerCommand::setBreakpointCommand ( const QString fileName,
int  lineNumber 
)
static

Definition at line 424 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleSetBreakpoint().

425 {
427  cmd.setBreakpointData(QScriptBreakpointData(fileName, lineNumber));
428  return cmd;
429 }
int lineNumber() const
Returns the LineNumber attribute of this command converted to an int.
The QScriptBreakpointData class contains data associated with a breakpoint.
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ setBreakpointCommand() [2/2]

QScriptDebuggerCommand QScriptDebuggerCommand::setBreakpointCommand ( const QScriptBreakpointData data)
static

Definition at line 431 of file qscriptdebuggercommand.cpp.

432 {
434  cmd.setBreakpointData(data);
435  return cmd;
436 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ setBreakpointData()

void QScriptDebuggerCommand::setBreakpointData ( const QScriptBreakpointData data)

Definition at line 259 of file qscriptdebuggercommand.cpp.

Referenced by setBreakpointCommand(), and setBreakpointDataCommand().

260 {
262  d->attributes[BreakpointData] = QVariant::fromValue(data);
263 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
static QVariant fromValue(const T &value)
Returns a QVariant containing a copy of value.
Definition: qvariant.h:336
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ setBreakpointDataCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::setBreakpointDataCommand ( int  id,
const QScriptBreakpointData data 
)
static

Definition at line 464 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleSetBreakpointData().

465 {
467  cmd.setBreakpointId(id);
468  cmd.setBreakpointData(data);
469  return cmd;
470 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ setBreakpointId()

void QScriptDebuggerCommand::setBreakpointId ( int  id)

Definition at line 247 of file qscriptdebuggercommand.cpp.

Referenced by deleteBreakpointCommand(), getBreakpointDataCommand(), and setBreakpointDataCommand().

248 {
250  d->attributes[BreakpointID] = id;
251 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ setContextIndex()

void QScriptDebuggerCommand::setContextIndex ( int  index)

Definition at line 283 of file qscriptdebuggercommand.cpp.

Referenced by evaluateCommand(), forceReturnCommand(), getActivationObjectCommand(), getCompletions(), getContextIdCommand(), getContextInfoCommand(), getContextStateCommand(), getPropertyExpressionValue(), getScopeChainCommand(), and getThisObjectCommand().

284 {
286  d->attributes[ContextIndex] = index;
287 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.
quint16 index

◆ setFileName()

void QScriptDebuggerCommand::setFileName ( const QString fileName)

Definition at line 187 of file qscriptdebuggercommand.cpp.

Referenced by evaluateCommand(), resolveScriptCommand(), and runToLocationCommand().

188 {
190  d->attributes[FileName] = fileName;
191 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
QString fileName() const
Returns the FileName attribute of this command converted to a string.
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ setIteratorId()

void QScriptDebuggerCommand::setIteratorId ( int  id)

Definition at line 295 of file qscriptdebuggercommand.cpp.

Referenced by deleteScriptValueIteratorCommand(), and getPropertiesByIteratorCommand().

296 {
298  d->attributes[IteratorID] = id;
299 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ setLineNumber()

void QScriptDebuggerCommand::setLineNumber ( int  lineNumber)

Definition at line 205 of file qscriptdebuggercommand.cpp.

Referenced by evaluateCommand(), getPropertyExpressionValue(), and runToLocationCommand().

206 {
208  d->attributes[LineNumber] = lineNumber;
209 }
double d
Definition: qnumeric_p.h:62
int lineNumber() const
Returns the LineNumber attribute of this command converted to an int.
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ setName()

void QScriptDebuggerCommand::setName ( const QString name)

Definition at line 307 of file qscriptdebuggercommand.cpp.

Referenced by setScriptValuePropertyCommand().

308 {
310  d->attributes[Name] = name;
311 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ setProgram()

void QScriptDebuggerCommand::setProgram ( const QString program)

Definition at line 235 of file qscriptdebuggercommand.cpp.

Referenced by evaluateCommand().

236 {
238  d->attributes[Program] = program;
239 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ setScriptId()

void QScriptDebuggerCommand::setScriptId ( qint64  id)

Definition at line 223 of file qscriptdebuggercommand.cpp.

Referenced by getScriptDataCommand(), and runToLocationCommand().

224 {
226  d->attributes[ScriptID] = id;
227 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ setScriptValue()

void QScriptDebuggerCommand::setScriptValue ( const QScriptDebuggerValue value)

Definition at line 271 of file qscriptdebuggercommand.cpp.

Referenced by forceReturnCommand(), newScriptValueIteratorCommand(), scriptObjectSnapshotCaptureCommand(), scriptValueToStringCommand(), and setScriptValuePropertyCommand().

272 {
274  d->attributes[ScriptValue] = QVariant::fromValue(value);
275 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
static QVariant fromValue(const T &value)
Returns a QVariant containing a copy of value.
Definition: qvariant.h:336
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ setScriptValuePropertyCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::setScriptValuePropertyCommand ( const QScriptDebuggerValue object,
const QString name,
const QScriptDebuggerValue value 
)
static

Definition at line 646 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleSetScriptValueProperty().

649 {
651  cmd.setScriptValue(object);
652  cmd.setName(name);
653  cmd.setSubordinateScriptValue(value);
654  return cmd;
655 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ setSnapshotId()

void QScriptDebuggerCommand::setSnapshotId ( int  id)

Definition at line 331 of file qscriptdebuggercommand.cpp.

Referenced by deleteScriptObjectSnapshotCommand(), and scriptObjectSnapshotCaptureCommand().

332 {
334  d->attributes[SnapshotID] = id;
335 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ setSubordinateScriptValue()

void QScriptDebuggerCommand::setSubordinateScriptValue ( const QScriptDebuggerValue value)

Definition at line 319 of file qscriptdebuggercommand.cpp.

Referenced by setScriptValuePropertyCommand().

320 {
322  d->attributes[SubordinateScriptValue] = QVariant::fromValue(value);
323 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
static QVariant fromValue(const T &value)
Returns a QVariant containing a copy of value.
Definition: qvariant.h:336
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ snapshotId()

int QScriptDebuggerCommand::snapshotId ( ) const

Definition at line 325 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandExecutor::execute().

326 {
328  return d->attributes.value(SnapshotID, -1).toInt();
329 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ stepIntoCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::stepIntoCommand ( int  count = 1)
static

Definition at line 374 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleStepInto().

375 {
377  cmd.setAttribute(StepCount, count);
378  return cmd;
379 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ stepOutCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::stepOutCommand ( )
static

Definition at line 388 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleStepOut().

389 {
391  return cmd;
392 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ stepOverCommand()

QScriptDebuggerCommand QScriptDebuggerCommand::stepOverCommand ( int  count = 1)
static

Definition at line 381 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleStepOver().

382 {
384  cmd.setAttribute(StepCount, count);
385  return cmd;
386 }
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

◆ subordinateScriptValue()

QScriptDebuggerValue QScriptDebuggerCommand::subordinateScriptValue ( ) const

Definition at line 313 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandExecutor::execute().

314 {
316  return qvariant_cast<QScriptDebuggerValue>(d->attributes.value(SubordinateScriptValue));
317 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.
The QScriptDebuggerValue class represents a script value.
T qvariant_cast(const QVariant &)
Definition: qvariant.h:571

◆ type()

QScriptDebuggerCommand::Type QScriptDebuggerCommand::type ( ) const

Returns the type of this command.

Definition at line 139 of file qscriptdebuggercommand.cpp.

Referenced by QScriptDebuggerCommandExecutor::execute(), QScriptDebuggerPrivate::handleResponse(), newScriptValueIteratorCommand(), operator>>(), QScriptDebuggerCommand(), QScriptDebuggerPrivate::scheduleCommand(), and scriptObjectSnapshotCaptureCommand().

140 {
142  return d->type;
143 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

Friends and Related Functions

◆ operator<<

QDataStream & operator<< ( QDataStream out,
const QScriptDebuggerCommand command 
)
friend

Writes the given command to the specified stream.

Definition at line 672 of file qscriptdebuggercommand.cpp.

673 {
674  const QScriptDebuggerCommandPrivate *d = command.d_ptr.data();
675  out << (quint32)d->type;
676  out << (qint32)d->attributes.size();
678  for (it = d->attributes.constBegin(); it != d->attributes.constEnd(); ++it) {
679  out << (quint32)it.key();
680  out << it.value();
681  }
682  return out;
683 }
double d
Definition: qnumeric_p.h:62
int qint32
Definition: qglobal.h:937
T * data() const
Returns the value of the pointer referenced by this object.
#define it(className, varName)
The QHash class is a template class that provides a hash-table-based dictionary.
Definition: qdatastream.h:66
const T value(const Key &key) const
Returns the value associated with the key.
Definition: qhash.h:606
QHash< QScriptDebuggerCommand::Attribute, QVariant > attributes
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the hash.
Definition: qhash.h:466
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the hash...
Definition: qhash.h:469
int size() const
Returns the number of items in the hash.
Definition: qhash.h:295
const Key key(const T &value) const
Returns the first key mapped to value.
Definition: qhash.h:674
unsigned int quint32
Definition: qglobal.h:938
QScopedPointer< QScriptDebuggerCommandPrivate > d_ptr
QScriptDebuggerCommand::Type type

◆ operator>>

QDataStream & operator>> ( QDataStream in,
QScriptDebuggerCommand command 
)
friend

Reads a QScriptDebuggerCommand from the specified stream into the given command.

Definition at line 695 of file qscriptdebuggercommand.cpp.

696 {
698 
699  quint32 type;
700  in >> type;
702 
703  qint32 attribCount;
704  in >> attribCount;
706  for (qint32 i = 0; i < attribCount; ++i) {
707  quint32 key;
708  in >> key;
709  QVariant value;
710  in >> value;
711  attribs[QScriptDebuggerCommand::Attribute(key)] = value;
712  }
713  d->attributes = attribs;
714 
715  return in;
716 }
The QVariant class acts like a union for the most common Qt data types.
Definition: qvariant.h:92
double d
Definition: qnumeric_p.h:62
int qint32
Definition: qglobal.h:937
T * data() const
Returns the value of the pointer referenced by this object.
Type type() const
Returns the type of this command.
QHash< QScriptDebuggerCommand::Attribute, QVariant > attributes
int key
unsigned int quint32
Definition: qglobal.h:938
QScopedPointer< QScriptDebuggerCommandPrivate > d_ptr
QScriptDebuggerCommand::Type type

Properties

◆ d_ptr

QScopedPointer<QScriptDebuggerCommandPrivate> QScriptDebuggerCommand::d_ptr
private

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