12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- #ifndef QQMLSCRIPTSTRING_H
- #define QQMLSCRIPTSTRING_H
- #include <QtQml/qtqmlglobal.h>
- #include <QtCore/qstring.h>
- #include <QtCore/qshareddata.h>
- #include <QtCore/qmetatype.h>
- QT_BEGIN_NAMESPACE
- class QObject;
- class QQmlContext;
- class QQmlScriptStringPrivate;
- class QQmlObjectCreator;
- namespace QV4 {
- struct QObjectWrapper;
- }
- class Q_QML_EXPORT QQmlScriptString
- {
- public:
- QQmlScriptString();
- QQmlScriptString(const QQmlScriptString &);
- ~QQmlScriptString();
- QQmlScriptString &operator=(const QQmlScriptString &);
- bool operator==(const QQmlScriptString &) const;
- bool operator!=(const QQmlScriptString &) const;
- bool isEmpty() const;
- 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 QQmlObjectCreator;
- friend class QQmlScriptStringPrivate;
- friend class QQmlExpression;
- friend class QQmlBinding;
- friend struct QV4::QObjectWrapper;
- };
- QT_END_NAMESPACE
- Q_DECLARE_METATYPE(QQmlScriptString)
- #endif
|