diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2009-05-08 12:36:51 (GMT) |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2009-05-08 12:47:34 (GMT) |
commit | 7d67d5c24ce3e707c1bb9bc6f181765cccc4090d (patch) | |
tree | a289b9637975c91d74e5df1e85a5d896fe7b90f2 /src/declarative/qml/qmlscriptparser_p.h | |
parent | 79900981848fc4ba812243db83a7456d72ddda15 (diff) | |
download | Qt-7d67d5c24ce3e707c1bb9bc6f181765cccc4090d.zip Qt-7d67d5c24ce3e707c1bb9bc6f181765cccc4090d.tar.gz Qt-7d67d5c24ce3e707c1bb9bc6f181765cccc4090d.tar.bz2 |
Expose import statements in QmlDomDocument
Reviewed-by: erikv
Reviewed-by: Roberto Raggi
Diffstat (limited to 'src/declarative/qml/qmlscriptparser_p.h')
-rw-r--r-- | src/declarative/qml/qmlscriptparser_p.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/declarative/qml/qmlscriptparser_p.h b/src/declarative/qml/qmlscriptparser_p.h index 4155bba..8a5466f 100644 --- a/src/declarative/qml/qmlscriptparser_p.h +++ b/src/declarative/qml/qmlscriptparser_p.h @@ -4,22 +4,28 @@ #include <QtCore/QList> #include <QtCore/QUrl> #include <QtDeclarative/qmlerror.h> -#include <qml.h> +#include "qmlparser_p.h" + QT_BEGIN_HEADER QT_BEGIN_NAMESPACE QT_MODULE(Declarative) -namespace QmlParser { - class Object; -} - class QByteArray; class QmlScriptParser { public: + class Import + { + public: + Import() {} + + QString uri; + QmlParser::LocationSpan location; + }; + QmlScriptParser(); ~QmlScriptParser(); @@ -29,6 +35,7 @@ public: QStringList types() const; QmlParser::Object *tree() const; + QList<Import> imports() const; void clear(); @@ -48,6 +55,7 @@ public: QMap<QString,QString> _nameSpacePaths; QmlParser::Object *root; + QList<Import> _imports; QStringList _typeNames; QString _scriptFile; }; |