In questa pagina

Utils::QrcCache Class

class Utils::QrcCache

La classe QrcCache memorizza nella cache il contenuto dei file QRC analizzati. Per saperne di più...

Header: #include <QrcCache>

Funzioni pubbliche

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)

Descrizione dettagliata

Vedi anche Utils::QrcParser.

Documentazione delle funzioni membro

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

Analizza il file QRC disponibile all'indirizzo path e memorizza il parser nella cache. Se contents non è vuoto, viene utilizzato come contenuto del file invece di leggerlo dal file system.

Restituisce se l'analisi ha avuto esito positivo.

Vedi anche QrcParser::errorMessages() e QrcParser::parseQrcFile().

void QrcCache::clear()

Cancella il contenuto della cache.

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

Restituisce il parser QRC memorizzato nella cache per il file QRC disponibile all'indirizzo path.

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

Rimuove " path " dalla cache.

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

Esegue una nuova analisi del file QRC disponibile all'indirizzo path e restituisce l'contents e del file.

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.