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)
MetadataCache()

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

MetadataCache::MetadataCache(const QString &path)

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

MetadataCache::MetadataCache()

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