Utils::QrcCache Class
class Utils::QrcCacheDie Klasse „QrcCache“ speichert den Inhalt geparster QRC-Dateien im Cache. Mehr...
| Header: | #include <QrcCache> |
Öffentliche Funktionen
| 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) |
Siehe auch „ Utils::QrcParser “.
Dokumentation der Mitgliedsfunktionen
Utils::QrcParser::ConstPtr QrcCache::addPath(const Utils::FilePath &path, const QString &contents)
Analysiert die QRC-Datei unter path und speichert den Parser im Cache. Ist contents nicht leer, wird dieser Inhalt anstelle des aus dem Dateisystem gelesenen Inhalts verwendet.
Gibt zurück, ob das Parsen erfolgreich war.
Siehe auch QrcParser::errorMessages() und QrcParser::parseQrcFile().
void QrcCache::clear()
Löscht den Inhalt des Caches.
Utils::QrcParser::ConstPtr QrcCache::parsedPath(const Utils::FilePath &path)
Gibt den zwischengespeicherten QRC-Parser für die QRC-Datei unter path zurück.
void QrcCache::removePath(const Utils::FilePath &path)
Entfernt „ path “ aus dem Cache.
Utils::QrcParser::ConstPtr QrcCache::updatePath(const Utils::FilePath &path, const QString &contents)
Analysiert die QRC-Datei unter path erneut und gibt die contents der Datei zurück.
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.