Qt 4.8
|
The QDeclarativeImportDatabase class manages the QML imports for a QDeclarativeEngine. More...
#include <qdeclarativeimport_p.h>
Public Functions | |
void | addImportPath (const QString &dir) |
void | addPluginPath (const QString &path) |
QStringList | importPathList () const |
bool | importPlugin (const QString &filePath, const QString &uri, QString *errorString) |
QStringList | pluginPathList () const |
QDeclarativeImportDatabase (QDeclarativeEngine *) | |
void | setImportPathList (const QStringList &paths) |
void | setPluginPathList (const QStringList &paths) |
~QDeclarativeImportDatabase () | |
Private Functions | |
QString | resolvePlugin (const QDir &qmldirPath, const QString &qmldirPluginPath, const QString &baseName, const QStringList &suffixes, const QString &prefix=QString()) |
Returns the result of the merge of baseName with path, suffixes, and prefix. More... | |
QString | resolvePlugin (const QDir &qmldirPath, const QString &qmldirPluginPath, const QString &baseName) |
Returns the result of the merge of baseName with dir and the platform suffix. More... | |
Properties | |
QDeclarativeEngine * | engine |
QStringList | fileImportPath |
QStringList | filePluginPath |
QSet< QString > | initializedPlugins |
Friends | |
class | QDeclarativeImportsPrivate |
The QDeclarativeImportDatabase class manages the QML imports for a QDeclarativeEngine.
Definition at line 108 of file qdeclarativeimport_p.h.
QDeclarativeImportDatabase::QDeclarativeImportDatabase | ( | QDeclarativeEngine * | e | ) |
Definition at line 746 of file qdeclarativeimport.cpp.
QDeclarativeImportDatabase::~QDeclarativeImportDatabase | ( | ) |
Definition at line 806 of file qdeclarativeimport.cpp.
void QDeclarativeImportDatabase::addImportPath | ( | const QString & | path | ) |
Definition at line 1016 of file qdeclarativeimport.cpp.
Referenced by QDeclarativeImportDatabase().
void QDeclarativeImportDatabase::addPluginPath | ( | const QString & | path | ) |
Definition at line 998 of file qdeclarativeimport.cpp.
QStringList QDeclarativeImportDatabase::importPathList | ( | ) | const |
Definition at line 1044 of file qdeclarativeimport.cpp.
bool QDeclarativeImportDatabase::importPlugin | ( | const QString & | filePath, |
const QString & | uri, | ||
QString * | errorString | ||
) |
Definition at line 1060 of file qdeclarativeimport.cpp.
Referenced by QDeclarativeImportsPrivate::importExtension().
QStringList QDeclarativeImportDatabase::pluginPathList | ( | ) | const |
Definition at line 982 of file qdeclarativeimport.cpp.
|
private |
Returns the result of the merge of baseName with path, suffixes, and prefix.
The prefix must contain the dot.
qmldirPath is the location of the qmldir file.
Definition at line 853 of file qdeclarativeimport.cpp.
Referenced by QDeclarativeImportsPrivate::importExtension(), and resolvePlugin().
|
private |
Returns the result of the merge of baseName with dir and the platform suffix.
Platform | Valid suffixes |
Windows | .dll |
Unix/Linux | .so |
AIX | .a |
HP-UX | .sl, .so (HP-UXi) |
Mac OS X | .dylib, .bundle, .so |
Symbian | .dll |
Version number on unix are ignored.
Definition at line 920 of file qdeclarativeimport.cpp.
void QDeclarativeImportDatabase::setImportPathList | ( | const QStringList & | paths | ) |
Definition at line 1052 of file qdeclarativeimport.cpp.
void QDeclarativeImportDatabase::setPluginPathList | ( | const QStringList & | paths | ) |
Definition at line 990 of file qdeclarativeimport.cpp.
|
friend |
Definition at line 126 of file qdeclarativeimport_p.h.
|
private |
Definition at line 138 of file qdeclarativeimport_p.h.
Referenced by importPlugin().
|
private |
Definition at line 135 of file qdeclarativeimport_p.h.
Referenced by QDeclarativeImportsPrivate::add(), addImportPath(), importPathList(), QDeclarativeImportDatabase(), QDeclarativeImportsPrivate::resolvedUri(), and setImportPathList().
|
private |
Definition at line 134 of file qdeclarativeimport_p.h.
Referenced by addPluginPath(), pluginPathList(), QDeclarativeImportDatabase(), resolvePlugin(), and setPluginPathList().
Definition at line 137 of file qdeclarativeimport_p.h.
Referenced by importPlugin().