Nesta página

Utils::QrcCache Class

class Utils::QrcCache

A classe QrcCache armazena em cache o conteúdo dos arquivos QRC analisados. Mais...

Header: #include <QrcCache>

Funções públicas

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)

Descrição detalhada

Veja também Utils::QrcParser.

Documentação das funções de membro

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

Analisa o arquivo QRC em path e armazena o analisador em cache. Se contents não estiver vazio, ele será usado como o conteúdo do arquivo, em vez de lê-lo do sistema de arquivos.

Retorna se a análise foi bem-sucedida.

Veja também QrcParser::errorMessages() e QrcParser::parseQrcFile().

void QrcCache::clear()

Limpa o conteúdo do cache.

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

Retorna o analisador QRC armazenado em cache para o arquivo QRC disponível em path.

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

Remove ` path ` do cache.

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

Reanalisa o arquivo QRC em path e retorna o contents do arquivo.

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.