MetadataCache Class

class QInstaller::MetadataCache

The MetadataCache is a class for a checksum based storage of Metadata objects on disk. More...

Header: #include <MetadataCache>
Inherits: QInstaller::GenericDataCache

Public Functions

MetadataCache(const QString &path)

Detailed Description

MetadataCache manages a cache storage for a set path(), which contains a subdirectory for each registered Metadata item. The cache has a manifest file in its root directory, which lists the version and type of the cache, and all its items. The file is updated automatically when the metadata cache object is destructed, or it can be updated periodically by calling sync().

Member Function Documentation


Constructs a new empty cache. The cache is invalid until set with a path and initialized.

[explicit] MetadataCache::MetadataCache(const QString &path)

Constructs a cache to path. The cache is initialized automatically.

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. The Qt Company, Qt and their respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.