![]() |
Qt 4.8
|
Public Functions | |
| bool | close () |
| Reimplemented Function More... | |
| bool | isReallyOpen () |
| bool | open (QIODevice::OpenMode flags) |
| Reimplemented Function More... | |
| QTemporaryFileEngine (const QString &file, bool fileIsTemplate=true) | |
| bool | remove () |
| Reimplemented Function More... | |
| bool | rename (const QString &newName) |
| Reimplemented Function More... | |
| void | setFileName (const QString &file) |
| Reimplemented Function More... | |
| void | setFileTemplate (const QString &fileTemplate) |
| ~QTemporaryFileEngine () | |
Public Functions inherited from QFSFileEngine | |
| Iterator * | beginEntryList (QDir::Filters filters, const QStringList &filterNames) |
| bool | caseSensitive () const |
| Returns true for Windows, false for Unix. More... | |
| bool | copy (const QString &newName) |
| For windows, copy the file to file copyName. More... | |
| Iterator * | endEntryList () |
| QStringList | entryList (QDir::Filters filters, const QStringList &filterNames) const |
| bool | extension (Extension extension, const ExtensionOption *option=0, ExtensionReturn *output=0) |
| Reimplemented Function More... | |
| FileFlags | fileFlags (FileFlags type) const |
| Reimplemented Function More... | |
| QString | fileName (FileName file) const |
| Reimplemented Function More... | |
| QDateTime | fileTime (FileTime time) const |
| Reimplemented Function More... | |
| bool | flush () |
| Reimplemented Function More... | |
| int | handle () const |
| Reimplemented Function More... | |
| bool | isRelativePath () const |
| Reimplemented Function More... | |
| bool | isSequential () const |
| Reimplemented Function More... | |
| bool | link (const QString &newName) |
| Creates a link from the file currently specified by fileName() to newName. More... | |
| bool | mkdir (const QString &dirName, bool createParentDirectories) const |
| Reimplemented Function More... | |
| bool | open (QIODevice::OpenMode flags, FILE *fh) |
| Opens the file handle fh in openMode mode. More... | |
| bool | open (QIODevice::OpenMode flags, int fd) |
| Opens the file descriptor fd in openMode mode. More... | |
| bool | open (QIODevice::OpenMode flags, int fd, QFile::FileHandleFlags handleFlags) |
| Opens the file descriptor fd in openMode mode. More... | |
| bool | open (QIODevice::OpenMode flags, FILE *fh, QFile::FileHandleFlags handleFlags) |
| Opens the file handle fh in openMode mode. More... | |
| QString | owner (FileOwner) const |
| Reimplemented Function More... | |
| uint | ownerId (FileOwner) const |
In Unix, if stat() is successful, the uid is returned if own is the owner. More... | |
| qint64 | pos () const |
| Reimplemented Function More... | |
| QFSFileEngine () | |
| Constructs a QFSFileEngine. More... | |
| QFSFileEngine (const QString &file) | |
| Constructs a QFSFileEngine for the file name file. More... | |
| qint64 | read (char *data, qint64 maxlen) |
| Reimplemented Function More... | |
| qint64 | readLine (char *data, qint64 maxlen) |
| Reimplemented Function More... | |
| bool | rmdir (const QString &dirName, bool recurseParentDirectories) const |
| Reimplemented Function More... | |
| bool | seek (qint64) |
| Reimplemented Function More... | |
| bool | setPermissions (uint perms) |
| Reimplemented Function More... | |
| bool | setSize (qint64 size) |
| Reimplemented Function More... | |
| qint64 | size () const |
| Reimplemented Function More... | |
| bool | supportsExtension (Extension extension) const |
| Reimplemented Function More... | |
| qint64 | write (const char *data, qint64 len) |
| Reimplemented Function More... | |
| ~QFSFileEngine () | |
| Destructs the QFSFileEngine. More... | |
Public Functions inherited from QAbstractFileEngine | |
| bool | atEnd () const |
| Returns true if the current position is at the end of the file; otherwise, returns false. More... | |
| QFile::FileError | error () const |
| Returns the QFile::FileError that resulted from the last failed operation. More... | |
| QString | errorString () const |
| Returns the human-readable message appropriate to the current error reported by error(). More... | |
| uchar * | map (qint64 offset, qint64 size, QFile::MemoryMapFlags flags) |
| Maps size bytes of the file into memory starting at offset. More... | |
| bool | unmap (uchar *ptr) |
| Unmaps the memory address. More... | |
| virtual | ~QAbstractFileEngine () |
| Destroys the QAbstractFileEngine. More... | |
Public Variables | |
| bool | filePathIsTemplate |
Additional Inherited Members | |
Public Types inherited from QAbstractFileEngine | |
| enum | Extension { AtEndExtension, FastReadLineExtension, MapExtension, UnMapExtension } |
| This enum describes the types of extensions that the file engine can support. More... | |
| enum | FileFlag { ReadOwnerPerm = 0x4000, WriteOwnerPerm = 0x2000, ExeOwnerPerm = 0x1000, ReadUserPerm = 0x0400, WriteUserPerm = 0x0200, ExeUserPerm = 0x0100, ReadGroupPerm = 0x0040, WriteGroupPerm = 0x0020, ExeGroupPerm = 0x0010, ReadOtherPerm = 0x0004, WriteOtherPerm = 0x0002, ExeOtherPerm = 0x0001, LinkType = 0x10000, FileType = 0x20000, DirectoryType = 0x40000, BundleType = 0x80000, HiddenFlag = 0x0100000, LocalDiskFlag = 0x0200000, ExistsFlag = 0x0400000, RootFlag = 0x0800000, Refresh = 0x1000000, PermsMask = 0x0000FFFF, TypesMask = 0x000F0000, FlagsMask = 0x0FF00000, FileInfoAll = FlagsMask | PermsMask | TypesMask } |
| The permissions and types of a file, suitable for OR'ing together. More... | |
| enum | FileName { DefaultName, BaseName, PathName, AbsoluteName, AbsolutePathName, LinkName, CanonicalName, CanonicalPathName, BundleName, NFileNames = 9 } |
| These values are used to request a file name in a particular format. More... | |
| enum | FileOwner { OwnerUser, OwnerGroup } |
| enum | FileTime { CreationTime, ModificationTime, AccessTime } |
| These are used by the fileTime() function. More... | |
| typedef QAbstractFileEngineIterator | Iterator |
Static Public Functions inherited from QFSFileEngine | |
| static QString | currentPath (const QString &path=QString()) |
| For Unix, returns the current working directory for the file engine. More... | |
| static QFileInfoList | drives () |
| For Windows, returns the list of drives in the file system as a list of QFileInfo objects. More... | |
| static QString | homePath () |
| Returns the home path of the current user. More... | |
| static QString | rootPath () |
| Returns the root path. More... | |
| static bool | setCurrentPath (const QString &path) |
| Sets the current path (e. More... | |
| static QString | tempPath () |
| Returns the temporary path (i. More... | |
Static Public Functions inherited from QAbstractFileEngine | |
| static QAbstractFileEngine * | create (const QString &fileName) |
| Creates and returns a QAbstractFileEngine suitable for processing fileName. More... | |
Protected Functions inherited from QFSFileEngine | |
| QFSFileEngine (QFSFileEnginePrivate &dd) | |
Protected Functions inherited from QAbstractFileEngine | |
| QAbstractFileEngine () | |
| Constructs a new QAbstractFileEngine that does not refer to any file or directory. More... | |
| QAbstractFileEngine (QAbstractFileEnginePrivate &) | |
| Constructs a QAbstractFileEngine. More... | |
| void | setError (QFile::FileError error, const QString &str) |
| Sets the error type to error, and the error string to errorString. More... | |
Protected Variables inherited from QAbstractFileEngine | |
| QScopedPointer< QAbstractFileEnginePrivate > | d_ptr |
Related Functions inherited from QAbstractFileEngine | |
| Iterator | |
| Synonym for QAbstractFileEngineIterator. More... | |
Definition at line 251 of file qtemporaryfile.cpp.
|
inline |
Definition at line 255 of file qtemporaryfile.cpp.
| QTemporaryFileEngine::~QTemporaryFileEngine | ( | ) |
|
virtual |
Reimplemented Function
Reimplemented from QFSFileEngine.
Definition at line 428 of file qtemporaryfile.cpp.
Referenced by QTemporaryFileEngine().
| bool QTemporaryFileEngine::isReallyOpen | ( | ) |
Definition at line 284 of file qtemporaryfile.cpp.
Referenced by open(), and QTemporaryFileEngine().
|
virtual |
Reimplemented Function
Reimplemented from QFSFileEngine.
Definition at line 316 of file qtemporaryfile.cpp.
Referenced by QTemporaryFileEngine().
|
virtual |
Reimplemented Function
Reimplemented from QFSFileEngine.
Definition at line 409 of file qtemporaryfile.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QFSFileEngine.
Definition at line 422 of file qtemporaryfile.cpp.
Referenced by QTemporaryFileEngine().
|
virtual |
Reimplemented Function
Reimplemented from QFSFileEngine.
Definition at line 302 of file qtemporaryfile.cpp.
Referenced by QTemporaryFileEngine().
| void QTemporaryFileEngine::setFileTemplate | ( | const QString & | fileTemplate | ) |
Definition at line 309 of file qtemporaryfile.cpp.
Referenced by QTemporaryFileEngine().
| bool QTemporaryFileEngine::filePathIsTemplate |
Definition at line 276 of file qtemporaryfile.cpp.
Referenced by open(), QTemporaryFileEngine(), and setFileTemplate().