På denne side

Utils::QrcCache Class

class Utils::QrcCache

QrcCache-klassen gemmer indholdet af parsede QRC-filer i cachen. Mere...

Header: #include <QrcCache>

Offentlige funktioner

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)

Detaljeret beskrivelse

Se også Utils::QrcParser.

Dokumentation til medlemsfunktioner

Utils::QrcParser::ConstPtr QrcCache::addPath(const Utils::FilePath &path, const QString &contents)

Analyserer QRC-filen på path og gemmer analysatoren i cachen. Hvis contents ikke er tom, bruges den som filindhold i stedet for at læse indholdet fra filsystemet.

Returnerer, om analysen lykkedes.

Se også QrcParser::errorMessages() og QrcParser::parseQrcFile().

void QrcCache::clear()

Rydder indholdet af cachen.

Utils::QrcParser::ConstPtr QrcCache::parsedPath(const Utils::FilePath &path)

Returnerer den cachelagrede QRC-parser for QRC-filen på path.

void QrcCache::removePath(const Utils::FilePath &path)

Fjerner path fra cachen.

Utils::QrcParser::ConstPtr QrcCache::updatePath(const Utils::FilePath &path, const QString &contents)

Analyserer QRC-filen på path på ny og returnerer filens 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.