44 #include <QtScript/qscriptvalue.h> 45 #include <QtScript/qscriptengine.h> 46 #include <QtCore/qdatastream.h> 47 #include <QtCore/qdebug.h> 127 d_ptr->numberValue = value;
135 d_ptr->booleanValue = value;
199 return d->numberValue;
211 return d->booleanValue;
223 return *
d->stringValue;
287 return *
d->stringValue;
308 if (
d->type != od->
type)
333 return !(*
this == other);
348 switch (value.
type()) {
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool isUndefined() const
Returns true if this QScriptValue is of the primitive type Undefined; otherwise returns false...
QScriptDebuggerValue & operator=(const QScriptDebuggerValue &other)
bool isNull() const
Returns true if this QScriptValue is of the primitive type Null; otherwise returns false...
#define QT_END_NAMESPACE
This macro expands to.
QScopedSharedPointer< QScriptDebuggerValuePrivate > d_ptr
T * data() const
Returns the value of the pointer referenced by this object.
QScriptValue toScriptValue(QScriptEngine *engine) const
Converts this QScriptDebuggerValue to a QScriptValue in the given engine and returns the resulting va...
~QScriptDebuggerValuePrivate()
QString toString() const
Returns the string value of this QScriptValue, as defined in ECMA-262 section 9.8, "ToString".
QScriptValue objectById(qint64 id) const
Returns the object with the given id, or an invalid QScriptValue if there is no object with that id...
bool isBoolean() const
Use isBool() instead.
The QString class provides a Unicode character string.
QDataStream & operator>>(QDataStream &stream, QScriptDebuggerValue &value)
Reads a QScriptDebuggerValue from the specified stream into the given value.
QDataStream & operator<<(QDataStream &stream, const QScriptDebuggerValue &value)
Writes the given value to the specified stream.
qint64 objectId() const
Returns the ID of this object, or -1 if this QScriptValue is not an object.
The QScriptEngine class provides an environment for evaluating Qt Script code.
QString stringValue() const
Returns this value as a string.
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool operator==(const QScriptDebuggerValue &other) const
Returns true if this QScriptDebuggerValue is equal to the other value, otherwise returns false...
bool operator!=(const QScriptDebuggerValue &other) const
Returns true if this QScriptDebuggerValue is not equal to the other value, otherwise returns false...
bool isString() const
Returns true if this QScriptValue is of the primitive type String; otherwise returns false...
static const char * data(const QByteArray &arr)
QString toString() const
Returns a string representation of this value.
bool toBoolean() const
Use toBool() instead.
void reset(T *other=0)
Deletes the existing object it is pointing to if any, and sets its pointer to other.
qsreal toNumber() const
Returns the number value of this QScriptValue, as defined in ECMA-262 section 9.3, "ToNumber".
ValueType type() const
Returns the type of this value.
The QScriptDebuggerValue class represents a script value.
bool isNumber() const
Returns true if this QScriptValue is of the primitive type Number; otherwise returns false...
double numberValue() const
Returns this value as a number.
bool booleanValue() const
Returns this value as a boolean.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
if(void) toggleToolbarShown
QScriptDebuggerValue::ValueType type
QScriptValue undefinedValue()
Returns a QScriptValue of the primitive type Undefined.
The QDataStream class provides serialization of binary data to a QIODevice.
The QScriptValue class acts as a container for the Qt Script data types.
bool isValid() const
Returns true if this QScriptValue is valid; otherwise returns false.
QScriptValue nullValue()
Returns a QScriptValue of the primitive type Null.
bool isObject() const
Returns true if this QScriptValue is of the Object type; otherwise returns false. ...
qint64 objectId() const
Returns this value as an object ID.
QScriptDebuggerValuePrivate()