Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QMakeVfs Class Reference

#include <qmakevfs.h>

+ Collaboration diagram for QMakeVfs:

Public Types

enum  ReadResult { ReadOk , ReadNotFound , ReadOtherError }
 
enum  VfsFlag {
  VfsExecutable = 1 , VfsExact = 0 , VfsCumulative = 0 , VfsCreate = 0 ,
  VfsCreatedOnly = 0 , VfsAccessedOnly = 16
}
 

Public Member Functions

 QMakeVfs ()
 
 ~QMakeVfs ()
 
int idForFileName (const QString &fn, VfsFlags flags)
 
QString fileNameForId (int id)
 
bool writeFile (int id, QIODevice::OpenMode mode, VfsFlags flags, const QString &contents, QString *errStr)
 
ReadResult readFile (int id, QString *contents, QString *errStr)
 
bool exists (const QString &fn, QMakeVfs::VfsFlags flags)
 
void invalidateCache ()
 
void invalidateContents ()
 

Static Public Member Functions

static void ref ()
 
static void deref ()
 

Detailed Description

Definition at line 24 of file qmakevfs.h.

Member Enumeration Documentation

◆ ReadResult

Enumerator
ReadOk 
ReadNotFound 
ReadOtherError 

Definition at line 27 of file qmakevfs.h.

◆ VfsFlag

Enumerator
VfsExecutable 
VfsExact 
VfsCumulative 
VfsCreate 
VfsCreatedOnly 
VfsAccessedOnly 

Definition at line 33 of file qmakevfs.h.

Constructor & Destructor Documentation

◆ QMakeVfs()

QT_BEGIN_NAMESPACE QMakeVfs::QMakeVfs ( )

Definition at line 17 of file qmakevfs.cpp.

◆ ~QMakeVfs()

QMakeVfs::~QMakeVfs ( )

Definition at line 26 of file qmakevfs.cpp.

References deref().

+ Here is the call graph for this function:

Member Function Documentation

◆ deref()

void QMakeVfs::deref ( )
static

Definition at line 39 of file qmakevfs.cpp.

Referenced by ProFileCache::~ProFileCache(), and ~QMakeVfs().

+ Here is the caller graph for this function:

◆ exists()

bool QMakeVfs::exists ( const QString & fn,
QMakeVfs::VfsFlags flags )

Definition at line 210 of file qmakevfs.cpp.

◆ fileNameForId()

QString QMakeVfs::fileNameForId ( int id)

Definition at line 94 of file qmakevfs.cpp.

◆ idForFileName()

int QMakeVfs::idForFileName ( const QString & fn,
VfsFlags flags )

Definition at line 59 of file qmakevfs.cpp.

References VfsAccessedOnly.

◆ invalidateCache()

void QMakeVfs::invalidateCache ( )

Definition at line 232 of file qmakevfs.cpp.

◆ invalidateContents()

void QMakeVfs::invalidateContents ( )

Definition at line 248 of file qmakevfs.cpp.

◆ readFile()

QMakeVfs::ReadResult QMakeVfs::readFile ( int id,
QString * contents,
QString * errStr )

Definition at line 165 of file qmakevfs.cpp.

References ReadNotFound, ReadOk, and ReadOtherError.

Referenced by getResources().

+ Here is the caller graph for this function:

◆ ref()

void QMakeVfs::ref ( )
static

Definition at line 31 of file qmakevfs.cpp.

◆ writeFile()

bool QMakeVfs::writeFile ( int id,
QIODevice::OpenMode mode,
VfsFlags flags,
const QString & contents,
QString * errStr )

Definition at line 112 of file qmakevfs.cpp.


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