QFile
#include <QtCore/QFile>
More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QFile
Overview
Inheritance
QIODevice | ||
QFile | ||
QTemporaryFile |
Public Types Index
QString(* | DecoderFn |
QByteArray(* | EncoderFn |
enum FileErrorNoError 0, ReadError 1, WriteError 2, FatalError 3, ResourceError 4, OpenError 5, AbortError 6, TimeOutError 7, UnspecifiedError 8, RemoveError 9, RenameError 10, PositionError 11, ResizeError 12, PermissionsError 13, CopyError 14 | |
enum FileHandleFlagAutoCloseHandle 0x0001, DontCloseHandle 0 | |
enum MemoryMapFlags | |
enum PermissionReadOwner 0x4000, WriteOwner 0x2000, ExeOwner 0x1000, ReadUser 0x0400, WriteUser 0x0200, ExeUser 0x0100, ReadGroup 0x0040, WriteGroup 0x0020, ExeGroup 0x0010, ReadOther 0x0004, WriteOther 0x0002, ExeOther 0x0001 | |
enum OpenModeFlagNotOpen 0x0000, ReadOnly 0x0001, WriteOnly 0x0002, ReadWrite ReadOnly | WriteOnly, Append 0x0004, Truncate 0x0008, Text 0x0010, Unbuffered 0x0020 |
Public Functions Index
QFile () | |
QFile (const QString &name) | |
QFile (QObject *parent) | |
QFile (const QString &name, QObject *parent) | |
~QFile () | |
virtual bool | atEnd () const |
virtual void | close () |
bool | copy (const QString &newName) |
FileError | error () const |
bool | exists () const |
virtual QAbstractFileEngine * | fileEngine () const |
QString | fileName () const |
bool | flush () |
int | handle () const |
virtual bool | isSequential () const |
bool | link (const QString &newName) |
uchar * | map (qint64 offset, qint64 size, MemoryMapFlags flags=NoOptions) |
virtual bool | open (OpenMode flags) |
bool | open (FILE *f, OpenMode flags) |
bool | open (int fd, OpenMode flags) |
bool | open (FILE *f, OpenMode ioFlags, FileHandleFlags handleFlags) |
bool | open (int fd, OpenMode ioFlags, FileHandleFlags handleFlags) |
Permissions | permissions () const |
virtual qint64 | pos () const |
QString | readLink () const |
bool | remove () |
bool | rename (const QString &newName) |
bool | resize (qint64 sz) |
virtual bool | seek (qint64 offset) |
void | setFileName (const QString &name) |
bool | setPermissions (Permissions permissionSpec) |
virtual qint64 | size () const |
QString | symLinkTarget () const |
bool | unmap (uchar *address) |
void | unsetError () |
virtual qint64 | bytesAvailable () const ![]() |
virtual qint64 | bytesToWrite () const ![]() |
virtual bool | canReadLine () const ![]() |
QString | errorString () const ![]() |
bool | getChar (char *c)![]() |
bool | isOpen () const ![]() |
bool | isReadable () const ![]() |
bool | isTextModeEnabled () const ![]() |
bool | isWritable () const ![]() |
OpenMode | openMode () const ![]() |
qint64 | peek (char *data, qint64 maxlen)![]() |
QByteArray | peek (qint64 maxlen)![]() |
bool | putChar (char c)![]() |
QIODevice ()![]() | |
QIODevice (QObject *parent)![]() | |
qint64 | read (char *data, qint64 maxlen)![]() |
QByteArray | read (qint64 maxlen)![]() |
QByteArray | readAll ()![]() |
qint64 | readLine (char *data, qint64 maxlen)![]() |
QByteArray | readLine (qint64 maxlen=0)![]() |
virtual bool | reset ()![]() |
void | setTextModeEnabled (bool enabled)![]() |
void | ungetChar (char c)![]() |
virtual bool | waitForBytesWritten (int msecs)![]() |
virtual bool | waitForReadyRead (int msecs)![]() |
qint64 | write (const char *data, qint64 len)![]() |
qint64 | write (const char *data)![]() |
qint64 | write (const QByteArray &data)![]() |
Static Public Functions Index
bool | copy (const QString &fileName, const QString &newName) |
QString | decodeName (const QByteArray &localFileName) |
QString | decodeName (const char *localFileName) |
QByteArray | encodeName (const QString &fileName) |
bool | exists (const QString &fileName) |
bool | link (const QString &oldname, const QString &newName) |
Permissions | permissions (const QString &filename) |
QString | readLink (const QString &fileName) |
bool | remove (const QString &fileName) |
bool | rename (const QString &oldName, const QString &newName) |
bool | resize (const QString &filename, qint64 sz) |
void | setDecodingFunction (DecoderFn) |
void | setEncodingFunction (EncoderFn) |
bool | setPermissions (const QString &filename, Permissions permissionSpec) |
QString | symLinkTarget (const QString &fileName) |
Protected Functions Index
QFile (QFilePrivate &dd, QObject *parent=0) | |
virtual qint64 | readData (char *data, qint64 maxlen) |
virtual qint64 | readLineData (char *data, qint64 maxlen) |
virtual qint64 | writeData (const char *data, qint64 len) |
QIODevice (QIODevicePrivate &dd, QObject *parent=0)![]() | |
void | setErrorString (const QString &errorString)![]() |
void | setOpenMode (OpenMode openMode)![]() |
Signals Index
Only has inherited signals
void | aboutToClose ()![]() |
void | bytesWritten (qint64 bytes)![]() |
void | readChannelFinished ()![]() |
void | readyRead ()![]() |
Public Types
typedef QString(*
typedef QByteArray(*
- NoError 0
- ReadError 1
- WriteError 2
- FatalError 3
- ResourceError 4
- OpenError 5
- AbortError 6
- TimeOutError 7
- UnspecifiedError 8
- RemoveError 9
- RenameError 10
- PositionError 11
- ResizeError 12
- PermissionsError 13
- CopyError 14
- AutoCloseHandle 0x0001
- DontCloseHandle 0
- NoOptions 0
- ReadOwner 0x4000
- WriteOwner 0x2000
- ExeOwner 0x1000
- ReadUser 0x0400
- WriteUser 0x0200
- ExeUser 0x0100
- ReadGroup 0x0040
- WriteGroup 0x0020
- ExeGroup 0x0010
- ReadOther 0x0004
- WriteOther 0x0002
- ExeOther 0x0001
- NotOpen 0x0000
- ReadOnly 0x0001
- WriteOnly 0x0002
- ReadWrite ReadOnly | WriteOnly
- Append 0x0004
- Truncate 0x0008
- Text 0x0010
- Unbuffered 0x0020
Public Functions
Destructor.
virtual bool
virtual void
bool
FileError
bool
virtualQAbstractFileEngine *
bool
int
virtual bool
bool
uchar *
virtual bool
bool
bool
bool
bool
Permissions
virtual qint64
bool
bool
bool
virtual bool
void
bool
virtual qint64
bool
void
virtual qint64 
virtual qint64 
virtual bool 
bool 
bool 
bool 
bool 
bool 
OpenMode 
qint64 
bool 
qint64 
qint64 
virtual bool 
void 
void 
virtual bool 
virtual bool 
qint64 
qint64 
qint64 
Static Public Functions
Protected Functions
virtual qint64
virtual qint64
virtual qint64
void 
void 
Signals
(Only has inherited signals)
void 
void 
void 
void 
© 2013 Digia Plc and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Documentation sources may be obtained from www.qt-project.org.
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. Privacy Policy