Na této stránce

Utils::QrcCache Class

class Utils::QrcCache

Třída QrcCache ukládá do mezipaměti obsah analyzovaných souborů QRC. Více...

Header: #include <QrcCache>

Veřejné funkce

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)

Podrobný popis

Viz také Utils::QrcParser.

Dokumentace členských funkcí

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

Provede analýzu souboru QRC na adrese path a uloží výsledek analýzy do mezipaměti. Pokud není proměnná contents prázdná, použije se její obsah namísto čtení ze souborového systému.

Vrací, zda bylo parsování úspěšné.

Viz také QrcParser::errorMessages() a QrcParser::parseQrcFile().

void QrcCache::clear()

Vymaže obsah mezipaměti.

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

Vrátí uložený QRC parser pro soubor QRC na adrese path.

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

Odstraní položku „ path “ z mezipaměti.

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

Provede nové analýzu souboru QRC na adrese path a vrátí hodnotu contents tohoto souboru.

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.