Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
RCCFileInfo Class Reference
+ Collaboration diagram for RCCFileInfo:

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
 
RCCFileInfooperator= (const RCCFileInfo &)=delete
 
 RCCFileInfo (RCCFileInfo &&)=default
 
RCCFileInfooperator= (RCCFileInfo &&other)=delete
 
QString resourceName () const
 
qint64 writeDataBlob (RCCResourceLibrary &lib, qint64 offset, QString *errorMessage)
 
qint64 writeDataName (RCCResourceLibrary &, qint64 offset)
 
void writeDataInfo (RCCResourceLibrary &lib)
 

Public Attributes

int m_flags = NoFlags
 
QLocale::Language m_language = QLocale::C
 
QLocale::Territory m_territory = QLocale::AnyTerritory
 
QString m_name
 
QFileInfo m_fileInfo
 
RCCFileInfom_parent = nullptr
 
QMultiHash< QString, RCCFileInfo * > m_children
 
RCCResourceLibrary::CompressionAlgorithm m_compressAlgo = RCCResourceLibrary::CompressionAlgorithm::Best
 
int m_compressLevel = CONSTANT_COMPRESSLEVEL_DEFAULT
 
int m_compressThreshold = CONSTANT_COMPRESSTHRESHOLD_DEFAULT
 
bool m_noZstd = false
 
bool m_isEmpty = false
 
qint64 m_nameOffset = 0
 
qint64 m_dataOffset = 0
 
qint64 m_childOffset = 0
 

Detailed Description

Definition at line 66 of file rcc.cpp.

Member Enumeration Documentation

◆ Flags

Enumerator
NoFlags 
Compressed 
Directory 
CompressedZstd 

Definition at line 69 of file rcc.cpp.

Constructor & Destructor Documentation

◆ RCCFileInfo() [1/4]

RCCFileInfo::RCCFileInfo ( )
default

◆ RCCFileInfo() [2/4]

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 )

Definition at line 117 of file rcc.cpp.

◆ ~RCCFileInfo()

RCCFileInfo::~RCCFileInfo ( )

Definition at line 134 of file rcc.cpp.

References m_children, and qDeleteAll().

+ Here is the call graph for this function:

◆ RCCFileInfo() [3/4]

RCCFileInfo::RCCFileInfo ( const RCCFileInfo & )
delete

◆ RCCFileInfo() [4/4]

RCCFileInfo::RCCFileInfo ( RCCFileInfo && )
default

Member Function Documentation

◆ operator=() [1/2]

RCCFileInfo & RCCFileInfo::operator= ( const RCCFileInfo & )
delete

◆ operator=() [2/2]

RCCFileInfo & RCCFileInfo::operator= ( RCCFileInfo && other)
delete

◆ resourceName()

QString RCCFileInfo::resourceName ( ) const

Definition at line 139 of file rcc.cpp.

References m_name, m_parent, and QString::prepend().

Referenced by writeDataInfo().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeDataBlob()

◆ writeDataInfo()

◆ writeDataName()

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().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_childOffset

qint64 RCCFileInfo::m_childOffset = 0

Definition at line 114 of file rcc.cpp.

Referenced by writeDataInfo().

◆ m_children

QMultiHash<QString, RCCFileInfo *> RCCFileInfo::m_children

Definition at line 104 of file rcc.cpp.

Referenced by ~RCCFileInfo(), resourceDataFileMapRecursion(), and writeDataInfo().

◆ m_compressAlgo

Definition at line 106 of file rcc.cpp.

Referenced by writeDataBlob().

◆ m_compressLevel

int RCCFileInfo::m_compressLevel = CONSTANT_COMPRESSLEVEL_DEFAULT

Definition at line 107 of file rcc.cpp.

Referenced by writeDataBlob().

◆ m_compressThreshold

int RCCFileInfo::m_compressThreshold = CONSTANT_COMPRESSTHRESHOLD_DEFAULT

Definition at line 108 of file rcc.cpp.

Referenced by writeDataBlob().

◆ m_dataOffset

qint64 RCCFileInfo::m_dataOffset = 0

Definition at line 113 of file rcc.cpp.

Referenced by writeDataBlob(), and writeDataInfo().

◆ m_fileInfo

QFileInfo RCCFileInfo::m_fileInfo

Definition at line 102 of file rcc.cpp.

Referenced by writeDataBlob(), and writeDataInfo().

◆ m_flags

int RCCFileInfo::m_flags = NoFlags

Definition at line 98 of file rcc.cpp.

Referenced by writeDataBlob(), and writeDataInfo().

◆ m_isEmpty

bool RCCFileInfo::m_isEmpty = false

Definition at line 110 of file rcc.cpp.

Referenced by writeDataBlob().

◆ m_language

QLocale::Language RCCFileInfo::m_language = QLocale::C

Definition at line 99 of file rcc.cpp.

Referenced by writeDataInfo().

◆ m_name

QString RCCFileInfo::m_name

Definition at line 101 of file rcc.cpp.

Referenced by resourceName(), writeDataBlob(), and writeDataName().

◆ m_nameOffset

qint64 RCCFileInfo::m_nameOffset = 0

Definition at line 112 of file rcc.cpp.

Referenced by writeDataInfo(), and writeDataName().

◆ m_noZstd

bool RCCFileInfo::m_noZstd = false

Definition at line 109 of file rcc.cpp.

Referenced by writeDataBlob().

◆ m_parent

RCCFileInfo* RCCFileInfo::m_parent = nullptr

Definition at line 103 of file rcc.cpp.

Referenced by resourceName().

◆ m_territory

QLocale::Territory RCCFileInfo::m_territory = QLocale::AnyTerritory

Definition at line 100 of file rcc.cpp.

Referenced by writeDataInfo().


The documentation for this class was generated from the following file: