45 #include <QtCore/qhash.h> 46 #include <QtCore/qdatastream.h> 119 return d->attributes.value(attribute, defaultValue);
127 d->attributes.remove(attribute);
135 return d->attributes;
141 return d->attributes.value(
ScriptID, -1).toLongLong();
153 return d->attributes.value(
FileName).toString();
165 return d->attributes.value(
LineNumber, -1).toInt();
201 return d->attributes.value(
Message).toString();
258 return ((
d->type == od->
type)
268 return !(*
this == other);
314 for (
qint32 i = 0; i < attribCount; ++i) {
The QVariant class acts like a union for the most common Qt data types.
QScriptDebuggerEvent & operator=(const QScriptDebuggerEvent &other)
QScopedPointer< QScriptDebuggerEventPrivate > d_ptr
void setColumnNumber(int columnNumber)
#define QT_END_NAMESPACE
This macro expands to.
#define it(className, varName)
QHash< QScriptDebuggerEvent::Attribute, QVariant > attributes
bool operator==(const QScriptDebuggerEvent &other) const
Returns true if this QScriptDebuggerEvent is equal to the other event, otherwise returns false...
~QScriptDebuggerEventPrivate()
void setLineNumber(int lineNumber)
QHash< Attribute, QVariant > attributes() const
void setNestedEvaluate(bool nested)
void setScriptId(qint64 id)
The QString class provides a Unicode character string.
QScriptDebuggerEvent::Type type
QVariant attribute(Attribute attribute, const QVariant &defaultValue=QVariant()) const
QScriptDebuggerValue scriptValue() const
const T value(const Key &key) const
Returns the value associated with the key.
bool hasExceptionHandler() const
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool operator!=(const QScriptDebuggerEvent &other) const
Returns true if this QScriptDebuggerEvent is not equal to the other event, otherwise returns false...
bool isNestedEvaluate() const
static QVariant fromValue(const T &value)
Returns a QVariant containing a copy of value.
void setScriptValue(const QScriptDebuggerValue &value)
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the hash.
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the hash...
The QScriptDebuggerValue class represents a script value.
int size() const
Returns the number of items in the hash.
friend Q_AUTOTEST_EXPORT QDataStream & operator>>(QDataStream &, QScriptDebuggerEvent &)
Reads a QScriptDebuggerEvent from the specified stream into the given event.
void setBreakpointId(int id)
const Key key(const T &value) const
Returns the first key mapped to value.
void setAttribute(Attribute attribute, const QVariant &value)
void setHasExceptionHandler(bool hasHandler)
friend Q_AUTOTEST_EXPORT QDataStream & operator<<(QDataStream &, const QScriptDebuggerEvent &)
Writes the given event to the specified stream.
T qvariant_cast(const QVariant &)
QScriptDebuggerEventPrivate()
The QDataStream class provides serialization of binary data to a QIODevice.
void setMessage(const QString &message)
bool isValid() const
Returns true if the storage type of this variant is not QVariant::Invalid; otherwise returns false...
void setFileName(const QString &fileName)