42 #include "private/qdeclarativeglobalscriptclass_p.h" 44 #include <QtCore/qstringlist.h> 45 #include <QtCore/qvector.h> 46 #include <QtScript/qscriptstring.h> 47 #include <QtScript/qscriptengine.h> 48 #include <QtScript/qscriptvalueiterator.h> 50 #include <private/qscriptdeclarativeclass_p.h> 97 QScriptClass::QueryFlags
100 QueryFlags flags,
uint *
id)
135 for (
int ii = 0; ii < names.
count(); ++ii) {
void explicitSetProperty(const QStringList &, const QList< QScriptValue > &)
#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...
QScriptValue throwError(Error error, const QString &text)
Throws an error with the given text.
QScriptValue globalObject() const
Returns this engine's Global Object.
QString name() const
Returns the name of the last property that was jumped over using next() or previous().
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
int count(const T &t) const
Returns the number of occurrences of value in the list.
The QString class provides a Unicode character string.
QDeclarativeGlobalScriptClass(QScriptEngine *)
The QScriptString class acts as a handle to "interned" strings in a QScriptEngine.
The QScriptEngine class provides an environment for evaluating Qt Script code.
QScriptEngine * engine() const
Returns the engine that this QScriptClass is associated with.
#define QT_BEGIN_NAMESPACE
This macro expands to.
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
void append(const T &t)
Inserts value at the end of the vector.
const_iterator insert(const T &value)
QScriptValue newObject()
Creates a QtScript object of class Object.
void setScriptClass(QScriptClass *scriptClass)
Sets the custom script class of this script object to scriptClass.
void setGlobalObject(const QScriptValue &object)
Sets this engine's Global Object to be the given object.
QScriptValue m_staticGlobalObject
QScriptValue::PropertyFlags flags() const
Returns the flags of the last property that was jumped over using next() or previous().
static QScriptValue newStaticScopeObject(QScriptEngine *, int propertyCount, const QString *names, const QScriptValue *values, const QScriptValue::PropertyFlags *flags)
Creates a scope object with a fixed set of undeletable properties.
void setProperty(const QString &name, const QScriptValue &value, const PropertyFlags &flags=KeepExistingFlags)
Sets the value of this QScriptValue's property with the given name to the given value.
The QScriptValueIterator class provides a Java-style iterator for QScriptValue.
virtual QString name() const
Returns the name of the script class.
virtual void setProperty(QScriptValue &object, const QScriptString &name, uint id, const QScriptValue &value)
Sets the property with the given name of the given object to the given value.
QScriptValue value() const
Returns the value of the last property that was jumped over using next() or previous().
QScriptContext * currentContext() const
Returns the current context.
QSet< QString > m_illegalNames
const T * constData() const
Returns a const pointer to the data stored in the vector.
QScriptString scriptName() const
Returns the name of the last property that was jumped over using next() or previous().
QString toString() const
Returns the string that this QScriptString represents, or a null string if this QScriptString is not ...
virtual QueryFlags queryProperty(const QScriptValue &object, const QScriptString &name, QueryFlags flags, uint *id)
Queries this script class for how access to the property with the given name of the given object shou...
The QScriptValue class acts as a container for the Qt Script data types.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
int size() const
Returns the number of items in the vector.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
void next()
Advances the iterator by one position.
bool hasNext() const
Returns true if there is at least one item ahead of the iterator (i.e.