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) |
Since: | 5.3 |
Inherits: | KArchive |
Public Functions
Reimplemented Protected Functions
virtual bool | closeArchive() override |
virtual bool | openArchive(QIODeviceBase::OpenMode mode) override |
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(QIODeviceBase::OpenMode mode)
Reimplements: KArchive::openArchive(QIODeviceBase::OpenMode mode).
Registers the .rcc resource in the QResource system under a unique identifier, then lists that, and creates the KArchiveFile/KArchiveDirectory entries.