QrcCache Class
class Utils::QrcCacheThe QrcCache class caches the contents of parsed QRC files. More...
Header: | #include <QrcCache> |
Public Functions
Utils::QrcParser::ConstPtr | addPath(const QString &path, const QString &contents) |
void | clear() |
Utils::QrcParser::ConstPtr | parsedPath(const QString &path) |
void | removePath(const QString &path) |
Utils::QrcParser::ConstPtr | updatePath(const QString &path, const QString &contents) |
See also Utils::QrcParser.
Member Function Documentation
Utils::QrcParser::ConstPtr QrcCache::addPath(const QString &path, const QString &contents)
Parses the QRC file at path and caches the parser. If contents is not empty, it is used as the file contents instead of reading it from the file system.
Returns whether the parsing succeeded.
See also QrcParser::errorMessages() and QrcParser::parseQrcFile().
void QrcCache::clear()
Clears the contents of the cache.
Utils::QrcParser::ConstPtr QrcCache::parsedPath(const QString &path)
Returns the cached QRC parser for the QRC file at path.
void QrcCache::removePath(const QString &path)
Removes path from the cache.
Utils::QrcParser::ConstPtr QrcCache::updatePath(const QString &path, const QString &contents)
Reparses the QRC file at path and returns the contents of the file.
© 2024 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. Qt and 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.