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
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 53 of file qmimeprovider.cpp.

Constructor & Destructor Documentation

◆ CacheFile()

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

Definition at line 117 of file qmimeprovider.cpp.

References load().

+ Here is the call graph for this function:

◆ ~CacheFile()

QMimeBinaryProvider::CacheFile::~CacheFile ( )

Definition at line 123 of file qmimeprovider.cpp.

Member Function Documentation

◆ getCharStar()

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

Definition at line 67 of file qmimeprovider.cpp.

◆ getUint16()

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

Definition at line 59 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 63 of file qmimeprovider.cpp.

References qFromBigEndian().

+ Here is the call graph for this function:

◆ isValid()

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

Definition at line 58 of file qmimeprovider.cpp.

References m_valid.

◆ load()

bool QMimeBinaryProvider::CacheFile::load ( )

Definition at line 127 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 141 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 75 of file qmimeprovider.cpp.

◆ file

QFile QMimeBinaryProvider::CacheFile::file

Definition at line 74 of file qmimeprovider.cpp.

◆ m_mtime

QDateTime QMimeBinaryProvider::CacheFile::m_mtime

Definition at line 76 of file qmimeprovider.cpp.

◆ m_valid

bool QMimeBinaryProvider::CacheFile::m_valid

Definition at line 77 of file qmimeprovider.cpp.

Referenced by isValid().


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