diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2012-07-11 13:01:33 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-03 03:38:49 +0200 |
commit | aa25ad8d5f476d6db59012a122833ebe677eaf69 (patch) | |
tree | 37eb955dabc252304aefe821d03be5e3857f22c9 /src/qml/qml/qqmlscriptstring.h | |
parent | d64224041efe9febc683cf5ee7155a9cc88058d9 (diff) |
Make QQmlScriptString opaque.
Allow for future optimization by encapsulating the
raw script data.
Change-Id: I1863103e8e6d74ede60593cabb240e16f2ae657e
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/qml/qml/qqmlscriptstring.h')
-rw-r--r-- | src/qml/qml/qqmlscriptstring.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/qml/qml/qqmlscriptstring.h b/src/qml/qml/qqmlscriptstring.h index 15db9088f7..f2ccbb76fd 100644 --- a/src/qml/qml/qqmlscriptstring.h +++ b/src/qml/qml/qqmlscriptstring.h @@ -64,20 +64,22 @@ public: QQmlScriptString &operator=(const QQmlScriptString &); - QQmlContext *context() const; - void setContext(QQmlContext *); + bool isEmpty() const; - QObject *scopeObject() const; - void setScopeObject(QObject *); - - QString script() const; - void setScript(const QString &); + bool isUndefinedLiteral() const; + bool isNullLiteral() const; + QString stringLiteral() const; + qreal numberLiteral(bool *ok) const; + bool booleanLiteral(bool *ok) const; private: + QQmlScriptString(const QString &script, QQmlContext *context, QObject *scope); QSharedDataPointer<QQmlScriptStringPrivate> d; + friend class QQmlScriptStringPrivate; friend class QQmlVME; friend class QQmlExpression; + friend class QQmlBinding; }; QT_END_NAMESPACE |