CacheableItem Class
class QInstaller::CacheableItemThe CacheableItem is a pure virtual class that defines an interface for a type suited for storage with the GenericDataCache class. More...
Header: | #include <CacheableItem> |
Inherited By: |
Public Functions
virtual | ~CacheableItem() = 0 |
virtual QByteArray | checksum() const = 0 |
virtual bool | isActive() const = 0 |
virtual bool | isValid() const = 0 |
virtual bool | obsoletes(QInstaller::CacheableItem *other) = 0 |
virtual QString | path() const |
virtual void | setPath(const QString &path) |
Member Function Documentation
[pure virtual noexcept]
CacheableItem::~CacheableItem()
Virtual destructor for CacheableItem
.
[pure virtual]
QByteArray CacheableItem::checksum() const
Returns the checksum of this item. A subclass must implement this method.
[pure virtual]
bool CacheableItem::isActive() const
Returns true
if this item is an actively used cache item, false
otherwise. This information is used as a hint for filtering obsolete entries, an active item can never be obsolete.
A subclass must implement this method.
[pure virtual]
bool CacheableItem::isValid() const
Returns true
if this item is valid, false
otherwise. A subclass must implement this method.
[pure virtual]
bool CacheableItem::obsoletes(QInstaller::CacheableItem *other)
Returns true
if the calling item obsoletes other item, false
otherwise. This method is used for filtering obsolete entries from the cache.
A subclass must implement this method.
[virtual]
QString CacheableItem::path() const
Returns the path of this item. A subclass may override this method.
See also setPath().
[virtual]
void CacheableItem::setPath(const QString &path)
Sets the path of the item to path. A subclass may override this method.
See also path().
© 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.