42 #ifndef QDECLARATIVEIMPORT_P_H 43 #define QDECLARATIVEIMPORT_P_H 45 #include <QtCore/qurl.h> 46 #include <QtCore/qcoreapplication.h> 47 #include <QtCore/qset.h> 48 #include <private/qdeclarativedirparser_p.h> 49 #include <private/qdeclarativescriptparser_p.h> 50 #include <private/qdeclarativemetatype_p.h> 87 int *version_major,
int *version_minor,
93 int *version_major,
int *version_minor)
const;
119 void addImportPath(
const QString& dir);
123 void addPluginPath(
const QString& path);
143 #endif // QDECLARATIVEIMPORT_P_H The QDir class provides access to directory structures and their contents.
QDeclarativeImports & operator=(const QDeclarativeImports &)
#define QT_END_NAMESPACE
This macro expands to.
bool addImport(QDeclarativeImportDatabase *, const QString &uri, const QString &prefix, int vmaj, int vmin, QDeclarativeScriptParser::Import::Type importType, const QDeclarativeDirComponents &qmldircomponentsnetwork, QString *errorString)
Adds information to imports such that subsequent calls to resolveType() will resolve types qualified ...
The QByteArray class provides an array of bytes.
friend class QDeclarativeImportDatabase
bool resolveType(const QByteArray &type, QDeclarativeType **type_return, QUrl *url_return, int *version_major, int *version_minor, QDeclarativeImportedNamespace **ns_return, QString *errorString=0) const
The given (namespace qualified) type is resolved to either.
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
QStringList filePluginPath
QSet< QString > initializedPlugins
The QDeclarativeImports class encapsulates one QML document's import statements.
Q_GUI_EXPORT QString errorString(EGLint code=eglGetError())
QUrl baseUrl() const
Returns the base URL to be used for all relative file imports added.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QDeclarativeImportsPrivate * d
The QStringList class provides a list of strings.
QDeclarativeEngine * engine
void populateCache(QDeclarativeTypeNameCache *cache, QDeclarativeEngine *) const
The QDeclarativeEngine class provides an environment for instantiating QML components.
QStringList fileImportPath
void setBaseUrl(const QUrl &url)
Sets the base URL to be used for all relative file imports added.
#define Q_DECLARE_TR_FUNCTIONS(context)
The Q_DECLARE_TR_FUNCTIONS() macro declares and implements two translation functions, tr() and trUtf8(), with these signatures:
The QDeclarativeImportDatabase class manages the QML imports for a QDeclarativeEngine.