Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QMimeBinaryProvider::CacheFile Struct Reference
+ Collaboration diagram for QMimeBinaryProvider::CacheFile:

Public Member Functions

 CacheFile (const QString &fileName)
 
 ~CacheFile ()
 
bool isValid () const
 
quint16 getUint16 (int offset) const
 
quint32 getUint32 (int offset) const
 
const char * getCharStar (int offset) const
 
bool load ()
 
bool reload ()
 

Public Attributes

QFile file
 
uchardata
 
QDateTime m_mtime
 
bool m_valid
 

Detailed Description

Definition at line 72 of file qmimeprovider.cpp.

Constructor & Destructor Documentation

◆ CacheFile()

QMimeBinaryProvider::CacheFile::CacheFile ( const QString fileName)

Definition at line 99 of file qmimeprovider.cpp.

References load().

+ Here is the call graph for this function:

◆ ~CacheFile()

QMimeBinaryProvider::CacheFile::~CacheFile ( )

Definition at line 105 of file qmimeprovider.cpp.

Member Function Documentation

◆ getCharStar()

const char * QMimeBinaryProvider::CacheFile::getCharStar ( int  offset) const
inline

Definition at line 86 of file qmimeprovider.cpp.

◆ getUint16()

quint16 QMimeBinaryProvider::CacheFile::getUint16 ( int  offset) const
inline

Definition at line 78 of file qmimeprovider.cpp.

References qFromBigEndian().

+ Here is the call graph for this function:

◆ getUint32()

quint32 QMimeBinaryProvider::CacheFile::getUint32 ( int  offset) const
inline

Definition at line 82 of file qmimeprovider.cpp.

References qFromBigEndian().

+ Here is the call graph for this function:

◆ isValid()

bool QMimeBinaryProvider::CacheFile::isValid ( ) const
inline

Definition at line 77 of file qmimeprovider.cpp.

References m_valid.

◆ load()

bool QMimeBinaryProvider::CacheFile::load ( )

Definition at line 109 of file qmimeprovider.cpp.

References file, QFileInfo::lastModified(), QFileDevice::map(), QFile::open(), QIODeviceBase::ReadOnly, QFile::size(), and QTimeZone::UTC.

Referenced by CacheFile().

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

◆ reload()

bool QMimeBinaryProvider::CacheFile::reload ( )

Definition at line 123 of file qmimeprovider.cpp.

References QFileDevice::close(), file, QIODevice::isOpen(), and load().

+ Here is the call graph for this function:

Member Data Documentation

◆ data

uchar* QMimeBinaryProvider::CacheFile::data

Definition at line 94 of file qmimeprovider.cpp.

◆ file

QFile QMimeBinaryProvider::CacheFile::file

Definition at line 93 of file qmimeprovider.cpp.

◆ m_mtime

QDateTime QMimeBinaryProvider::CacheFile::m_mtime

Definition at line 95 of file qmimeprovider.cpp.

◆ m_valid

bool QMimeBinaryProvider::CacheFile::m_valid

Definition at line 96 of file qmimeprovider.cpp.

Referenced by isValid().


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