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

Inheritance

QIODevice
QFile
QTemporaryFile

Public Types Index

Only has inherited public types

QString(*DecoderFn
QByteArray(*EncoderFn

enum FileError

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

enum FileHandleFlag

AutoCloseHandle 0x0001, DontCloseHandle 0

enum MemoryMapFlags

NoOptions 0

enum OpenModeFlag

NotOpen 0x0000, ReadOnly 0x0001, WriteOnly 0x0002, ReadWrite ReadOnly | WriteOnly, Append 0x0004, Truncate 0x0008, Text 0x0010, Unbuffered 0x0020

enum Permission

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 Index

QTemporaryFile ()
QTemporaryFile (const QString &templateName)
QTemporaryFile (QObject *parent)
QTemporaryFile (const QString &templateName, QObject *parent)
~QTemporaryFile ()
boolautoRemove () const
virtual QAbstractFileEngine *fileEngine () const
QStringfileName () const
QStringfileTemplate () const
boolopen ()
voidsetAutoRemove (bool b)
voidsetFileTemplate (const QString &name)
virtual boolatEnd () const Inherited
virtual qint64bytesAvailable () const Inherited
virtual qint64bytesToWrite () const Inherited
virtual boolcanReadLine () const Inherited
virtual voidclose ()Inherited
boolcopy (const QString &newName)Inherited
FileErrorerror () const Inherited
QStringerrorString () const Inherited
boolexists () const Inherited
boolflush ()Inherited
boolgetChar (char *c)Inherited
inthandle () const Inherited
boolisOpen () const Inherited
boolisReadable () const Inherited
virtual boolisSequential () const Inherited
boolisTextModeEnabled () const Inherited
boolisWritable () const Inherited
boollink (const QString &newName)Inherited
uchar *map (qint64 offset, qint64 size, MemoryMapFlags flags=NoOptions)Inherited
boolopen (FILE *f, OpenMode flags)Inherited
boolopen (int fd, OpenMode flags)Inherited
boolopen (FILE *f, OpenMode ioFlags, FileHandleFlags handleFlags)Inherited
boolopen (int fd, OpenMode ioFlags, FileHandleFlags handleFlags)Inherited
OpenModeopenMode () const Inherited
qint64peek (char *data, qint64 maxlen)Inherited
QByteArraypeek (qint64 maxlen)Inherited
Permissionspermissions () const Inherited
virtual qint64pos () const Inherited
boolputChar (char c)Inherited
QFile ()Inherited
QFile (const QString &name)Inherited
QFile (QObject *parent)Inherited
QFile (const QString &name, QObject *parent)Inherited
QIODevice ()Inherited
QIODevice (QObject *parent)Inherited
qint64read (char *data, qint64 maxlen)Inherited
QByteArrayread (qint64 maxlen)Inherited
QByteArrayreadAll ()Inherited
qint64readLine (char *data, qint64 maxlen)Inherited
QByteArrayreadLine (qint64 maxlen=0)Inherited
QStringreadLink () const Inherited
boolremove ()Inherited
boolrename (const QString &newName)Inherited
virtual boolreset ()Inherited
boolresize (qint64 sz)Inherited
virtual boolseek (qint64 offset)Inherited
voidsetFileName (const QString &name)Inherited
boolsetPermissions (Permissions permissionSpec)Inherited
voidsetTextModeEnabled (bool enabled)Inherited
virtual qint64size () const Inherited
QStringsymLinkTarget () const Inherited
voidungetChar (char c)Inherited
boolunmap (uchar *address)Inherited
voidunsetError ()Inherited
virtual boolwaitForBytesWritten (int msecs)Inherited
virtual boolwaitForReadyRead (int msecs)Inherited
qint64write (const char *data, qint64 len)Inherited
qint64write (const char *data)Inherited
qint64write (const QByteArray &data)Inherited

Static Public Functions Index

QTemporaryFile *createLocalFile (const QString &fileName)
QTemporaryFile *createLocalFile (QFile &file)
boolcopy (const QString &fileName, const QString &newName)Inherited
QStringdecodeName (const QByteArray &localFileName)Inherited
QStringdecodeName (const char *localFileName)Inherited
QByteArrayencodeName (const QString &fileName)Inherited
boolexists (const QString &fileName)Inherited
boollink (const QString &oldname, const QString &newName)Inherited
Permissionspermissions (const QString &filename)Inherited
QStringreadLink (const QString &fileName)Inherited
boolremove (const QString &fileName)Inherited
boolrename (const QString &oldName, const QString &newName)Inherited
boolresize (const QString &filename, qint64 sz)Inherited
voidsetDecodingFunction (DecoderFn)Inherited
voidsetEncodingFunction (EncoderFn)Inherited
boolsetPermissions (const QString &filename, Permissions permissionSpec)Inherited
QStringsymLinkTarget (const QString &fileName)Inherited

Protected Functions Index

virtual boolopen (OpenMode flags)
QFile (QFilePrivate &dd, QObject *parent=0)Inherited
QIODevice (QIODevicePrivate &dd, QObject *parent=0)Inherited
virtual qint64readData (char *data, qint64 maxlen)Inherited
virtual qint64readLineData (char *data, qint64 maxlen)Inherited
voidsetErrorString (const QString &errorString)Inherited
voidsetOpenMode (OpenMode openMode)Inherited
virtual qint64writeData (const char *data, qint64 len)Inherited

Signals Index

Only has inherited signals

voidaboutToClose ()Inherited
voidbytesWritten (qint64 bytes)Inherited
voidreadChannelFinished ()Inherited
voidreadyRead ()Inherited

Public Types

(Only has inherited public types)

typedef QString(* DecoderFn Inherited

typedef QByteArray(* EncoderFn Inherited

FileError Inherited

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

FileHandleFlag Inherited

AutoCloseHandle 0x0001
DontCloseHandle 0

MemoryMapFlags Inherited

NoOptions 0

OpenModeFlag Inherited

NotOpen 0x0000
ReadOnly 0x0001
WriteOnly 0x0002
ReadWrite ReadOnly | WriteOnly
Append 0x0004
Truncate 0x0008
Text 0x0010
Unbuffered 0x0020

Permission Inherited

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

QTemporaryFile ()

QTemporaryFile (

QTemporaryFile (

QTemporaryFile (

~QTemporaryFile ()

Destructor.

bool autoRemove ()

virtualQAbstractFileEngine * fileEngine ()

QString fileName ()

QString fileTemplate ()

bool open ()

void setAutoRemove (
  • boolb)

void setFileTemplate (

virtual bool atEnd ()Inherited

virtual qint64 bytesAvailable ()Inherited

virtual qint64 bytesToWrite ()Inherited

virtual bool canReadLine ()Inherited

virtual void close ()Inherited

bool copy (Inherited

FileError error ()Inherited

QString errorString ()Inherited

bool exists ()Inherited

bool flush ()Inherited

bool getChar (
  • char *c)
Inherited

int handle ()Inherited

bool isOpen ()Inherited

bool isReadable ()Inherited

virtual bool isSequential ()Inherited

bool isTextModeEnabled ()Inherited

bool isWritable ()Inherited

uchar * map (
  • qint64offset,
  • qint64size,
  • MemoryMapFlagsflags )
Inherited

bool open (
  • FILE *f,
  • OpenModeflags )
Inherited

bool open (
  • intfd,
  • OpenModeflags )
Inherited

bool open (
  • FILE *f,
  • OpenModeioFlags,
  • FileHandleFlagshandleFlags )
Inherited

bool open (
  • intfd,
  • OpenModeioFlags,
  • FileHandleFlagshandleFlags )
Inherited

OpenMode openMode ()Inherited

qint64 peek (
  • char *data,
  • qint64maxlen )
Inherited

QByteArray peek (
  • qint64maxlen)
Inherited

Permissions permissions ()Inherited

virtual qint64 pos ()Inherited

bool putChar (
  • charc)
Inherited

QFile ()Inherited

QFile (Inherited

QFile (Inherited

QFile (Inherited

QIODevice ()Inherited

QIODevice (Inherited

qint64 read (
  • char *data,
  • qint64maxlen )
Inherited

QByteArray read (
  • qint64maxlen)
Inherited

QByteArray readAll ()Inherited

qint64 readLine (
  • char *data,
  • qint64maxlen )
Inherited

QByteArray readLine (
  • qint64maxlen)
Inherited

bool remove ()Inherited

bool rename (Inherited

virtual bool reset ()Inherited

bool resize (
  • qint64sz)
Inherited

virtual bool seek (
  • qint64offset)
Inherited

void setFileName (Inherited

bool setPermissions (
  • PermissionspermissionSpec)
Inherited

void setTextModeEnabled (
  • boolenabled)
Inherited

virtual qint64 size ()Inherited

QString symLinkTarget ()Inherited

void ungetChar (
  • charc)
Inherited

bool unmap (
  • uchar *address)
Inherited

void unsetError ()Inherited

virtual bool waitForBytesWritten (
  • intmsecs)
Inherited

virtual bool waitForReadyRead (
  • intmsecs)
Inherited

qint64 write (
  • const char *data,
  • qint64len )
Inherited

qint64 write (
  • const char *data)
Inherited

qint64 write (Inherited

Static Public Functions

QTemporaryFile * createLocalFile (

QTemporaryFile * createLocalFile (

bool copy (Inherited

QString decodeName (Inherited

QString decodeName (
  • const char *localFileName)
Inherited

QByteArray encodeName (Inherited

bool exists (Inherited

Permissions permissions (Inherited

bool remove (Inherited

bool rename (Inherited

bool resize (
  • const QString &filename,
  • qint64sz )
Inherited

void setDecodingFunction (
  • DecoderFn)
Inherited

void setEncodingFunction (
  • EncoderFn)
Inherited

bool setPermissions (
  • const QString &filename,
  • PermissionspermissionSpec )
Inherited

QString symLinkTarget (Inherited

Protected Functions

virtual bool open (
  • OpenModeflags)

QFile (
  • QFilePrivate &dd,
  • QObject *parent )
Inherited

QIODevice (
  • QIODevicePrivate &dd,
  • QObject *parent )
Inherited

virtual qint64 readData (
  • char *data,
  • qint64maxlen )
Inherited

virtual qint64 readLineData (
  • char *data,
  • qint64maxlen )
Inherited

void setErrorString (Inherited

void setOpenMode (
  • OpenModeopenMode)
Inherited

virtual qint64 writeData (
  • const char *data,
  • qint64len )
Inherited

Signals

(Only has inherited signals)

void aboutToClose ()Inherited

void bytesWritten (
  • qint64bytes)
Inherited

void readChannelFinished ()Inherited

void readyRead ()Inherited

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus