42 #include "private/qdeclarativevaluetypescriptclass_p.h" 44 #include "private/qdeclarativebinding_p.h" 45 #include "private/qdeclarativeproperty_p.h" 46 #include "private/qdeclarativeengine_p.h" 47 #include "private/qdeclarativeguard_p.h" 49 #include <QtScript/qscriptcontextinfo.h> 99 QScriptClass::QueryFlags
101 QScriptClass::QueryFlags)
113 QScriptClass::QueryFlags rv = 0;
The QVariant class acts like a union for the most common Qt data types.
QBool contains(QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
static QScriptEngine * getScriptEngine(QDeclarativeEngine *e)
virtual void setProperty(Object *, const Identifier &name, const QScriptValue &)
QDeclarativeValueType * type
virtual QVariant value()=0
#define QT_END_NAMESPACE
This macro expands to.
virtual Value property(Object *, const Identifier &)
bool isFunction() const
Returns true if this QScriptValue is a function; otherwise returns false.
static QScriptValue newObject(QScriptEngine *, QScriptDeclarativeClass *, Object *)
QByteArray toUtf8() const Q_REQUIRED_RESULT
Returns a UTF-8 representation of the string as a QByteArray.
The QByteArray class provides an array of bytes.
void setTarget(const QDeclarativeProperty &)
virtual void destroy(DestroyMode mode=DisconnectBinding)
Destroy the binding.
virtual QScriptClass::QueryFlags queryProperty(Object *, const Identifier &, QScriptClass::QueryFlags flags)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
static Object * object(const QScriptValue &)
virtual void write(QObject *, int, QDeclarativePropertyPrivate::WriteFlags flags)=0
~QDeclarativeValueTypeScriptClass()
The QObject class is the base class of all Qt objects.
static QDeclarativeEnginePrivate * get(QDeclarativeEngine *e)
static QObjectPrivate * get(QObject *o)
The QScriptDeclarativeClass::Value class acts as a container for JavaScript data types.
QVariant scriptValueToVariant(const QScriptValue &, int hint=QVariant::Invalid)
int toInt(bool *ok=0) const
Returns the variant as an int if the variant has type() Int , Bool , ByteArray , Char ...
QString fileName() const
Returns the name of the file where the code being executed was defined, if available; otherwise retur...
The QScriptEngine class provides an environment for evaluating Qt Script code.
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual QVariant toVariant(Object *, bool *ok=0)
virtual void setValue(QVariant)=0
QScriptEngine * engine() const
static QDeclarativeAbstractBinding * setBinding(QObject *, int coreIndex, int valueTypeIndex, QDeclarativeAbstractBinding *, WriteFlags flags=DontRemoveBinding)
void setEvaluateFlags(EvaluateFlags flags)
QDeclarativeGuard< QObject > object
int functionStartLineNumber() const
Returns the line number where the definition of the called function starts, or -1 if the line number ...
QScriptValue newObject(QObject *object, int coreIndex, QDeclarativeValueType *)
const char * constData() const
Returns a pointer to the data stored in the byte array.
The QScriptContextInfo class provides additional information about a QScriptContext.
QDeclarativeValueTypeCopy()
The QDeclarativeEngine class provides an environment for instantiating QML components.
bool isRegExp() const
Returns true if this QScriptValue is an object of the RegExp class; otherwise returns false...
Type type() const
Returns the storage type of the value stored in the variant.
QDeclarativeValueTypeReference()
static QDeclarativeProperty restore(const QByteArray &, QObject *, QDeclarativeContextData *)
virtual QString expression() const
void setSourceLocation(const QString &fileName, int line)
Set the location of this expression to line of url.
The QDeclarativeProperty class abstracts accessing properties on objects created from QML...
static QScriptDeclarativeClass * scriptClass(const QScriptValue &)
QDeclarativeValueTypeScriptClass(QDeclarativeEngine *)
QScriptContext * context() const
QDeclarativeContextData * getContext(QScriptContext *)
Returns the QDeclarativeContext for the executing QScript ctxt.
The QScriptValue class acts as a container for the Qt Script data types.
QString toString(const Identifier &)
QDeclarativeValueTypeObject(Type t)
virtual const QMetaObject * metaObject() const
Returns a pointer to the meta-object of this object.
EvaluateFlags evaluateFlags() const
virtual void read(QObject *, int)=0