24 #ifndef QSCRIPTVALUE_H 25 #define QSCRIPTVALUE_H 27 #include <QtCore/qstring.h> 29 #include <QtCore/qlist.h> 30 #include <QtCore/qsharedpointer.h> 56 struct QScriptValuePrivatePointerDeleter;
62 ResolvePrototype = 0x01,
64 ResolveFull = ResolvePrototype | ResolveScope
70 ReadOnly = 0x00000001,
71 Undeletable = 0x00000002,
72 SkipInEnumeration = 0x00000004,
74 PropertyGetter = 0x00000008,
75 PropertySetter = 0x00000010,
77 QObjectMember = 0x00000020,
79 KeepExistingFlags = 0x00000800,
81 UserRange = 0xff000000
100 #ifndef QT_NO_CAST_FROM_ASCII 111 #ifndef QT_NO_CAST_FROM_ASCII 119 bool isValid()
const;
121 bool isBoolean()
const;
125 bool isString()
const;
126 bool isUndefined()
const;
127 bool isVariant()
const;
128 bool isQObject()
const;
129 bool isQMetaObject()
const;
130 bool isObject()
const;
132 bool isRegExp()
const;
133 bool isArray()
const;
134 bool isError()
const;
139 bool toBoolean()
const;
166 const ResolveFlags &mode = ResolvePrototype)
const;
171 const ResolveFlags &mode = ResolvePrototype)
const;
176 const ResolveFlags &mode = ResolvePrototype)
const;
181 const QString &
name,
const ResolveFlags &mode = ResolvePrototype)
const;
The QVariant class acts like a union for the most common Qt data types.
QExplicitlySharedDataPointer< QScriptValuePrivate > d_ptr
QList< QScriptValue > QScriptValueList
#define QT_END_NAMESPACE
This macro expands to.
The QScriptClass class provides an interface for defining custom behavior of (a class of) Qt Script o...
The QRegExp class provides pattern matching using regular expressions.
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
static bool isNumber(char s)
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
SpecialValue
This enum is used to specify a single-valued type.
The QScriptString class acts as a handle to "interned" strings in a QScriptEngine.
static bool toBool(Register *reg, int type, bool *ok=0)
static QString toString(Register *reg, int type, bool *ok=0)
The QScriptEngine class provides an environment for evaluating Qt Script code.
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
static bool lessThan(const QChar *a, int l, const char *c)
static bool setData(const QByteArray &data, STGMEDIUM *pmedium)
bool isFunction(JSC::JSValue value)
static const char * data(const QByteArray &arr)
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
#define QT_ASCII_CAST_WARN_CONSTRUCTOR
static QByteArray prototype(const QList< QByteArray > ¶meterTypes, const QList< QByteArray > ¶meterNames, bool *ok)
ResolveFlag
This enum specifies how to look up a property of an object.
The QDateTime class provides date and time functions.
static void construct(QVariant::Private *x, const void *copy)
PropertyFlag
This enum describes the attributes of a property.
#define Q_DECLARE_PRIVATE(Class)
The QScriptValue class acts as a container for the Qt Script data types.
static bool isNull(const QVariant::Private *d)