Ezen az oldalon

Utils::QrcCache Class

class Utils::QrcCache

A QrcCache osztály az elemzett QRC-fájlok tartalmát tárolja a gyorsítótárban. Tovább...

Header: #include <QrcCache>

Nyilvános függvények

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)

Részletes leírás

Lásd még: Utils::QrcParser.

Tagfüggvények dokumentációja

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

Feldolgozza a path címen található QRC-fájlt, és gyorsítótárba helyezi az elemzőt. Ha a contents nem üres, akkor azt használja a fájl tartalmaként, ahelyett, hogy a fájlrendszerből olvasná be.

Visszaadja, hogy az elemzés sikeres volt-e.

Lásd még: QrcParser::errorMessages() és QrcParser::parseQrcFile().

void QrcCache::clear()

Törli a gyorsítótár tartalmát.

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

Visszaadja a path címen található QRC-fájlhoz tartozó, gyorsítótárban tárolt QRC-elemzőt.

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

Eltávolítja a „ path ” elemet a gyorsítótárból.

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

Újraelemzi a path címen található QRC-fájlt, és visszaadja a fájl contents címét.

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.