Qt 4.8
|
#include <qfsfileengine_p.h>
Public Types | |
enum | LastIOCommand { IOFlushCommand, IOReadCommand, IOWriteCommand } |
Public Functions | |
bool | closeFdFh () |
bool | doStat (QFileSystemMetaData::MetaDataFlags flags) const |
bool | flushFh () |
bool | isSymlink () const |
uchar * | map (qint64 offset, qint64 size, QFile::MemoryMapFlags flags) |
bool | nativeClose () |
bool | nativeFlush () |
int | nativeHandle () const |
bool | nativeIsSequential () const |
bool | nativeOpen (QIODevice::OpenMode openMode) |
qint64 | nativePos () const |
qint64 | nativeRead (char *data, qint64 maxlen) |
qint64 | nativeReadLine (char *data, qint64 maxlen) |
bool | nativeSeek (qint64) |
qint64 | nativeSize () const |
qint64 | nativeWrite (const char *data, qint64 len) |
bool | openFd (QIODevice::OpenMode flags, int fd) |
Opens the file descriptor fd to the file engine, using the open mode flags. More... | |
bool | openFh (QIODevice::OpenMode flags, FILE *fh) |
Opens the file handle fh using the open mode flags. More... | |
qint64 | posFdFh () const |
qint64 | readFdFh (char *data, qint64 maxlen) |
qint64 | readLineFdFh (char *data, qint64 maxlen) |
bool | seekFdFh (qint64) |
bool | unmap (uchar *ptr) |
qint64 | writeFdFh (const char *data, qint64 len) |
Public Functions inherited from QAbstractFileEnginePrivate | |
QAbstractFileEnginePrivate () | |
virtual | ~QAbstractFileEnginePrivate () |
Static Public Functions | |
static QString | longFileName (const QString &path) |
Public Variables | |
bool | closeFileHandle |
uint | could_stat: 1 |
int | fd |
FILE * | fh |
DWORD | fileAttrib |
QFileSystemEntry | fileEntry |
HANDLE | fileHandle |
uint | is_sequential: 2 |
bool | lastFlushFailed |
LastIOCommand | lastIOCommand |
HANDLE | mapHandle |
QHash< uchar *, DWORD > | maps |
QFileSystemMetaData | metaData |
QIODevice::OpenMode | openMode |
uint | tried_stat: 1 |
Public Variables inherited from QAbstractFileEnginePrivate | |
QString | errorString |
QFile::FileError | fileError |
QAbstractFileEngine * | q_ptr |
Protected Functions | |
QAbstractFileEngine::FileFlags | getPermissions (QAbstractFileEngine::FileFlags type) const |
void | init () |
QFSFileEnginePrivate () | |
Definition at line 81 of file qfsfileengine_p.h.
Enumerator | |
---|---|
IOFlushCommand | |
IOReadCommand | |
IOWriteCommand |
Definition at line 171 of file qfsfileengine_p.h.
|
protected |
Definition at line 107 of file qfsfileengine.cpp.
bool QFSFileEnginePrivate::closeFdFh | ( | ) |
Definition at line 387 of file qfsfileengine.cpp.
Referenced by longFileName(), and nativeClose().
bool QFSFileEnginePrivate::doStat | ( | QFileSystemMetaData::MetaDataFlags | flags | ) | const |
Definition at line 784 of file qfsfileengine_unix.cpp.
Referenced by longFileName(), and map().
bool QFSFileEnginePrivate::flushFh | ( | ) |
Definition at line 468 of file qfsfileengine.cpp.
Referenced by longFileName(), and nativeFlush().
|
protected |
|
protected |
Definition at line 115 of file qfsfileengine.cpp.
Referenced by QFSFileEnginePrivate().
bool QFSFileEnginePrivate::isSymlink | ( | ) | const |
Definition at line 802 of file qfsfileengine_unix.cpp.
Definition at line 90 of file qfsfileengine_win.cpp.
Referenced by isDirPath(), mkDir(), qt_create_pipe(), QFileSystemEntry::resolveNativeFilePath(), and rmDir().
uchar * QFSFileEnginePrivate::map | ( | qint64 | offset, |
qint64 | size, | ||
QFile::MemoryMapFlags | flags | ||
) |
Definition at line 1022 of file qfsfileengine_unix.cpp.
Referenced by longFileName().
bool QFSFileEnginePrivate::nativeClose | ( | ) |
Definition at line 429 of file qfsfileengine_unix.cpp.
Referenced by longFileName().
bool QFSFileEnginePrivate::nativeFlush | ( | ) |
Definition at line 438 of file qfsfileengine_unix.cpp.
Referenced by longFileName().
int QFSFileEnginePrivate::nativeHandle | ( | ) | const |
Definition at line 614 of file qfsfileengine_unix.cpp.
Referenced by longFileName(), and map().
bool QFSFileEnginePrivate::nativeIsSequential | ( | ) | const |
Definition at line 638 of file qfsfileengine_unix.cpp.
Referenced by longFileName(), and nativeRead().
bool QFSFileEnginePrivate::nativeOpen | ( | QIODevice::OpenMode | openMode | ) |
Definition at line 331 of file qfsfileengine_unix.cpp.
Referenced by longFileName(), and setCloseOnExec().
qint64 QFSFileEnginePrivate::nativePos | ( | ) | const |
Definition at line 579 of file qfsfileengine_unix.cpp.
Referenced by longFileName().
Definition at line 450 of file qfsfileengine_unix.cpp.
Referenced by longFileName().
Definition at line 529 of file qfsfileengine_unix.cpp.
Referenced by longFileName().
bool QFSFileEnginePrivate::nativeSeek | ( | qint64 | pos | ) |
Definition at line 593 of file qfsfileengine_unix.cpp.
Referenced by longFileName().
qint64 QFSFileEnginePrivate::nativeSize | ( | ) | const |
Definition at line 694 of file qfsfileengine_unix.cpp.
Referenced by longFileName().
Definition at line 537 of file qfsfileengine_unix.cpp.
Referenced by longFileName().
bool QFSFileEnginePrivate::openFd | ( | QIODevice::OpenMode | flags, |
int | fd | ||
) |
Opens the file descriptor fd to the file engine, using the open mode flags.
Definition at line 347 of file qfsfileengine.cpp.
bool QFSFileEnginePrivate::openFh | ( | QIODevice::OpenMode | flags, |
FILE * | fh | ||
) |
Opens the file handle fh using the open mode flags.
Definition at line 275 of file qfsfileengine.cpp.
qint64 QFSFileEnginePrivate::posFdFh | ( | ) | const |
Definition at line 528 of file qfsfileengine.cpp.
Referenced by longFileName(), and nativePos().
Definition at line 612 of file qfsfileengine.cpp.
Referenced by longFileName(), and nativeRead().
Definition at line 688 of file qfsfileengine.cpp.
Referenced by longFileName(), and nativeReadLine().
bool QFSFileEnginePrivate::seekFdFh | ( | qint64 | pos | ) |
Definition at line 547 of file qfsfileengine.cpp.
Referenced by longFileName(), and nativeSeek().
bool QFSFileEnginePrivate::unmap | ( | uchar * | ptr | ) |
Definition at line 1140 of file qfsfileengine_unix.cpp.
Referenced by longFileName().
Definition at line 741 of file qfsfileengine.cpp.
Referenced by longFileName(), and nativeWrite().
bool QFSFileEnginePrivate::closeFileHandle |
Definition at line 179 of file qfsfileengine_p.h.
Referenced by init(), nativeOpen(), and setCloseOnExec().
|
mutable |
Definition at line 182 of file qfsfileengine_p.h.
int QFSFileEnginePrivate::fd |
Definition at line 169 of file qfsfileengine_p.h.
Referenced by doStat(), init(), longFileName(), nativeFlush(), nativeHandle(), nativeOpen(), and setCloseOnExec().
FILE* QFSFileEnginePrivate::fh |
Definition at line 125 of file qfsfileengine_p.h.
Referenced by doStat(), init(), longFileName(), nativeFlush(), nativeHandle(), nativeOpen(), nativeRead(), and setCloseOnExec().
|
mutable |
Definition at line 163 of file qfsfileengine_p.h.
Referenced by init().
QFileSystemEntry QFSFileEnginePrivate::fileEntry |
Definition at line 90 of file qfsfileengine_p.h.
Referenced by doStat(), isSymlink(), longFileName(), map(), nativeHandle(), nativeOpen(), and setCloseOnExec().
HANDLE QFSFileEnginePrivate::fileHandle |
Definition at line 155 of file qfsfileengine_p.h.
Referenced by init(), and longFileName().
|
mutable |
Definition at line 181 of file qfsfileengine_p.h.
Referenced by init().
bool QFSFileEnginePrivate::lastFlushFailed |
Definition at line 178 of file qfsfileengine_p.h.
Referenced by init().
LastIOCommand QFSFileEnginePrivate::lastIOCommand |
Definition at line 177 of file qfsfileengine_p.h.
Referenced by init().
HANDLE QFSFileEnginePrivate::mapHandle |
Definition at line 156 of file qfsfileengine_p.h.
Referenced by init(), and longFileName().
Definition at line 157 of file qfsfileengine_p.h.
Referenced by longFileName(), map(), and unmap().
|
mutable |
Definition at line 123 of file qfsfileengine_p.h.
Referenced by doStat(), isSymlink(), longFileName(), map(), and nativeOpen().
QIODevice::OpenMode QFSFileEnginePrivate::openMode |
Definition at line 91 of file qfsfileengine_p.h.
Referenced by init(), longFileName(), and setCloseOnExec().
|
mutable |
Definition at line 183 of file qfsfileengine_p.h.
Referenced by doStat(), init(), and longFileName().