QFile

Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.
extern (C++)
class QFile : QFileDevice {}

Constructors

this
this()
Undocumented in source.
this
this(const(QString) name)
Undocumented in source.
this
this(QObject parent)
Undocumented in source.
this
this(const(QString) name, QObject parent)
Undocumented in source.
this
this(QFilePrivate dd, QObject parent)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

exists
bool exists()
Undocumented in source.
fileName
QString fileName()
Undocumented in source.
link
bool link(const(QString) newName)
Undocumented in source.
moveToTrash
bool moveToTrash()
Undocumented in source.
open
bool open(OpenMode flags)
Undocumented in source.
open
bool open(int fd, OpenMode ioFlags, FileHandleFlags handleFlags)
Undocumented in source.
permissions
Permissions permissions()
Undocumented in source.
readLink
QString readLink()
Undocumented in source.
remove
bool remove()
Undocumented in source.
rename
bool rename(const(QString) newName)
Undocumented in source.
resize
bool resize(qint64 sz)
Undocumented in source.
setFileName
void setFileName(const(QString) name)
Undocumented in source.
setPermissions
bool setPermissions(Permissions permissionSpec)
Undocumented in source.
size
qint64 size()
Undocumented in source.
symLinkTarget
QString symLinkTarget()
Undocumented in source.

Static functions

decodeName
QString decodeName(const(QByteArray) localFileName)
Undocumented in source. Be warned that the author may not have intended to support it.
decodeName
QString decodeName(const(char)* localFileName)
Undocumented in source. Be warned that the author may not have intended to support it.
decodeName
QString decodeName(const(QByteArray) localFileName)
Undocumented in source. Be warned that the author may not have intended to support it.
decodeName
QString decodeName(const(char)* localFileName)
Undocumented in source. Be warned that the author may not have intended to support it.
encodeName
QByteArray encodeName(const(QString) fileName)
Undocumented in source. Be warned that the author may not have intended to support it.
encodeName
QByteArray encodeName(const(QString) fileName)
Undocumented in source. Be warned that the author may not have intended to support it.
exists
bool exists(const(QString) fileName)
Undocumented in source.
link
bool link(const(QString) oldname, const(QString) newName)
Undocumented in source.
moveToTrash
bool moveToTrash(const(QString) fileName, QString* pathInTrash)
Undocumented in source.
permissions
Permissions permissions(const(QString) filename)
Undocumented in source.
readLink
QString readLink(const(QString) fileName)
Undocumented in source.
remove
bool remove(const(QString) fileName)
Undocumented in source.
rename
bool rename(const(QString) oldName, const(QString) newName)
Undocumented in source.
resize
bool resize(const(QString) filename, qint64 sz)
Undocumented in source.
setPermissions
bool setPermissions(const(QString) filename, Permissions permissionSpec)
Undocumented in source.
symLinkTarget
QString symLinkTarget(const(QString) fileName)
Undocumented in source.

Inherited Members

From QFileDevice

FileError
enum FileError
Undocumented in source.
FileTime
enum FileTime
Undocumented in source.
Permission
enum Permission
Undocumented in source.
Permissions
alias Permissions = QFlags!(Permission)
Undocumented in source.
FileHandleFlag
enum FileHandleFlag
Undocumented in source.
FileHandleFlags
alias FileHandleFlags = QFlags!(FileHandleFlag)
Undocumented in source.
~this
~this()
Undocumented in source.
error
FileError error()
Undocumented in source.
unsetError
void unsetError()
Undocumented in source.
close
void close()
Undocumented in source.
isSequential
bool isSequential()
Undocumented in source.
handle
int handle()
Undocumented in source.
fileName
QString fileName()
Undocumented in source.
pos
qint64 pos()
Undocumented in source.
seek
bool seek(qint64 offset)
Undocumented in source.
atEnd
bool atEnd()
Undocumented in source.
flush
bool flush()
Undocumented in source.
size
qint64 size()
Undocumented in source.
resize
bool resize(qint64 sz)
Undocumented in source.
permissions
Permissions permissions()
Undocumented in source.
setPermissions
bool setPermissions(Permissions permissionSpec)
Undocumented in source.
MemoryMapFlags
enum MemoryMapFlags
Undocumented in source.
map
uchar* map(qint64 offset, qint64 size, MemoryMapFlags flags)
Undocumented in source.
unmap
bool unmap(uchar* address)
Undocumented in source.
fileTime
QDateTime fileTime(QFileDevice.FileTime time)
Undocumented in source.
setFileTime
bool setFileTime(const(QDateTime) newDate, QFileDevice.FileTime fileTime)
Undocumented in source.
readData
qint64 readData(char* data, qint64 maxlen)
Undocumented in source.
writeData
qint64 writeData(const(char)* data, qint64 len)
Undocumented in source.
readLineData
qint64 readLineData(char* data, qint64 maxlen)
Undocumented in source.

Meta