Extending Qt Creator Manual | LibraryInfo

Extending Qt Creator Manual 4.7.2

# LibraryInfo Class

(QmlJS::LibraryInfo)

The LibraryInfo class creates a QML library. More...

Header: | #include <LibraryInfo>

- List of all members, including inherited members

## Public Types

enum | PluginTypeInfoStatus { NoTypeInfo, DumpDone, DumpError, TypeInfoFileDone, TypeInfoFileError }
enum | Status { NotScanned, NotFound, Found }

## Public Functions

| LibraryInfo(QmlJS::LibraryInfo::Status status = NotScanned)
| LibraryInfo(const QmlDirParser &parser, const QByteArray &fingerprint = QByteArray())
| ~LibraryInfo()
QByteArray | calculateFingerprint() const
QList<QmlDirParser::Component> | components() const
QStringList | dependencies() const
QByteArray | fingerprint() const
bool | isValid() const
QmlJS::LibraryInfo::FakeMetaObjectList | metaObjects() const
QList<QmlJS::ModuleApiInfo> | moduleApis() const
QString | pluginTypeInfoError() const
QmlJS::LibraryInfo::PluginTypeInfoStatus | pluginTypeInfoStatus() const
QList<QmlDirParser::Plugin> | plugins() const
void | setDependencies(const QStringList &deps)
void | setMetaObjects(const QmlJS::LibraryInfo::FakeMetaObjectList &objects)
void | setModuleApis(const QList<QmlJS::ModuleApiInfo> &apis)
void | setPluginTypeInfoStatus(QmlJS::LibraryInfo::PluginTypeInfoStatus dumped, const QString &error = QString())
int | typeInfos() const
void | updateFingerprint()
bool | wasFound() const
bool | wasScanned() const

## Detailed Description

The LibraryInfo class creates a QML library.

A LibraryInfo is created when the ModelManagerInterface finds a QML library and parses the qmldir file. The instance holds information about which Components the library provides and which plugins to load.

The ModelManager will try to extract detailed information about the types defined in the plugins this library loads. Once it is done, the data will be available through the metaObjects() function.

See also Snapshot.

## Member Type Documentation

### enum LibraryInfo::PluginTypeInfoStatus

### enum LibraryInfo::Status

## Member Function Documentation

### LibraryInfo::LibraryInfo(QmlJS::LibraryInfo::Status status = NotScanned)

Default constructs an instance of LibraryInfo.

### LibraryInfo::LibraryInfo(const QmlDirParser &parser, const QByteArray &fingerprint = QByteArray())

Default constructs an instance of LibraryInfo.

### LibraryInfo::~LibraryInfo()

Destroys the instance of LibraryInfo.

### QByteArray LibraryInfo::calculateFingerprint() const

### QList<QmlDirParser::Component> LibraryInfo::components() const

### QStringList LibraryInfo::dependencies() const

See also setDependencies().

### QByteArray LibraryInfo::fingerprint() const

### bool LibraryInfo::isValid() const

### QmlJS::LibraryInfo::FakeMetaObjectList LibraryInfo::metaObjects() const

See also setMetaObjects().

### QList<QmlJS::ModuleApiInfo> LibraryInfo::moduleApis() const

See also setModuleApis().

### QString LibraryInfo::pluginTypeInfoError() const

### QmlJS::LibraryInfo::PluginTypeInfoStatus LibraryInfo::pluginTypeInfoStatus() const

See also setPluginTypeInfoStatus().

### QList<QmlDirParser::Plugin> LibraryInfo::plugins() const

### void LibraryInfo::setDependencies(const QStringList &deps)

See also dependencies().

### void LibraryInfo::setMetaObjects(const QmlJS::LibraryInfo::FakeMetaObjectList &objects)

See also metaObjects().

### void LibraryInfo::setModuleApis(const QList<QmlJS::ModuleApiInfo> &apis)

See also moduleApis().

### void LibraryInfo::setPluginTypeInfoStatus(QmlJS::LibraryInfo::PluginTypeInfoStatus dumped, const QString &error = QString())

See also pluginTypeInfoStatus().

### int LibraryInfo::typeInfos() const

### void LibraryInfo::updateFingerprint()

### bool LibraryInfo::wasFound() const

### bool LibraryInfo::wasScanned() const