<class name="QFile" doc="/**
&lt;p&gt;The &lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt; class provides an interface for reading from and writing to files.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt; is an I/O device for reading and writing text and binary files and &lt;a href=&quot;%2E%2E/resources.html&quot;&gt;resources&lt;/tt&gt;&lt;/a&gt;. A &lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt; may be used by itself or, more conveniently, with a &lt;a href=&quot;QTextStream.html&quot;&gt;&lt;tt&gt;QTextStream&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDataStream.html&quot;&gt;&lt;tt&gt;QDataStream&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The file name is usually passed in the constructor, but it can be set at any time using &lt;a href=&quot;QFile.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt;. &lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt; expects the file separator to be '/' regardless of operating system. The use of other separators (e.g&amp;#x2e;, '\') is not supported.&lt;/p&gt;
&lt;p&gt;You can check for a file's existence using &lt;a href=&quot;QFile.html#exists(java.lang.String)&quot;&gt;&lt;tt&gt;exists&lt;/tt&gt;&lt;/a&gt;, and remove a file using &lt;a href=&quot;QFile.html#remove(java.lang.String)&quot;&gt;&lt;tt&gt;remove&lt;/tt&gt;&lt;/a&gt;. (More advanced file system related operations are provided by &lt;a href=&quot;QFileInfo.html&quot;&gt;&lt;tt&gt;QFileInfo&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDir.html&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt;.)&lt;/p&gt;
&lt;p&gt;The file is opened with &lt;a href=&quot;QFile.html#open(com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;open&lt;/tt&gt;&lt;/a&gt;, closed with &lt;a href=&quot;QFile.html#close()&quot;&gt;&lt;tt&gt;close&lt;/tt&gt;&lt;/a&gt;, and flushed with &lt;a href=&quot;QFile.html#flush()&quot;&gt;&lt;tt&gt;flush&lt;/tt&gt;&lt;/a&gt;. Data is usually read and written using &lt;a href=&quot;QDataStream.html&quot;&gt;&lt;tt&gt;QDataStream&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QTextStream.html&quot;&gt;&lt;tt&gt;QTextStream&lt;/tt&gt;&lt;/a&gt;, but you can also call the &lt;a href=&quot;QIODevice.html#QIODevice(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QIODevice&lt;/tt&gt;&lt;/a&gt;-inherited functions &lt;a href=&quot;QIODevice.html#read(long)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QIODevice.html#readLine(long)&quot;&gt;&lt;tt&gt;readLine&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QIODevice.html#readAll()&quot;&gt;&lt;tt&gt;readAll&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QIODevice.html#write(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;write&lt;/tt&gt;&lt;/a&gt;. &lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt; also inherits getChar(), putChar(), and ungetChar(), which work one character at a time.&lt;/p&gt;
&lt;p&gt;The size of the file is returned by &lt;a href=&quot;QFile.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;. You can get the current file position using &lt;a href=&quot;QFile.html#pos()&quot;&gt;&lt;tt&gt;pos&lt;/tt&gt;&lt;/a&gt;, or move to a new file position using &lt;a href=&quot;QFile.html#seek(long)&quot;&gt;&lt;tt&gt;seek&lt;/tt&gt;&lt;/a&gt;. If you've reached the end of the file, &lt;a href=&quot;QFile.html#atEnd()&quot;&gt;&lt;tt&gt;atEnd&lt;/tt&gt;&lt;/a&gt; returns true.&lt;/p&gt;
&lt;a name=&quot;reading-files-directly&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Reading Files Directly&lt;/h3&gt;
&lt;p&gt;The following example reads a text file line by line:&lt;/p&gt;
&lt;pre&gt;        QFile file(&amp;quot;in.txt&amp;quot;);
        if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
            return;

        while (!file.atEnd()) {
            QByteArray line = file.readLine();
            process_line(line);
        }&lt;/pre&gt;
&lt;p&gt;The QIODevice::Text flag passed to &lt;a href=&quot;QFile.html#open(com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;open&lt;/tt&gt;&lt;/a&gt; tells Qt to convert Windows-style line terminators (&amp;quot;\r\n&amp;quot;) into C++-style terminators (&amp;quot;\n&amp;quot;). By default, &lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt; assumes binary, i.e&amp;#x2e; it doesn't perform any conversion on the bytes stored in the file.&lt;/p&gt;
&lt;a name=&quot;using-streams-to-read-files&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Using Streams to Read Files&lt;/h3&gt;
&lt;p&gt;The next example uses &lt;a href=&quot;QTextStream.html&quot;&gt;&lt;tt&gt;QTextStream&lt;/tt&gt;&lt;/a&gt; to read a text file line by line:&lt;/p&gt;
&lt;pre&gt;        QFile file(&amp;quot;in.txt&amp;quot;);
        if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
            return;

        QTextStream in(&amp;amp;file);
        while (!in.atEnd()) {
            QString line = in.readLine();
            process_line(line);
        }&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;QTextStream.html&quot;&gt;&lt;tt&gt;QTextStream&lt;/tt&gt;&lt;/a&gt; takes care of converting the 8-bit data stored on disk into a 16-bit Unicode &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt;. By default, it assumes that the user system's local 8-bit encoding is used (e.g&amp;#x2e;, ISO 8859-1 for most of Europe; see QTextCodec::codecForLocale() for details). This can be changed using setCodec().&lt;/p&gt;
&lt;p&gt;To write text, we can use operator&amp;lt;&amp;lt;(), which is overloaded to take a &lt;a href=&quot;QTextStream.html&quot;&gt;&lt;tt&gt;QTextStream&lt;/tt&gt;&lt;/a&gt; on the left and various data types (including &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt;) on the right:&lt;/p&gt;
&lt;pre&gt;        QFile file(&amp;quot;out.txt&amp;quot;);
        if (!file.open(QIODevice::WriteOnly | QIODevice::Text))
            return;

        QTextStream out(&amp;amp;file);
        out &amp;lt;&amp;lt; &amp;quot;The magic number is: &amp;quot; &amp;lt;&amp;lt; 49 &amp;lt;&amp;lt; &amp;quot;\n&amp;quot;;&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;QDataStream.html&quot;&gt;&lt;tt&gt;QDataStream&lt;/tt&gt;&lt;/a&gt; is similar, in that you can use operator&amp;lt;&amp;lt;() to write data and operator&amp;gt;&amp;gt;() to read it back. See the class documentation for details.&lt;/p&gt;
&lt;p&gt;When you use &lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFileInfo.html&quot;&gt;&lt;tt&gt;QFileInfo&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QDir.html&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; to access the file system with Qt, you can use Unicode file names. On Unix, these file names are converted to an 8-bit encoding. If you want to use standard C++ APIs (&lt;tt&gt;&amp;lt;cstdio&amp;gt;&lt;/tt&gt; or &lt;tt&gt;&amp;lt;iostream&amp;gt;&lt;/tt&gt;) or platform-specific APIs to access files instead of &lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt;, you can use the &lt;a href=&quot;QFile.html#encodeName(java.lang.String)&quot;&gt;&lt;tt&gt;encodeName&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFile.html#decodeName(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;decodeName&lt;/tt&gt;&lt;/a&gt; functions to convert between Unicode file names and 8-bit file names.&lt;/p&gt;
&lt;p&gt;On Unix, there are some special system files (e.g&amp;#x2e; in &lt;tt&gt;/proc&lt;/tt&gt;) for which &lt;a href=&quot;QFile.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; will always return 0, yet you may still be able to read more data from such a file; the data is generated in direct response to you calling &lt;a href=&quot;QIODevice.html#read(long)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt;. In this case, however, you cannot use &lt;a href=&quot;QFile.html#atEnd()&quot;&gt;&lt;tt&gt;atEnd&lt;/tt&gt;&lt;/a&gt; to determine if there is more data to read (since &lt;a href=&quot;QFile.html#atEnd()&quot;&gt;&lt;tt&gt;atEnd&lt;/tt&gt;&lt;/a&gt; will return true for a file that claims to have size 0). Instead, you should either call &lt;a href=&quot;QIODevice.html#readAll()&quot;&gt;&lt;tt&gt;readAll&lt;/tt&gt;&lt;/a&gt;, or call &lt;a href=&quot;QIODevice.html#read(long)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QIODevice.html#readLine(long)&quot;&gt;&lt;tt&gt;readLine&lt;/tt&gt;&lt;/a&gt; repeatedly until no more data can be read. The next example uses &lt;a href=&quot;QTextStream.html&quot;&gt;&lt;tt&gt;QTextStream&lt;/tt&gt;&lt;/a&gt; to read &lt;tt&gt;/proc/modules&lt;/tt&gt; line by line:&lt;/p&gt;
&lt;pre&gt;        QFile file(&amp;quot;/proc/modules&amp;quot;);
        if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
            return;

        QTextStream in(&amp;amp;file);
        QString line = in.readLine();
        while (!line.isNull()) {
            process_line(line);
            line = in.readLine();
        }&lt;/pre&gt;
&lt;a name=&quot;signals&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Signals&lt;/h3&gt;
&lt;p&gt;Unlike other &lt;a href=&quot;QIODevice.html#QIODevice(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QIODevice&lt;/tt&gt;&lt;/a&gt; implementations, such as &lt;a href=&quot;%2E%2E/network/QTcpSocket.html&quot;&gt;&lt;tt&gt;QTcpSocket&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt; does not emit the &lt;a href=&quot;QFile.html#aboutToClose()&quot;&gt;&lt;tt&gt;aboutToClose&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFile.html#bytesWritten(long)&quot;&gt;&lt;tt&gt;bytesWritten&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QFile.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt; signals. This implementation detail means that &lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt; is not suitable for reading and writing certain types of files, such as device files on Unix platforms.&lt;/p&gt;

@see &lt;a href=&quot;QTextStream.html&quot;&gt;&lt;tt&gt;QTextStream&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDataStream.html&quot;&gt;&lt;tt&gt;QDataStream&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFileInfo.html&quot;&gt;&lt;tt&gt;QFileInfo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/resources.html&quot;&gt;The Qt Resource System&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void aboutToClose()" doc="/**
&lt;p&gt;This signal is emitted when the device is about to close. Connect this signal if you have operations that need to be performed before the device closes (e.g&amp;#x2e;, if you have data in a separate buffer that needs to be written to the device).&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void bytesWritten(long bytes)" doc="/**
&lt;p&gt;This signal is emitted every time a payload of data has been written to the device. The &lt;tt&gt;bytes&lt;/tt&gt; argument is set to the number of bytes that were written in this payload.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QFile.html#bytesWritten(long)&quot;&gt;&lt;tt&gt;bytesWritten&lt;/tt&gt;&lt;/a&gt; is not emitted recursively; if you reenter the event loop or call &lt;a href=&quot;QIODevice.html#waitForBytesWritten(int)&quot;&gt;&lt;tt&gt;waitForBytesWritten&lt;/tt&gt;&lt;/a&gt; inside a slot connected to the &lt;a href=&quot;QFile.html#bytesWritten(long)&quot;&gt;&lt;tt&gt;bytesWritten&lt;/tt&gt;&lt;/a&gt; signal, the signal will not be reemitted (although &lt;a href=&quot;QIODevice.html#waitForBytesWritten(int)&quot;&gt;&lt;tt&gt;waitForBytesWritten&lt;/tt&gt;&lt;/a&gt; may still return true).&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(long bytes)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QFile.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void readyRead()" doc="/**
&lt;p&gt;This signal is emitted once every time new data is available for reading from the device. It will only be emitted again once new data is available, such as when a new payload of network data has arrived on your network socket, or when a new block of data has been appended to your device.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QFile.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt; is not emitted recursively; if you reenter the event loop or call &lt;a href=&quot;QIODevice.html#waitForReadyRead(int)&quot;&gt;&lt;tt&gt;waitForReadyRead&lt;/tt&gt;&lt;/a&gt; inside a slot connected to the &lt;a href=&quot;QFile.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt; signal, the signal will not be reemitted (although &lt;a href=&quot;QIODevice.html#waitForReadyRead(int)&quot;&gt;&lt;tt&gt;waitForReadyRead&lt;/tt&gt;&lt;/a&gt; may still return true).&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QFile.html#bytesWritten(long)&quot;&gt;&lt;tt&gt;bytesWritten&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QFile(java.lang.String name, com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs a new file object with the given &lt;tt&gt;parent&lt;/tt&gt; to represent the file with the specified &lt;tt&gt;name&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QFile(java.lang.String name)" doc="/**
&lt;p&gt;Constructs a new file object to represent the file with the given &lt;tt&gt;name&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QFile(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs a new file object with the given &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QFile()" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public final boolean copy(java.lang.String newName)" doc="/**
&lt;p&gt;Copies the file currently specified by &lt;a href=&quot;QFile.html#fileName()&quot;&gt;&lt;tt&gt;fileName&lt;/tt&gt;&lt;/a&gt; to a file called &lt;tt&gt;newName&lt;/tt&gt;. Returns true if successful; otherwise returns false.&lt;/p&gt;
&lt;p&gt;Note that if a file with the name &lt;tt&gt;newName&lt;/tt&gt; already exists, &lt;a href=&quot;QFile.html#copy(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;copy&lt;/tt&gt;&lt;/a&gt; returns false (i.e&amp;#x2e; &lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt; will not overwrite it).&lt;/p&gt;
&lt;p&gt;The source file is closed before it is copied.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QFile.FileError error()" doc="/**
&lt;p&gt;Returns the file error status.&lt;/p&gt;
&lt;p&gt;The I/O device status returns an error code. For example, if &lt;a href=&quot;QFile.html#open(com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;open&lt;/tt&gt;&lt;/a&gt; returns false, or a read/write operation returns -1, this function can be called to find out the reason why the operation failed.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#unsetError()&quot;&gt;&lt;tt&gt;unsetError&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean exists()" doc="/**
&lt;p&gt;Returns true if the file specified by &lt;a href=&quot;QFile.html#fileName()&quot;&gt;&lt;tt&gt;fileName&lt;/tt&gt;&lt;/a&gt; exists; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#fileName()&quot;&gt;&lt;tt&gt;fileName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFile.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String fileName()" doc="/**
&lt;p&gt;Returns the name set by &lt;a href=&quot;QFile.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt; or to the &lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt; constructors.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QFileInfo::fileName&lt;/tt&gt; */"/>
    <method name="public final boolean flush()" doc="/**
&lt;p&gt;Flushes any buffered data to the file. Returns true if successful; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final int handle()" doc="/**
&lt;p&gt;Returns the file handle of the file.&lt;/p&gt;
&lt;p&gt;This is a small positive integer, suitable for use with C library functions such as fdopen() and fcntl(). On systems that use file descriptors for sockets (i.e&amp;#x2e; Unix systems, but not Windows) the handle can be used with &lt;a href=&quot;QSocketNotifier.html&quot;&gt;&lt;tt&gt;QSocketNotifier&lt;/tt&gt;&lt;/a&gt; as well.&lt;/p&gt;
&lt;p&gt;If the file is not open, or there is an error, &lt;a href=&quot;QFile.html#handle()&quot;&gt;&lt;tt&gt;handle&lt;/tt&gt;&lt;/a&gt; returns -1.&lt;/p&gt;

@see &lt;a href=&quot;QSocketNotifier.html&quot;&gt;&lt;tt&gt;QSocketNotifier&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean link(java.lang.String newName)" doc="/**
&lt;p&gt;Creates a link named &lt;tt&gt;newName&lt;/tt&gt; that points to the file currently specified by &lt;a href=&quot;QFile.html#fileName()&quot;&gt;&lt;tt&gt;fileName&lt;/tt&gt;&lt;/a&gt;. What a link is depends on the underlying filesystem (be it a shortcut on Windows or a symbolic link on Unix). Returns true if successful; otherwise returns false.&lt;/p&gt;
&lt;p&gt;This function will not overwrite an already existing entity in the file system; in this case, &lt;tt&gt;link()&lt;/tt&gt; will return false and set error() to return RenameError.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; To create a valid link on Windows, &lt;tt&gt;newName&lt;/tt&gt; must have a &lt;tt&gt;.lnk&lt;/tt&gt; file extension.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean open(int fd, com.trolltech.qt.core.QIODevice.OpenMode flags)" doc="/**
&lt;p&gt;Opens the existing file descripter &lt;tt&gt;fd&lt;/tt&gt; in the given &lt;tt&gt;flags&lt;/tt&gt;. Returns true if successful; otherwise returns false.&lt;/p&gt;
&lt;p&gt;When a &lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt; is opened using this function, &lt;a href=&quot;QFile.html#close()&quot;&gt;&lt;tt&gt;close&lt;/tt&gt;&lt;/a&gt; does not actually close the file.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt; that is opened using this function is automatically set to be in raw mode; this means that the file input/output functions are slow. If you run into performance issues, you should try to use one of the other open functions.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; If &lt;tt&gt;fd&lt;/tt&gt; is 0 (&lt;tt&gt;stdin&lt;/tt&gt;), 1 (&lt;tt&gt;stdout&lt;/tt&gt;), or 2 (&lt;tt&gt;stderr&lt;/tt&gt;), you may not be able to &lt;a href=&quot;QFile.html#seek(long)&quot;&gt;&lt;tt&gt;seek&lt;/tt&gt;&lt;/a&gt;. &lt;a href=&quot;QFile.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; is set to &lt;tt&gt;LLONG_MAX&lt;/tt&gt; (in &lt;tt&gt;&amp;lt;climits&amp;gt;&lt;/tt&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#close()&quot;&gt;&lt;tt&gt;close&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QFile.Permissions permissions()" doc="/**
&lt;p&gt;Returns the complete OR-ed together combination of QFile::Permission for the file.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#setPermissions(java.lang.String, com.trolltech.qt.core.QFile.Permissions)&quot;&gt;&lt;tt&gt;setPermissions&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFile.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean remove()" doc="/**
&lt;p&gt;Removes the file specified by &lt;a href=&quot;QFile.html#fileName()&quot;&gt;&lt;tt&gt;fileName&lt;/tt&gt;&lt;/a&gt;. Returns true if successful; otherwise returns false.&lt;/p&gt;
&lt;p&gt;The file is closed before it is removed.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean rename(java.lang.String newName)" doc="/**
&lt;p&gt;Renames the file currently specified by &lt;a href=&quot;QFile.html#fileName()&quot;&gt;&lt;tt&gt;fileName&lt;/tt&gt;&lt;/a&gt; to &lt;tt&gt;newName&lt;/tt&gt;. Returns true if successful; otherwise returns false.&lt;/p&gt;
&lt;p&gt;If a file with the name &lt;tt&gt;newName&lt;/tt&gt; already exists, &lt;a href=&quot;QFile.html#rename(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;rename&lt;/tt&gt;&lt;/a&gt; returns false (i.e&amp;#x2e;, &lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt; will not overwrite it).&lt;/p&gt;
&lt;p&gt;The file is closed before it is renamed.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean resize(long sz)" doc="/**
&lt;p&gt;Sets the file size (in bytes) &lt;tt&gt;sz&lt;/tt&gt;. Returns true if the file if the resize succeeds; false otherwise. If &lt;tt&gt;sz&lt;/tt&gt; is larger than the file currently is the new bytes will be set to 0, if &lt;tt&gt;sz&lt;/tt&gt; is smaller the file is simply truncated.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFile.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFileName(java.lang.String name)" doc="/**
&lt;p&gt;Sets the &lt;tt&gt;name&lt;/tt&gt; of the file. The name can have no path, a relative path, or an absolute path.&lt;/p&gt;
&lt;p&gt;Do not call this function if the file has already been opened.&lt;/p&gt;
&lt;p&gt;If the file name has no path or a relative path, the path used will be the application's current directory path &lt;i&gt;at the time of the &lt;a href=&quot;QFile.html#open(com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;open&lt;/tt&gt;&lt;/a&gt;&lt;/i&gt; call.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QFile file;
    QDir::setCurrent(&amp;quot;/tmp&amp;quot;);
    file.setFileName(&amp;quot;readme.txt&amp;quot;);
    QDir::setCurrent(&amp;quot;/home&amp;quot;);
    file.open(QIODevice::ReadOnly);      &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; opens &amp;quot;/home/readme.txt&amp;quot; under Unix&lt;/pre&gt;
&lt;p&gt;Note that the directory separator &amp;quot;/&amp;quot; works for all operating systems supported by Qt.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#fileName()&quot;&gt;&lt;tt&gt;fileName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFileInfo.html&quot;&gt;&lt;tt&gt;QFileInfo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean setPermissions(com.trolltech.qt.core.QFile.Permissions permissionSpec)" doc="/**
&lt;p&gt;Sets the permissions for the file to the &lt;tt&gt;permissionSpec&lt;/tt&gt; specified. Returns true if successful, or false if the permissions cannot be modified.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#permissions(java.lang.String)&quot;&gt;&lt;tt&gt;permissions&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFile.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String symLinkTarget()" doc="/**
&lt;p&gt;Returns the absolute path of the file or directory a symlink (or shortcut on Windows) points to, or a an empty string if the object isn't a symbolic link.&lt;/p&gt;
&lt;p&gt;This name may not represent an existing file; it is only a string. QFile::exists() returns true if the symlink points to an existing file.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#fileName()&quot;&gt;&lt;tt&gt;fileName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFile.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void unsetError()" doc="/**
&lt;p&gt;Sets the file's error to QFile::NoError.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public boolean atEnd()" doc="/**
&lt;p&gt;Returns true if the end of the file has been reached; otherwise returns false.&lt;/p&gt;
&lt;p&gt;For regular empty files on Unix (e.g&amp;#x2e; those in &lt;tt&gt;/proc&lt;/tt&gt;), this function returns true, since the file system reports that the size of such a file is 0. Therefore, you should not depend on &lt;a href=&quot;QFile.html#atEnd()&quot;&gt;&lt;tt&gt;atEnd&lt;/tt&gt;&lt;/a&gt; when reading data from such a file, but rather call &lt;a href=&quot;QIODevice.html#read(long)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt; until no more data can be read.&lt;/p&gt;
 */"/>
    <method name="public void close()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QAbstractFileEngine fileEngine()" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public boolean isSequential()" doc="/**
&lt;p&gt;Returns true if the file can only be manipulated sequentially; otherwise returns false.&lt;/p&gt;
&lt;p&gt;Most files support random-access, but some special files may not.&lt;/p&gt;

@see &lt;tt&gt;QIODevice::isSequential&lt;/tt&gt; */"/>
    <method name="public boolean open(com.trolltech.qt.core.QIODevice.OpenMode flags)" doc="/**
&lt;p&gt;Opens the file using OpenMode &lt;tt&gt;flags&lt;/tt&gt;, returning true if successful; otherwise false.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;flags&lt;/tt&gt; must be QIODevice::ReadOnly, QIODevice::WriteOnly, or QIODevice::ReadWrite. It may also have additional flags, such as QIODevice::Text and QIODevice::Unbuffered.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; In WriteOnly or ReadWrite mode, if the relevant file does not already exist, this function will try to create a new file before opening it.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; Because of limitations in the native API, &lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt; ignores the Unbuffered flag on Windows.&lt;/p&gt;

@see &lt;tt&gt;QIODevice::OpenMode&lt;/tt&gt;
@see &lt;a href=&quot;QFile.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public long pos()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected int readData(byte[] data)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFile.html#readData(byte[])&quot;&gt;&lt;tt&gt;readData&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;data&lt;/tt&gt;, ). */"/>
    <method name="protected int readLineData(byte[] data)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFile.html#readLineData(byte[])&quot;&gt;&lt;tt&gt;readLineData&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;data&lt;/tt&gt;, ). */"/>
    <method name="public boolean seek(long offset)" doc="/**
&lt;p&gt;For random-access devices, this function sets the current position to &lt;tt&gt;offset&lt;/tt&gt;, returning true on success, or false if an error occurred. For sequential devices, the default behavior is to do nothing and return false.&lt;/p&gt;
&lt;p&gt;When subclassing &lt;a href=&quot;QIODevice.html#QIODevice(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QIODevice&lt;/tt&gt;&lt;/a&gt;, you must call QIODevice::seek() at the start of your function to ensure integrity with &lt;a href=&quot;QIODevice.html#QIODevice(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QIODevice&lt;/tt&gt;&lt;/a&gt;'s built-in buffer. The base implementation always returns true.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#pos()&quot;&gt;&lt;tt&gt;pos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFile.html#isSequential()&quot;&gt;&lt;tt&gt;isSequential&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public long size()" doc="/**
&lt;p&gt;Returns the size of the file.&lt;/p&gt;
&lt;p&gt;For regular empty files on Unix (e.g&amp;#x2e; those in &lt;tt&gt;/proc&lt;/tt&gt;), this function returns 0; the contents of such a file are generated on demand in response to you calling &lt;a href=&quot;QIODevice.html#read(long)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="protected int writeData(byte[] data)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFile.html#writeData(byte[])&quot;&gt;&lt;tt&gt;writeData&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;data&lt;/tt&gt;, ). */"/>
    <method name="public native static boolean copy(java.lang.String fileName, java.lang.String newName)" doc="/**
&lt;p&gt;Copies the file &lt;tt&gt;fileName&lt;/tt&gt; to &lt;tt&gt;newName&lt;/tt&gt;. Returns true if successful; otherwise returns false.&lt;/p&gt;
&lt;p&gt;If a file with the name &lt;tt&gt;newName&lt;/tt&gt; already exists, &lt;a href=&quot;QFile.html#copy(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;copy&lt;/tt&gt;&lt;/a&gt; returns false (i.e&amp;#x2e;, &lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt; will not overwrite it).&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#rename(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;rename&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static java.lang.String decodeName(com.trolltech.qt.core.QByteArray localFileName)" doc="/**
&lt;p&gt;This does the reverse of QFile::encodeName() using &lt;tt&gt;localFileName&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;setDecodingFunction&lt;/tt&gt;
@see &lt;a href=&quot;QFile.html#encodeName(java.lang.String)&quot;&gt;&lt;tt&gt;encodeName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.core.QByteArray encodeName(java.lang.String fileName)" doc="/**
&lt;p&gt;By default, this function converts &lt;tt&gt;fileName&lt;/tt&gt; to the local 8-bit encoding determined by the user's locale. This is sufficient for file names that the user chooses. File names hard-coded into the application should only use 7-bit ASCII filename characters.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#decodeName(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;decodeName&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;setEncodingFunction&lt;/tt&gt; */"/>
    <method name="public native static boolean exists(java.lang.String fileName)" doc="/**
&lt;p&gt;Returns true if the file specified by &lt;tt&gt;fileName&lt;/tt&gt; exists; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public native static boolean link(java.lang.String oldname, java.lang.String newName)" doc="/**
&lt;p&gt;Creates a link named &lt;tt&gt;newName&lt;/tt&gt; that points to the file &lt;tt&gt;oldname&lt;/tt&gt;. What a link is depends on the underlying filesystem (be it a shortcut on Windows or a symbolic link on Unix). Returns true if successful; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#link(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;link&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.core.QFile.Permissions permissions(java.lang.String filename)" doc="/**
&lt;p&gt;Returns the complete OR-ed together combination of QFile::Permission for &lt;tt&gt;filename&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#setPermissions(java.lang.String, com.trolltech.qt.core.QFile.Permissions)&quot;&gt;&lt;tt&gt;setPermissions&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static boolean remove(java.lang.String fileName)" doc="/**
&lt;p&gt;Removes the file specified by the &lt;tt&gt;fileName&lt;/tt&gt; given.&lt;/p&gt;
&lt;p&gt;Returns true if successful; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#remove(java.lang.String)&quot;&gt;&lt;tt&gt;remove&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static boolean rename(java.lang.String oldName, java.lang.String newName)" doc="/**
&lt;p&gt;Renames the file &lt;tt&gt;oldName&lt;/tt&gt; to &lt;tt&gt;newName&lt;/tt&gt;. Returns true if successful; otherwise returns false.&lt;/p&gt;
&lt;p&gt;If a file with the name &lt;tt&gt;newName&lt;/tt&gt; already exists, &lt;a href=&quot;QFile.html#rename(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;rename&lt;/tt&gt;&lt;/a&gt; returns false (i.e&amp;#x2e;, &lt;a href=&quot;QFile.html#QFile()&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt; will not overwrite it).&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#rename(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;rename&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static boolean resize(java.lang.String filename, long sz)" doc="/**
&lt;p&gt;Sets &lt;tt&gt;filename&lt;/tt&gt; to size (in bytes) &lt;tt&gt;sz&lt;/tt&gt;. Returns true if the file if the resize succeeds; false otherwise. If &lt;tt&gt;sz&lt;/tt&gt; is larger than &lt;tt&gt;filename&lt;/tt&gt; currently is the new bytes will be set to 0, if &lt;tt&gt;sz&lt;/tt&gt; is smaller the file is simply truncated.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#resize(java.lang.String, long)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static boolean setPermissions(java.lang.String filename, com.trolltech.qt.core.QFile.Permissions permissionSpec)" doc="/**
&lt;p&gt;Sets the permissions for &lt;tt&gt;filename&lt;/tt&gt; file to &lt;tt&gt;permissionSpec&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFile.html#permissions(java.lang.String)&quot;&gt;&lt;tt&gt;permissions&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String symLinkTarget(java.lang.String fileName)" doc="/**
&lt;p&gt;Returns the absolute path of the file or directory referred to by the symlink (or shortcut on Windows) specified by &lt;tt&gt;fileName&lt;/tt&gt;, or returns an empty string if the &lt;tt&gt;fileName&lt;/tt&gt; does not correspond to a symbolic link.&lt;/p&gt;
&lt;p&gt;This name may not represent an existing file; it is only a string. QFile::exists() returns true if the symlink points to an existing file.&lt;/p&gt;
 */"/>
    <enum name="FileError" doc="/**
&lt;p&gt;This enum describes the errors that may be returned by the &lt;a href=&quot;QFile.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
 */">
        <enum-value name="NoError" doc="/**
&lt;p&gt;No error occurred.&lt;/p&gt;
 */"/>
        <enum-value name="ReadError" doc="/**
&lt;p&gt;An error occurred when reading from the file.&lt;/p&gt;
 */"/>
        <enum-value name="WriteError" doc="/**
&lt;p&gt;An error occurred when writing to the file.&lt;/p&gt;
 */"/>
        <enum-value name="FatalError" doc="/**
&lt;p&gt;A fatal error occurred.&lt;/p&gt;
 */"/>
        <enum-value name="ResourceError" doc="/**
Internal. */"/>
        <enum-value name="OpenError" doc="/**
&lt;p&gt;The file could not be opened.&lt;/p&gt;
 */"/>
        <enum-value name="AbortError" doc="/**
&lt;p&gt;The operation was aborted.&lt;/p&gt;
 */"/>
        <enum-value name="TimeOutError" doc="/**
&lt;p&gt;A timeout occurred.&lt;/p&gt;
 */"/>
        <enum-value name="UnspecifiedError" doc="/**
&lt;p&gt;An unspecified error occurred.&lt;/p&gt;
 */"/>
        <enum-value name="RemoveError" doc="/**
&lt;p&gt;The file could not be removed.&lt;/p&gt;
 */"/>
        <enum-value name="RenameError" doc="/**
&lt;p&gt;The file could not be renamed.&lt;/p&gt;
 */"/>
        <enum-value name="PositionError" doc="/**
&lt;p&gt;The position in the file could not be changed.&lt;/p&gt;
 */"/>
        <enum-value name="ResizeError" doc="/**
&lt;p&gt;The file could not be resized.&lt;/p&gt;
 */"/>
        <enum-value name="PermissionsError" doc="/**
&lt;p&gt;The file could not be accessed.&lt;/p&gt;
 */"/>
        <enum-value name="CopyError" doc="/**
&lt;p&gt;The file could not be copied.&lt;/p&gt;
 */"/>
</enum>
    <enum name="Permission" doc="/**
&lt;p&gt;This enum is used by the permission() function to report the permissions and ownership of a file. The values may be OR-ed together to test multiple permissions and ownership values.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Because of differences in the platforms supported by Qt, the semantics of &lt;a href=&quot;QFile.html#Permission-enum&quot;&gt;&lt;tt&gt;ReadUser&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFile.html#Permission-enum&quot;&gt;&lt;tt&gt;WriteUser&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFile.html#Permission-enum&quot;&gt;&lt;tt&gt;ExeUser&lt;/tt&gt;&lt;/a&gt; are platform-dependent: On Unix, the rights of the owner of the file are returned and on Windows the rights of the current user are returned. This behavior might change in a future Qt version.&lt;/p&gt;
 */">
        <enum-value name="ReadOwner" doc="/**
&lt;p&gt;The file is readable by the owner of the file.&lt;/p&gt;
 */"/>
        <enum-value name="WriteOwner" doc="/**
&lt;p&gt;The file is writable by the owner of the file.&lt;/p&gt;
 */"/>
        <enum-value name="ExeOwner" doc="/**
&lt;p&gt;The file is executable by the owner of the file.&lt;/p&gt;
 */"/>
        <enum-value name="ReadUser" doc="/**
&lt;p&gt;The file is readable by the user.&lt;/p&gt;
 */"/>
        <enum-value name="WriteUser" doc="/**
&lt;p&gt;The file is writable by the user.&lt;/p&gt;
 */"/>
        <enum-value name="ExeUser" doc="/**
&lt;p&gt;The file is executable by the user.&lt;/p&gt;
 */"/>
        <enum-value name="ReadGroup" doc="/**
&lt;p&gt;The file is readable by the group.&lt;/p&gt;
 */"/>
        <enum-value name="WriteGroup" doc="/**
&lt;p&gt;The file is writable by the group.&lt;/p&gt;
 */"/>
        <enum-value name="ExeGroup" doc="/**
&lt;p&gt;The file is executable by the group.&lt;/p&gt;
 */"/>
        <enum-value name="ReadOther" doc="/**
&lt;p&gt;The file is readable by anyone.&lt;/p&gt;
 */"/>
        <enum-value name="WriteOther" doc="/**
&lt;p&gt;The file is writable by anyone.&lt;/p&gt;
 */"/>
        <enum-value name="ExeOther" doc="/**
&lt;p&gt;The file is executable by anyone.&lt;/p&gt;
 */"/>
</enum>
</class>
