Metadata Class | Qt Installer Framework Manual

- Qt Installer Framework Manual
- Metadata

# Metadata Class

(QInstaller::Metadata)

The Metadata class represents fetched metadata from a repository. More...

Header: | #include <Metadata>
Inherits: | QInstaller::CacheableItem

- List of all members, including inherited members

## Public Functions

| Metadata()
| Metadata(const QString &path)
virtual | ~Metadata()
bool | containsRepositoryUpdates() const
bool | isAvailableFromDefaultRepository() const
QString | persistentRepositoryPath()
QInstaller::Repository | repository() const
void | setAvailableFromDefaultRepository(bool defaultRepository)
void | setChecksum(const QByteArray &checksum)
void | setPersistentRepositoryPath(const QUrl &url)
void | setRepository(const QInstaller::Repository &repository)
QDomDocument | updatesDocument() const

## Reimplemented Public Functions

virtual QByteArray | checksum() const override
virtual bool | isActive() const override
virtual bool | isValid() const override
virtual bool | obsoletes(QInstaller::CacheableItem *other) override

- 6 public functions inherited from QInstaller::CacheableItem

## Detailed Description

The Metadata class represents fetched metadata from a repository.

## Member Function Documentation

### Metadata::Metadata()

Default constructs an instance of Metadata.

### Metadata::Metadata(const QString &path)

Default constructs an instance of Metadata.

### `[virtual]` Metadata::~Metadata()

Destroys the instance of Metadata. The destructor is virtual.

### `[override virtual]` QByteArray Metadata::checksum() const

See also setChecksum().

### bool Metadata::containsRepositoryUpdates() const

### `[override virtual]` bool Metadata::isActive() const

### bool Metadata::isAvailableFromDefaultRepository() const

### `[override virtual]` bool Metadata::isValid() const

### `[override virtual]` bool Metadata::obsoletes(QInstaller::CacheableItem *other)

### QString Metadata::persistentRepositoryPath()

See also setPersistentRepositoryPath().

### QInstaller::Repository Metadata::repository() const

See also setRepository().

### void Metadata::setAvailableFromDefaultRepository(bool defaultRepository)

See also isAvailableFromDefaultRepository().

### void Metadata::setChecksum(const QByteArray &checksum)

See also checksum().

### void Metadata::setPersistentRepositoryPath(const QUrl &url)

See also persistentRepositoryPath().

### void Metadata::setRepository(const QInstaller::Repository &repository)

See also repository().

### QDomDocument Metadata::updatesDocument() const