Qt 4.8
|
The QScriptDebuggerResponse class represents a front-end's response to a QScriptDebuggerCommand. More...
#include <qscriptdebuggerresponse_p.h>
Public Types | |
enum | Error { NoError, InvalidContextIndex, InvalidArgumentIndex, InvalidScriptID, InvalidBreakpointID, UserError = 1000, MaxUserError = 32767 } |
Properties | |
QScopedPointer< QScriptDebuggerResponsePrivate > | d_ptr |
Friends | |
Q_AUTOTEST_EXPORT QDataStream & | operator<< (QDataStream &, const QScriptDebuggerResponse &) |
Writes the given response to the specified stream. More... | |
Q_AUTOTEST_EXPORT QDataStream & | operator>> (QDataStream &, QScriptDebuggerResponse &) |
Reads a QScriptDebuggerResponse from the specified stream into the given response. More... | |
The QScriptDebuggerResponse class represents a front-end's response to a QScriptDebuggerCommand.
A response contains an error code and result.
Definition at line 72 of file qscriptdebuggerresponse_p.h.
Enumerator | |
---|---|
NoError | |
InvalidContextIndex | |
InvalidArgumentIndex | |
InvalidScriptID | |
InvalidBreakpointID | |
UserError | |
MaxUserError |
Definition at line 78 of file qscriptdebuggerresponse_p.h.
QScriptDebuggerResponse::QScriptDebuggerResponse | ( | ) |
Definition at line 94 of file qscriptdebuggerresponse.cpp.
QScriptDebuggerResponse::QScriptDebuggerResponse | ( | const QScriptDebuggerResponse & | other | ) |
Definition at line 99 of file qscriptdebuggerresponse.cpp.
QScriptDebuggerResponse::~QScriptDebuggerResponse | ( | ) |
Definition at line 105 of file qscriptdebuggerresponse.cpp.
bool QScriptDebuggerResponse::async | ( | ) | const |
Definition at line 279 of file qscriptdebuggerresponse.cpp.
Referenced by debuggerResponseToScriptValue(), QScriptDebuggerPrivate::handleResponse(), and setAsync().
QScriptDebuggerResponse::Error QScriptDebuggerResponse::error | ( | ) | const |
Returns the error code of this response.
Definition at line 118 of file qscriptdebuggerresponse.cpp.
Referenced by debuggerResponseToScriptValue(), QScriptDebuggerPrivate::handleResponse(), operator>>(), and setError().
bool QScriptDebuggerResponse::operator!= | ( | const QScriptDebuggerResponse & | other | ) | const |
Returns true if this QScriptDebuggerResponse is not equal to the other response, otherwise returns false.
Definition at line 312 of file qscriptdebuggerresponse.cpp.
QScriptDebuggerResponse & QScriptDebuggerResponse::operator= | ( | const QScriptDebuggerResponse & | other | ) |
Definition at line 109 of file qscriptdebuggerresponse.cpp.
bool QScriptDebuggerResponse::operator== | ( | const QScriptDebuggerResponse & | other | ) | const |
Returns true if this QScriptDebuggerResponse is equal to the other response, otherwise returns false.
Definition at line 295 of file qscriptdebuggerresponse.cpp.
QVariant QScriptDebuggerResponse::result | ( | ) | const |
Returns the result of this response.
This function is provided for convenience.
Definition at line 137 of file qscriptdebuggerresponse.cpp.
Referenced by debuggerResponseToScriptValue(), QScriptCompleteExpressionJob::handleResponse(), QScriptToolTipJob::handleResponse(), QScriptDebuggerLocalsModelPrivate::isTopLevelNode(), and QScriptDebuggerLocalsModel::sync().
QScriptBreakpointData QScriptDebuggerResponse::resultAsBreakpointData | ( | ) | const |
Definition at line 231 of file qscriptdebuggerresponse.cpp.
QScriptBreakpointMap QScriptDebuggerResponse::resultAsBreakpoints | ( | ) | const |
Definition at line 237 of file qscriptdebuggerresponse.cpp.
QScriptContextInfo QScriptDebuggerResponse::resultAsContextInfo | ( | ) | const |
Definition at line 273 of file qscriptdebuggerresponse.cpp.
Referenced by QScriptDebuggerPrivate::createLocalsModel().
int QScriptDebuggerResponse::resultAsInt | ( | ) | const |
Definition at line 213 of file qscriptdebuggerresponse.cpp.
Referenced by QScriptDebuggerPrivate::createLocalsModel(), QScriptDebuggerPrivate::handleResponse(), and QScriptDebuggerLocalsModelPrivate::isTopLevelNode().
qint64 QScriptDebuggerResponse::resultAsLongLong | ( | ) | const |
Definition at line 219 of file qscriptdebuggerresponse.cpp.
QScriptScriptData QScriptDebuggerResponse::resultAsScriptData | ( | ) | const |
Definition at line 249 of file qscriptdebuggerresponse.cpp.
Referenced by QScriptDebuggerShowLineJob::handleResponse().
QScriptScriptMap QScriptDebuggerResponse::resultAsScripts | ( | ) | const |
Definition at line 243 of file qscriptdebuggerresponse.cpp.
Referenced by QScriptCompleteScriptsJob::handleResponse().
QScriptDebuggerValue QScriptDebuggerResponse::resultAsScriptValue | ( | ) | const |
Definition at line 255 of file qscriptdebuggerresponse.cpp.
Referenced by QScriptDebuggerLocalsModelPrivate::addTopLevelObject(), and QScriptDebuggerLocalsModel::init().
QScriptDebuggerValueList QScriptDebuggerResponse::resultAsScriptValueList | ( | ) | const |
Definition at line 261 of file qscriptdebuggerresponse.cpp.
Referenced by QScriptDebuggerLocalsModelPrivate::addTopLevelObject(), and QScriptDebuggerLocalsModel::init().
QScriptDebuggerValuePropertyList QScriptDebuggerResponse::resultAsScriptValuePropertyList | ( | ) | const |
Definition at line 267 of file qscriptdebuggerresponse.cpp.
QString QScriptDebuggerResponse::resultAsString | ( | ) | const |
Definition at line 225 of file qscriptdebuggerresponse.cpp.
void QScriptDebuggerResponse::setAsync | ( | bool | async | ) |
Definition at line 285 of file qscriptdebuggerresponse.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute().
void QScriptDebuggerResponse::setError | ( | Error | error | ) |
Sets the error code of this response.
Definition at line 127 of file qscriptdebuggerresponse.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute().
void QScriptDebuggerResponse::setResult | ( | const QVariant & | value | ) |
Sets the Result attribute of this response to the given value.
This function is provided for convenience.
Definition at line 147 of file qscriptdebuggerresponse.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute().
void QScriptDebuggerResponse::setResult | ( | int | value | ) |
Definition at line 153 of file qscriptdebuggerresponse.cpp.
void QScriptDebuggerResponse::setResult | ( | const QString & | value | ) |
Definition at line 159 of file qscriptdebuggerresponse.cpp.
void QScriptDebuggerResponse::setResult | ( | const QScriptBreakpointData & | data | ) |
Definition at line 165 of file qscriptdebuggerresponse.cpp.
void QScriptDebuggerResponse::setResult | ( | const QScriptBreakpointMap & | breakpoints | ) |
Definition at line 171 of file qscriptdebuggerresponse.cpp.
void QScriptDebuggerResponse::setResult | ( | const QScriptScriptMap & | scripts | ) |
Definition at line 177 of file qscriptdebuggerresponse.cpp.
void QScriptDebuggerResponse::setResult | ( | const QScriptScriptData & | data | ) |
Definition at line 183 of file qscriptdebuggerresponse.cpp.
void QScriptDebuggerResponse::setResult | ( | const QScriptDebuggerValue & | value | ) |
Definition at line 189 of file qscriptdebuggerresponse.cpp.
void QScriptDebuggerResponse::setResult | ( | const QScriptDebuggerValueList & | value | ) |
Definition at line 195 of file qscriptdebuggerresponse.cpp.
void QScriptDebuggerResponse::setResult | ( | const QScriptDebuggerValuePropertyList & | props | ) |
Definition at line 201 of file qscriptdebuggerresponse.cpp.
void QScriptDebuggerResponse::setResult | ( | const QScriptContextInfo & | info | ) |
Definition at line 207 of file qscriptdebuggerresponse.cpp.
|
friend |
Writes the given response to the specified stream.
Definition at line 326 of file qscriptdebuggerresponse.cpp.
|
friend |
Reads a QScriptDebuggerResponse from the specified stream into the given response.
Definition at line 345 of file qscriptdebuggerresponse.cpp.
|
private |
Definition at line 130 of file qscriptdebuggerresponse_p.h.
Referenced by operator<<(), operator=(), operator>>(), and QScriptDebuggerResponse().