KRcc Class
A class for reading rcc resources. More...
- Header:
#include <KRcc> - CMake:
find_package(KF6 REQUIRED COMPONENTS Archive)
target_link_libraries(mytarget PRIVATE KF6::Archive) - Inherits: KArchive
List of all members, including inherited members
Public Functions
Protected Functions
Detailed Description
KRcc is a class for reading dynamic binary resources created by Qt's rcc tool from a .qrc file and the files it points to.
Writing is not supported.
Member Function Documentation
[explicit] KRcc::KRcc(const QString &filename)
Creates an instance that operates on the given filename.
filename is a local path (e.g. "/home/holger/myfile.rcc")
[override virtual noexcept] KRcc::~KRcc()
If the rcc file is still opened, then it will be closed automatically by the destructor.
[override virtual protected] bool KRcc::closeArchive()
Reimplements: KArchive::closeArchive().
Unregisters the .rcc resource from the QResource system.
[override virtual protected] bool KRcc::openArchive(QIODevice::OpenMode mode)
Reimplements: KArchive::openArchive(QIODevice::OpenMode mode).
Registers the .rcc resource in the QResource system under a unique identifier, then lists that, and creates the KArchiveFile/KArchiveDirectory entries.