QTemporaryFile
#include <QtCore/QTemporaryFile>
More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QTemporaryFile
Overview
Public Types Index
Only has inherited public types
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 OpenModeFlagNotOpen 0x0000, ReadOnly 0x0001, WriteOnly 0x0002, ReadWrite ReadOnly | WriteOnly, Append 0x0004, Truncate 0x0008, Text 0x0010, Unbuffered 0x0020 | |
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 |
Public Functions Index
QTemporaryFile () | |
QTemporaryFile (const QString &templateName) | |
QTemporaryFile (QObject *parent) | |
QTemporaryFile (const QString &templateName, QObject *parent) | |
~QTemporaryFile () | |
bool | autoRemove () const |
virtual QAbstractFileEngine * | fileEngine () const |
QString | fileName () const |
QString | fileTemplate () const |
bool | open () |
void | setAutoRemove (bool b) |
void | setFileTemplate (const QString &name) |
virtual bool | atEnd () const ![]() |
virtual qint64 | bytesAvailable () const ![]() |
virtual qint64 | bytesToWrite () const ![]() |
virtual bool | canReadLine () const ![]() |
virtual void | close ()![]() |
bool | copy (const QString &newName)![]() |
FileError | error () const ![]() |
QString | errorString () const ![]() |
bool | exists () const ![]() |
bool | flush ()![]() |
bool | getChar (char *c)![]() |
int | handle () const ![]() |
bool | isOpen () const ![]() |
bool | isReadable () const ![]() |
virtual bool | isSequential () const ![]() |
bool | isTextModeEnabled () const ![]() |
bool | isWritable () const ![]() |
bool | link (const QString &newName)![]() |
uchar * | map (qint64 offset, qint64 size, MemoryMapFlags flags=NoOptions)![]() |
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)![]() |
OpenMode | openMode () const ![]() |
qint64 | peek (char *data, qint64 maxlen)![]() |
QByteArray | peek (qint64 maxlen)![]() |
Permissions | permissions () const ![]() |
virtual qint64 | pos () const ![]() |
bool | putChar (char c)![]() |
QFile ()![]() | |
QFile (const QString &name)![]() | |
QFile (QObject *parent)![]() | |
QFile (const QString &name, QObject *parent)![]() | |
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)![]() |
QString | readLink () const ![]() |
bool | remove ()![]() |
bool | rename (const QString &newName)![]() |
virtual bool | reset ()![]() |
bool | resize (qint64 sz)![]() |
virtual bool | seek (qint64 offset)![]() |
void | setFileName (const QString &name)![]() |
bool | setPermissions (Permissions permissionSpec)![]() |
void | setTextModeEnabled (bool enabled)![]() |
virtual qint64 | size () const ![]() |
QString | symLinkTarget () const ![]() |
void | ungetChar (char c)![]() |
bool | unmap (uchar *address)![]() |
void | unsetError ()![]() |
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
QTemporaryFile * | createLocalFile (const QString &fileName) |
QTemporaryFile * | createLocalFile (QFile &file) |
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
virtual bool | open (OpenMode flags) |
QFile (QFilePrivate &dd, QObject *parent=0)![]() | |
QIODevice (QIODevicePrivate &dd, QObject *parent=0)![]() | |
virtual qint64 | readData (char *data, qint64 maxlen)![]() |
virtual qint64 | readLineData (char *data, qint64 maxlen)![]() |
void | setErrorString (const QString &errorString)![]() |
void | setOpenMode (OpenMode openMode)![]() |
virtual qint64 | writeData (const char *data, qint64 len)![]() |
Signals Index
Only has inherited signals
void | aboutToClose ()![]() |
void | bytesWritten (qint64 bytes)![]() |
void | readChannelFinished ()![]() |
void | readyRead ()![]() |
Public Types
(Only has inherited 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
- NotOpen 0x0000
- ReadOnly 0x0001
- WriteOnly 0x0002
- ReadWrite ReadOnly | WriteOnly
- Append 0x0004
- Truncate 0x0008
- Text 0x0010
- Unbuffered 0x0020
- ReadOwner 0x4000
- WriteOwner 0x2000
- ExeOwner 0x1000
- ReadUser 0x0400
- WriteUser 0x0200
- ExeUser 0x0100
- ReadGroup 0x0040
- WriteGroup 0x0020
- ExeGroup 0x0010
- ReadOther 0x0004
- WriteOther 0x0002
- ExeOther 0x0001
Public Functions
Destructor.
bool
virtualQAbstractFileEngine *
bool
void
void
virtual bool 
virtual qint64 
virtual qint64 
virtual bool 
virtual void 
bool 
FileError 
bool 
bool 
bool 
int 
bool 
bool 
virtual bool 
bool 
bool 
bool 
uchar * 
bool 
bool 
bool 
bool 
OpenMode 
qint64 
Permissions 
virtual qint64 
bool 
qint64 
qint64 
bool 
bool 
virtual bool 
bool 
virtual bool 
void 
bool 
void 
virtual qint64 
void 
bool 
void 
virtual bool 
virtual bool 
qint64 
qint64 
qint64 
Static Public Functions
bool 
bool 
bool 
Permissions 
bool 
bool 
bool 
void 
void 
bool 
Protected Functions
virtual bool
virtual qint64 
virtual qint64 
void 
void 
virtual qint64 
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