![]() |
Qt 6.x
The Qt SDK
|
Public Types | |
enum | Flags { NoFlags = 0x00 , Compressed = 0x01 , Directory = 0x02 , CompressedZstd = 0x04 } |
Public Member Functions | |
RCCFileInfo ()=default | |
RCCFileInfo (const QString &name, const QFileInfo &fileInfo, QLocale::Language language, QLocale::Territory territory, uint flags, RCCResourceLibrary::CompressionAlgorithm compressAlgo, int compressLevel, int compressThreshold, bool noZstd, bool isEmpty) | |
~RCCFileInfo () | |
RCCFileInfo (const RCCFileInfo &)=delete | |
RCCFileInfo & | operator= (const RCCFileInfo &)=delete |
RCCFileInfo (RCCFileInfo &&)=default | |
RCCFileInfo & | operator= (RCCFileInfo &&other)=delete |
QString | resourceName () const |
qint64 | writeDataBlob (RCCResourceLibrary &lib, qint64 offset, QString *errorMessage) |
qint64 | writeDataName (RCCResourceLibrary &, qint64 offset) |
void | writeDataInfo (RCCResourceLibrary &lib) |
enum RCCFileInfo::Flags |
|
default |
RCCFileInfo::RCCFileInfo | ( | const QString & | name, |
const QFileInfo & | fileInfo, | ||
QLocale::Language | language, | ||
QLocale::Territory | territory, | ||
uint | flags, | ||
RCCResourceLibrary::CompressionAlgorithm | compressAlgo, | ||
int | compressLevel, | ||
int | compressThreshold, | ||
bool | noZstd, | ||
bool | isEmpty | ||
) |
RCCFileInfo::~RCCFileInfo | ( | ) |
Definition at line 134 of file rcc.cpp.
References m_children, and qDeleteAll().
|
delete |
|
default |
|
delete |
|
delete |
QString RCCFileInfo::resourceName | ( | ) | const |
Definition at line 139 of file rcc.cpp.
References m_name, m_parent, and QString::prepend().
Referenced by writeDataInfo().
qint64 RCCFileInfo::writeDataBlob | ( | RCCResourceLibrary & | lib, |
qint64 | offset, | ||
QString * | errorMessage | ||
) |
Definition at line 220 of file rcc.cpp.
References QFileInfo::absoluteFilePath(), QString::arg(), RCCResourceLibrary::Best, RCCResourceLibrary::Binary, RCCResourceLibrary::C_Code, compressed, Compressed, CompressedZstd, CONSTANT_ZSTDCOMPRESSLEVEL_CHECK, CONSTANT_ZSTDCOMPRESSLEVEL_STORE, QByteArray::constData(), errorMessage(), QIODevice::errorString(), file, QString::fromLatin1(), QString::fromUtf8(), i, j, m_compressAlgo, m_compressLevel, m_compressThreshold, m_dataOffset, m_fileInfo, m_flags, m_isEmpty, m_name, m_noZstd, msgOpenReadFailed(), QFile::open(), RCCResourceLibrary::Pass1, RCCResourceLibrary::Pass2, RCCResourceLibrary::Python_Code, qCompress(), QIODevice::readAll(), QIODeviceBase::ReadOnly, QByteArray::size(), text, QString::toLocal8Bit(), QString::toUtf8(), Qt::Uninitialized, RCCResourceLibrary::verbose(), QIODevice::write(), RCCResourceLibrary::Zlib, and RCCResourceLibrary::Zstd.
void RCCFileInfo::writeDataInfo | ( | RCCResourceLibrary & | lib | ) |
Definition at line 148 of file rcc.cpp.
References QLocale::C, RCCResourceLibrary::C_Code, Directory, RCCResourceLibrary::formatVersion(), QDateTime::isValid(), QFileInfo::lastModified(), m_childOffset, m_children, m_dataOffset, m_fileInfo, m_flags, m_language, m_nameOffset, m_territory, QByteArray::number(), RCCResourceLibrary::Pass1, RCCResourceLibrary::Python_Code, qgetenv(), resourceName(), QMultiHash< Key, T >::size(), text, toLocal8Bit(), QDateTime::toMSecsSinceEpoch(), QByteArray::toULongLong(), and QTimeZone::UTC.
qint64 RCCFileInfo::writeDataName | ( | RCCResourceLibrary & | lib, |
qint64 | offset | ||
) |
Definition at line 364 of file rcc.cpp.
References RCCResourceLibrary::C_Code, i, m_name, m_nameOffset, RCCResourceLibrary::Pass1, RCCResourceLibrary::Python_Code, qt_hash(), QString::size(), text, QString::toLocal8Bit(), and QString::unicode().
qint64 RCCFileInfo::m_childOffset = 0 |
Definition at line 114 of file rcc.cpp.
Referenced by writeDataInfo().
QMultiHash<QString, RCCFileInfo *> RCCFileInfo::m_children |
Definition at line 104 of file rcc.cpp.
Referenced by ~RCCFileInfo(), resourceDataFileMapRecursion(), and writeDataInfo().
RCCResourceLibrary::CompressionAlgorithm RCCFileInfo::m_compressAlgo = RCCResourceLibrary::CompressionAlgorithm::Best |
Definition at line 106 of file rcc.cpp.
Referenced by writeDataBlob().
int RCCFileInfo::m_compressLevel = CONSTANT_COMPRESSLEVEL_DEFAULT |
Definition at line 107 of file rcc.cpp.
Referenced by writeDataBlob().
int RCCFileInfo::m_compressThreshold = CONSTANT_COMPRESSTHRESHOLD_DEFAULT |
Definition at line 108 of file rcc.cpp.
Referenced by writeDataBlob().
qint64 RCCFileInfo::m_dataOffset = 0 |
Definition at line 113 of file rcc.cpp.
Referenced by writeDataBlob(), and writeDataInfo().
QFileInfo RCCFileInfo::m_fileInfo |
Definition at line 102 of file rcc.cpp.
Referenced by writeDataBlob(), and writeDataInfo().
int RCCFileInfo::m_flags = NoFlags |
Definition at line 98 of file rcc.cpp.
Referenced by writeDataBlob(), and writeDataInfo().
bool RCCFileInfo::m_isEmpty = false |
Definition at line 110 of file rcc.cpp.
Referenced by writeDataBlob().
QLocale::Language RCCFileInfo::m_language = QLocale::C |
Definition at line 99 of file rcc.cpp.
Referenced by writeDataInfo().
QString RCCFileInfo::m_name |
Definition at line 101 of file rcc.cpp.
Referenced by resourceName(), writeDataBlob(), and writeDataName().
qint64 RCCFileInfo::m_nameOffset = 0 |
Definition at line 112 of file rcc.cpp.
Referenced by writeDataInfo(), and writeDataName().
bool RCCFileInfo::m_noZstd = false |
Definition at line 109 of file rcc.cpp.
Referenced by writeDataBlob().
RCCFileInfo* RCCFileInfo::m_parent = nullptr |
Definition at line 103 of file rcc.cpp.
Referenced by resourceName().
QLocale::Territory RCCFileInfo::m_territory = QLocale::AnyTerritory |
Definition at line 100 of file rcc.cpp.
Referenced by writeDataInfo().