KJS-API
kjsobject.cpp
Go to the documentation of this file.
KJSArray(KJSContext *ctx, int len=0)
Constructs an array object with the specified length.
Definition: kjsobject.cpp:105
bool isObject() const
Returns whether this object is a full blown object.
Definition: kjsobject.cpp:155
bool toBoolean(KJSContext *ctx)
Returns this value converted to a boolean.
Definition: kjsobject.cpp:160
void setProperty(KJSContext *ctx, const QString &name, const KJSObject &value)
Sets the specified property on this object.
Definition: kjsobject.cpp:206
int toInt32(KJSContext *ctx)
Returns this value converted to a 32-bit integer number.
Definition: kjsobject.cpp:174
double toNumber(KJSContext *ctx)
Returns this value converted to a number.
Definition: kjsobject.cpp:167
KJSObject & operator=(const KJSObject &o)
Assigns another JS object references to this one.
Definition: kjsobject.cpp:48
static JSValue * constructArrayHelper(ExecState *exec, int len)
Definition: kjsobject.cpp:96
static JSValue * constructDateHelper(KJSContext *ctx, const QDateTime &dt)
Definition: kjsobject.cpp:112
QString toString(KJSContext *ctx)
Returns this value converted to a string.
Definition: kjsobject.cpp:181
KJSDate(KJSContext *ctx, const QDateTime &dt)
Constructs a date object from the specified date and time.
Definition: kjsobject.cpp:124
KJSObject property(KJSContext *ctx, const QString &name)
Reads the specified property from this object.
Definition: kjsobject.cpp:188
~KJSObject()
Destructs this object freeing any references it might have held.
Definition: kjsobject.cpp:58
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.