summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlengine_p.h
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-07-23 07:13:00 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-07-23 07:13:00 (GMT)
commitfb0f1485ed37b8055b4ffbfd0805ceff1e9401f5 (patch)
treeb747942c442d3b56355d7c9c61729e8de98f280b /src/declarative/qml/qmlengine_p.h
parent7fe100b56ccca40de193164d3ce19600cf50bdd4 (diff)
downloadQt-fb0f1485ed37b8055b4ffbfd0805ceff1e9401f5.zip
Qt-fb0f1485ed37b8055b4ffbfd0805ceff1e9401f5.tar.gz
Qt-fb0f1485ed37b8055b4ffbfd0805ceff1e9401f5.tar.bz2
Move import access functions to QmlEnginePrivate.
Diffstat (limited to 'src/declarative/qml/qmlengine_p.h')
-rw-r--r--src/declarative/qml/qmlengine_p.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlengine_p.h b/src/declarative/qml/qmlengine_p.h
index af561e7..b8d49aa 100644
--- a/src/declarative/qml/qmlengine_p.h
+++ b/src/declarative/qml/qmlengine_p.h
@@ -172,6 +172,22 @@ public:
}
QmlValueTypeFactory valueTypes;
+
+ struct Imports {
+ Imports();
+ ~Imports();
+ void setBaseUrl(const QUrl& url);
+ QUrl baseUrl() const { return base; }
+ private:
+ friend class QmlEnginePrivate;
+ QUrl base;
+ QmlImportsPrivate *d;
+ };
+ struct ImportedNamespace;
+ bool addToImport(Imports*, const QString& uri, const QString& prefix, const QString& version, QmlScriptParser::Import::Type type) const;
+ bool resolveType(const Imports&, const QByteArray& type, QmlType** type_return, QUrl* url_return, ImportedNamespace** ns_return=0) const;
+ void resolveTypeInNamespace(ImportedNamespace*, const QByteArray& type, QmlType** type_return, QUrl* url_return ) const;
+
};
class QmlScriptClass : public QScriptClass