Utils::QrcCache Class
class Utils::QrcCacheКлас QrcCache зберігає у кеші вміст проаналізованих файлів QRC. Детальніше...
| Header: | #include <QrcCache> |
Публічні функції
| Utils::QrcParser::ConstPtr | addPath(const Utils::FilePath &path, const QString &contents) |
| void | clear() |
| Utils::QrcParser::ConstPtr | parsedPath(const Utils::FilePath &path) |
| void | removePath(const Utils::FilePath &path) |
| Utils::QrcParser::ConstPtr | updatePath(const Utils::FilePath &path, const QString &contents) |
Див. також Utils::QrcParser.
Документація до функцій-членів
Utils::QrcParser::ConstPtr QrcCache::addPath(const Utils::FilePath &path, const QString &contents)
Здійснює аналіз файлу QRC за адресою path та кешує результат аналізу. Якщо contents не є порожнім, його використовують як вміст файлу замість зчитування з файлової системи.
Повертає, чи пройшов аналіз успішно.
Див. також QrcParser::errorMessages() та QrcParser::parseQrcFile().
void QrcCache::clear()
Очищає вміст кешу.
Utils::QrcParser::ConstPtr QrcCache::parsedPath(const Utils::FilePath &path)
Повертає кешований парсер QRC для файлу QRC за адресою path.
void QrcCache::removePath(const Utils::FilePath &path)
Видаляє « path » із кешу.
Utils::QrcParser::ConstPtr QrcCache::updatePath(const Utils::FilePath &path, const QString &contents)
Знову аналізує файл QRC за адресою path і повертає contents цього файлу.
Copyright © The Qt Company Ltd. and other contributors. 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.