Na tej stronie

Utils::QrcCache Class

class Utils::QrcCache

Klasa QrcCache buforuje zawartość przeanalizowanych plików QRC. Więcej...

Header: #include <QrcCache>

Funkcje publiczne

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)

Szczegółowy opis

Zobacz też Utils::QrcParser.

Dokumentacja funkcji składowych

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

Analizuje plik QRC dostępny pod adresem path i buforuje wynik analizy. Jeśli zmienna contents nie jest pusta, jej zawartość jest wykorzystywana zamiast odczytywania danych z systemu plików.

Zwraca informację, czy parsowanie zakończyło się powodzeniem.

Zobacz także QrcParser::errorMessages() i QrcParser::parseQrcFile().

void QrcCache::clear()

Czyści zawartość pamięci podręcznej.

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

Zwraca zapamiętany w pamięci podręcznej parser QRC dla pliku QRC znajdującego się pod adresem path.

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

Usuwa element „ path ” z pamięci podręcznej.

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

Ponownie analizuje plik QRC znajdujący się pod adresem path i zwraca contents tego pliku.

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.