Qt 4.8
Classes | Typedefs | Enumerations | Functions
qjsdebuggeragent_p.h File Reference
#include <QtScript/qscriptengineagent.h>
#include <QtCore/qset.h>

Go to the source code of this file.

Classes

struct  JSAgentBreakpointData
 
struct  JSAgentStackData
 
struct  JSAgentWatchData
 
class  QJSDebuggerAgent
 

Typedefs

typedef QSet< JSAgentBreakpointDataJSAgentBreakpoints
 

Enumerations

enum  JSCoverageMessage {
  CoverageLocation, CoverageScriptLoad, CoveragePosChange, CoverageFuncEntry,
  CoverageFuncExit, CoverageComplete, CoverageMaximumMessage
}
 
enum  JSDebuggerState {
  NoState, SteppingIntoState, SteppingOverState, SteppingOutState,
  StoppedState
}
 

Functions

QDataStreamoperator<< (QDataStream &s, const JSAgentWatchData &data)
 
QDataStreamoperator<< (QDataStream &s, const JSAgentStackData &data)
 
QDataStreamoperator<< (QDataStream &s, const JSAgentBreakpointData &data)
 
bool operator== (const JSAgentBreakpointData &b1, const JSAgentBreakpointData &b2)
 
QDataStreamoperator>> (QDataStream &s, JSAgentWatchData &data)
 
QDataStreamoperator>> (QDataStream &s, JSAgentStackData &data)
 
QDataStreamoperator>> (QDataStream &s, JSAgentBreakpointData &data)
 
uint qHash (const JSAgentBreakpointData &b)
 

Typedef Documentation

◆ JSAgentBreakpoints

Definition at line 138 of file qjsdebuggeragent_p.h.

Enumeration Type Documentation

◆ JSCoverageMessage

Enumerator
CoverageLocation 
CoverageScriptLoad 
CoveragePosChange 
CoverageFuncEntry 
CoverageFuncExit 
CoverageComplete 
CoverageMaximumMessage 

Definition at line 81 of file qjsdebuggeragent_p.h.

◆ JSDebuggerState

Enumerator
NoState 
SteppingIntoState 
SteppingOverState 
SteppingOutState 
StoppedState 

Definition at line 72 of file qjsdebuggeragent_p.h.

Function Documentation

◆ operator<<() [1/3]

QDataStream& operator<< ( QDataStream s,
const JSAgentWatchData data 
)
inline

Definition at line 102 of file qjsdebuggeragent_p.h.

103 {
104  return s << data.exp << data.name << data.value
105  << data.type << data.hasChildren << data.objectId;
106 }

◆ operator<<() [2/3]

QDataStream& operator<< ( QDataStream s,
const JSAgentStackData data 
)
inline

Definition at line 121 of file qjsdebuggeragent_p.h.

122 {
123  return s << data.functionName << data.fileUrl << data.lineNumber;
124 }

◆ operator<<() [3/3]

QDataStream& operator<< ( QDataStream s,
const JSAgentBreakpointData data 
)
inline

Definition at line 140 of file qjsdebuggeragent_p.h.

141 {
142  return s << data.functionName << data.fileUrl << data.lineNumber;
143 }

◆ operator==()

bool operator== ( const JSAgentBreakpointData b1,
const JSAgentBreakpointData b2 
)
inline

Definition at line 150 of file qjsdebuggeragent_p.h.

151 {
152  return b1.lineNumber == b2.lineNumber && b1.fileUrl == b2.fileUrl;
153 }

◆ operator>>() [1/3]

QDataStream& operator>> ( QDataStream s,
JSAgentWatchData data 
)
inline

Definition at line 108 of file qjsdebuggeragent_p.h.

109 {
110  return s >> data.exp >> data.name >> data.value
111  >> data.type >> data.hasChildren >> data.objectId;
112 }

◆ operator>>() [2/3]

QDataStream& operator>> ( QDataStream s,
JSAgentStackData data 
)
inline

Definition at line 126 of file qjsdebuggeragent_p.h.

127 {
128  return s >> data.functionName >> data.fileUrl >> data.lineNumber;
129 }

◆ operator>>() [3/3]

QDataStream& operator>> ( QDataStream s,
JSAgentBreakpointData data 
)
inline

Definition at line 145 of file qjsdebuggeragent_p.h.

146 {
147  return s >> data.functionName >> data.fileUrl >> data.lineNumber;
148 }

◆ qHash()

uint qHash ( const JSAgentBreakpointData b)
inline

Definition at line 155 of file qjsdebuggeragent_p.h.

156 {
157  return b.lineNumber ^ qHash(b.fileUrl);
158 }
uint qHash(const QUrl &url)
Definition: qurl.h:285