Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qmakevfs.h>
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 () |
Definition at line 24 of file qmakevfs.h.
enum QMakeVfs::ReadResult |
Enumerator | |
---|---|
ReadOk | |
ReadNotFound | |
ReadOtherError |
Definition at line 27 of file qmakevfs.h.
enum QMakeVfs::VfsFlag |
Enumerator | |
---|---|
VfsExecutable | |
VfsExact | |
VfsCumulative | |
VfsCreate | |
VfsCreatedOnly | |
VfsAccessedOnly |
Definition at line 33 of file qmakevfs.h.
QT_BEGIN_NAMESPACE QMakeVfs::QMakeVfs | ( | ) |
Definition at line 17 of file qmakevfs.cpp.
QMakeVfs::~QMakeVfs | ( | ) |
Definition at line 26 of file qmakevfs.cpp.
References deref().
|
static |
Definition at line 39 of file qmakevfs.cpp.
Referenced by ProFileCache::~ProFileCache(), and ~QMakeVfs().
bool QMakeVfs::exists | ( | const QString & | fn, |
QMakeVfs::VfsFlags | flags ) |
Definition at line 210 of file qmakevfs.cpp.
QString QMakeVfs::fileNameForId | ( | int | id | ) |
Definition at line 94 of file qmakevfs.cpp.
int QMakeVfs::idForFileName | ( | const QString & | fn, |
VfsFlags | flags ) |
Definition at line 59 of file qmakevfs.cpp.
References VfsAccessedOnly.
void QMakeVfs::invalidateCache | ( | ) |
Definition at line 232 of file qmakevfs.cpp.
void QMakeVfs::invalidateContents | ( | ) |
Definition at line 248 of file qmakevfs.cpp.
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().
|
static |
Definition at line 31 of file qmakevfs.cpp.
bool QMakeVfs::writeFile | ( | int | id, |
QIODevice::OpenMode | mode, | ||
VfsFlags | flags, | ||
const QString & | contents, | ||
QString * | errStr ) |
Definition at line 112 of file qmakevfs.cpp.