Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2028

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QFtp" doc="/**
&lt;p&gt;The &lt;a href=&quot;QFtp.html#QFtp(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QFtp&lt;/tt&gt;&lt;/a&gt; class provides an implementation of the client side of FTP protocol.&lt;/p&gt;
&lt;p&gt;The class works asynchronously, so there are no blocking functions. If an operation cannot be executed immediately, the function will still return straight away and the operation will be scheduled for later execution. The results of scheduled operations are reported via signals. This approach depends on the event loop being in operation.&lt;/p&gt;
&lt;p&gt;The operations that can be scheduled (they are called &amp;quot;commands&amp;quot; in the rest of the documentation) are the following: &lt;a href=&quot;QFtp.html#connectToHost(java.lang.String, char)&quot;&gt;&lt;tt&gt;connectToHost&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#login(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;login&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#close()&quot;&gt;&lt;tt&gt;close&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#list(java.lang.String)&quot;&gt;&lt;tt&gt;list&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#cd(java.lang.String)&quot;&gt;&lt;tt&gt;cd&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;&lt;tt&gt;get&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#put(com.trolltech.qt.core.QIODevice, java.lang.String, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;&lt;tt&gt;put&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#remove(java.lang.String)&quot;&gt;&lt;tt&gt;remove&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#mkdir(java.lang.String)&quot;&gt;&lt;tt&gt;mkdir&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#rmdir(java.lang.String)&quot;&gt;&lt;tt&gt;rmdir&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#rename(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;rename&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFtp.html#rawCommand(java.lang.String)&quot;&gt;&lt;tt&gt;rawCommand&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;All of these commands return a unique identifier that allows you to keep track of the command that is currently being executed. When the execution of a command starts, the &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; signal with the command's identifier is emitted. When the command is finished, the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal is emitted with the command's identifier and a bool that indicates whether the command finished with an error.&lt;/p&gt;
&lt;p&gt;In some cases, you might want to execute a sequence of commands, e.g&amp;#x2e; if you want to connect and login to a FTP server. This is simply achieved:&lt;/p&gt;
&lt;pre&gt;    QFtp *ftp = new QFtp(parent);
    ftp-&amp;gt;connectToHost(&amp;quot;ftp.trolltech.com&amp;quot;);
    ftp-&amp;gt;login();&lt;/pre&gt;
&lt;p&gt;In this case two FTP commands have been scheduled. When the last scheduled command has finished, a &lt;a href=&quot;QFtp.html#done(boolean)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt; signal is emitted with a bool argument that tells you whether the sequence finished with an error.&lt;/p&gt;
&lt;p&gt;If an error occurs during the execution of one of the commands in a sequence of commands, all the pending commands (i.e&amp;#x2e; scheduled, but not yet executed commands) are cleared and no signals are emitted for them.&lt;/p&gt;
&lt;p&gt;Some commands, e.g&amp;#x2e; &lt;a href=&quot;QFtp.html#list(java.lang.String)&quot;&gt;&lt;tt&gt;list&lt;/tt&gt;&lt;/a&gt;, emit additional signals to report their results.&lt;/p&gt;
&lt;p&gt;Example: If you want to download the INSTALL file from Trolltech's FTP server, you would write this:&lt;/p&gt;
&lt;pre&gt;    ftp-&amp;gt;connectToHost(&amp;quot;ftp.trolltech.com&amp;quot;);  &lt;span class=&quot;comment&quot;&gt;// id == 1&lt;/span&gt;
    ftp-&amp;gt;login();                             &lt;span class=&quot;comment&quot;&gt;// id == 2&lt;/span&gt;
    ftp-&amp;gt;cd(&amp;quot;qt&amp;quot;);                            &lt;span class=&quot;comment&quot;&gt;// id == 3&lt;/span&gt;
    ftp-&amp;gt;get(&amp;quot;INSTALL&amp;quot;);                      &lt;span class=&quot;comment&quot;&gt;// id == 4&lt;/span&gt;
    ftp-&amp;gt;close();                             &lt;span class=&quot;comment&quot;&gt;// id == 5&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;For this example the following sequence of signals is emitted (with small variations, depending on network traffic, etc.):&lt;/p&gt;
&lt;pre&gt;    start(1)
    stateChanged(HostLookup)
    stateChanged(Connecting)
    stateChanged(Connected)
    finished(1, false)

    start(2)
    stateChanged(LoggedIn)
    finished(2, false)

    start(3)
    finished(3, false)

    start(4)
    dataTransferProgress(0, 3798)
    dataTransferProgress(2896, 3798)
    readyRead()
    dataTransferProgress(3798, 3798)
    readyRead()
    finished(4, false)

    start(5)
    stateChanged(Closing)
    stateChanged(Unconnected)
    finished(5, false)

    done(false)&lt;/pre&gt;
&lt;p&gt;The &lt;a href=&quot;QFtp.html#dataTransferProgress(long, long)&quot;&gt;&lt;tt&gt;dataTransferProgress&lt;/tt&gt;&lt;/a&gt; signal in the above example is useful if you want to show a &lt;a href=&quot;%2E%2E/gui/QProgressBar.html&quot;&gt;progress bar&lt;/tt&gt;&lt;/a&gt; to inform the user about the progress of the download. The &lt;a href=&quot;QFtp.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt; signal tells you that there is data ready to be read. The amount of data can be queried then with the &lt;a href=&quot;QFtp.html#bytesAvailable()&quot;&gt;&lt;tt&gt;bytesAvailable&lt;/tt&gt;&lt;/a&gt; function and it can be read with the read() or &lt;a href=&quot;QFtp.html#readAll()&quot;&gt;&lt;tt&gt;readAll&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;If the login fails for the above example, the signals would look like this:&lt;/p&gt;
&lt;pre&gt;    start(1)
    stateChanged(HostLookup)
    stateChanged(Connecting)
    stateChanged(Connected)
    finished(1, false)

    start(2)
    finished(2, true)

    done(true)&lt;/pre&gt;
&lt;p&gt;You can then get details about the error with the &lt;a href=&quot;QFtp.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFtp.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt; functions.&lt;/p&gt;
&lt;p&gt;For file transfer, &lt;a href=&quot;QFtp.html#QFtp(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QFtp&lt;/tt&gt;&lt;/a&gt; can use both active or passive mode, and it uses passive file transfer mode by default; see the documentation for &lt;a href=&quot;QFtp.html#setTransferMode(com.trolltech.qt.network.QFtp.TransferMode)&quot;&gt;&lt;tt&gt;setTransferMode&lt;/tt&gt;&lt;/a&gt; for more details about this.&lt;/p&gt;
&lt;p&gt;Call &lt;a href=&quot;QFtp.html#setProxy(java.lang.String, char)&quot;&gt;&lt;tt&gt;setProxy&lt;/tt&gt;&lt;/a&gt; to make &lt;a href=&quot;QFtp.html#QFtp(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QFtp&lt;/tt&gt;&lt;/a&gt; connect via an FTP proxy server.&lt;/p&gt;
&lt;p&gt;The functions &lt;a href=&quot;QFtp.html#currentId()&quot;&gt;&lt;tt&gt;currentId&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFtp.html#currentCommand()&quot;&gt;&lt;tt&gt;currentCommand&lt;/tt&gt;&lt;/a&gt; provide more information about the currently executing command.&lt;/p&gt;
&lt;p&gt;The functions &lt;a href=&quot;QFtp.html#hasPendingCommands()&quot;&gt;&lt;tt&gt;hasPendingCommands&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFtp.html#clearPendingCommands()&quot;&gt;&lt;tt&gt;clearPendingCommands&lt;/tt&gt;&lt;/a&gt; allow you to query and clear the list of pending commands.&lt;/p&gt;
&lt;p&gt;If you are an experienced network programmer and want to have complete control you can use &lt;a href=&quot;QFtp.html#rawCommand(java.lang.String)&quot;&gt;&lt;tt&gt;rawCommand&lt;/tt&gt;&lt;/a&gt; to execute arbitrary FTP commands.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; The current version of &lt;a href=&quot;QFtp.html#QFtp(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QFtp&lt;/tt&gt;&lt;/a&gt; doesn't fully support non-Unix FTP servers. We hope to fix this in a future version of Qt.&lt;/p&gt;

@see &lt;a href=&quot;QHttp.html&quot;&gt;&lt;tt&gt;QHttp&lt;/tt&gt;&lt;/a&gt;
@see FTP Example&lt;/tt&gt; */">
    <signal name="protected final void commandFinished(int arg__1, boolean arg__2)" doc="/**
&lt;p&gt;This signal is emitted when processing the command identified by &lt;tt&gt;arg__1&lt;/tt&gt; has finished. &lt;tt&gt;arg__2&lt;/tt&gt; is true if an error occurred during the processing; otherwise &lt;tt&gt;arg__2&lt;/tt&gt; is false.&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(int arg__1, boolean arg__2)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int arg__1)&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;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#done(boolean)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void commandStarted(int arg__1)" doc="/**
&lt;p&gt;This signal is emitted when processing the command identified by &lt;tt&gt;arg__1&lt;/tt&gt; starts.&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(int arg__1)&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;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#done(boolean)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void dataTransferProgress(long arg__1, long arg__2)" doc="/**
&lt;p&gt;This signal is emitted in response to a &lt;a href=&quot;QFtp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;&lt;tt&gt;get&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QFtp.html#put(com.trolltech.qt.core.QIODevice, java.lang.String, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;&lt;tt&gt;put&lt;/tt&gt;&lt;/a&gt; request to indicate the current progress of the download or upload.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;arg__1&lt;/tt&gt; is the amount of data that has already been transferred and &lt;tt&gt;arg__2&lt;/tt&gt; is the total amount of data to be read or written. It is possible that the &lt;a href=&quot;QFtp.html#QFtp(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QFtp&lt;/tt&gt;&lt;/a&gt; class is not able to determine the total amount of data that should be transferred, in which case &lt;tt&gt;arg__2&lt;/tt&gt; is 0. (If you connect this signal to a &lt;a href=&quot;%2E%2E/gui/QProgressBar.html&quot;&gt;&lt;tt&gt;QProgressBar&lt;/tt&gt;&lt;/a&gt;, the progress bar shows a busy indicator if the total is 0).&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; &lt;tt&gt;arg__1&lt;/tt&gt; and &lt;tt&gt;arg__2&lt;/tt&gt; are not necessarily the size in bytes, since for large files these values might need to be &amp;quot;scaled&amp;quot; to avoid overflow.&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 arg__1, long arg__2)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(long arg__1)&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;QFtp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;&lt;tt&gt;get&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#put(com.trolltech.qt.core.QIODevice, java.lang.String, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;&lt;tt&gt;put&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/gui/QProgressBar.html&quot;&gt;&lt;tt&gt;QProgressBar&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void done(boolean arg__1)" doc="/**
&lt;p&gt;This signal is emitted when the last pending command has finished; (it is emitted after the last command's &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal). &lt;tt&gt;arg__1&lt;/tt&gt; is true if an error occurred during the processing; otherwise &lt;tt&gt;arg__1&lt;/tt&gt; is false.&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(boolean arg__1)&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;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void listInfo(com.trolltech.qt.network.QUrlInfo arg__1)" doc="/**
&lt;p&gt;This signal is emitted for each directory entry the &lt;a href=&quot;QFtp.html#list(java.lang.String)&quot;&gt;&lt;tt&gt;list&lt;/tt&gt;&lt;/a&gt; command finds. The details of the entry are stored in &lt;tt&gt;arg__1&lt;/tt&gt;.&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(com.trolltech.qt.network.QUrlInfo arg__1)&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;QFtp.html#list(java.lang.String)&quot;&gt;&lt;tt&gt;list&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void rawCommandReply(int arg__1, java.lang.String arg__2)" doc="/**
&lt;p&gt;This signal is emitted in response to the &lt;a href=&quot;QFtp.html#rawCommand(java.lang.String)&quot;&gt;&lt;tt&gt;rawCommand&lt;/tt&gt;&lt;/a&gt; function. &lt;tt&gt;arg__1&lt;/tt&gt; is the 3 digit reply code and &lt;tt&gt;arg__2&lt;/tt&gt; is the text that follows the reply code.&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(int arg__1, java.lang.String arg__2)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int arg__1)&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;QFtp.html#rawCommand(java.lang.String)&quot;&gt;&lt;tt&gt;rawCommand&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 in response to a &lt;a href=&quot;QFtp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;&lt;tt&gt;get&lt;/tt&gt;&lt;/a&gt; command when there is new data to read.&lt;/p&gt;
&lt;p&gt;If you specify a device as the second argument in the &lt;a href=&quot;QFtp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;&lt;tt&gt;get&lt;/tt&gt;&lt;/a&gt; command, this signal is &lt;i&gt;not&lt;/i&gt; emitted; instead the data is written directly to the device.&lt;/p&gt;
&lt;p&gt;You can read the data with the &lt;a href=&quot;QFtp.html#readAll()&quot;&gt;&lt;tt&gt;readAll&lt;/tt&gt;&lt;/a&gt; or read() functions.&lt;/p&gt;
&lt;p&gt;This signal is useful if you want to process the data in chunks as soon as it becomes available. If you are only interested in the complete data, just connect to the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal and read the data then instead.&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;QFtp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;&lt;tt&gt;get&lt;/tt&gt;&lt;/a&gt;, &lt;tt&gt;read&lt;/tt&gt;, &lt;a href=&quot;QFtp.html#readAll()&quot;&gt;&lt;tt&gt;readAll&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#bytesAvailable()&quot;&gt;&lt;tt&gt;bytesAvailable&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void stateChanged(int arg__1)" doc="/**
&lt;p&gt;This signal is emitted when the state of the connection changes. The argument &lt;tt&gt;arg__1&lt;/tt&gt; is the new state of the connection; it is one of the &lt;a href=&quot;QFtp.html#State-enum&quot;&gt;State&lt;/tt&gt;&lt;/a&gt; values.&lt;/p&gt;
&lt;p&gt;It is usually emitted in response to a &lt;a href=&quot;QFtp.html#connectToHost(java.lang.String, char)&quot;&gt;&lt;tt&gt;connectToHost&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QFtp.html#close()&quot;&gt;&lt;tt&gt;close&lt;/tt&gt;&lt;/a&gt; command, but it can also be emitted &amp;quot;spontaneously&amp;quot;, e.g&amp;#x2e; when the server closes the connection unexpectedly.&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(int arg__1)&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;QFtp.html#connectToHost(java.lang.String, char)&quot;&gt;&lt;tt&gt;connectToHost&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#close()&quot;&gt;&lt;tt&gt;close&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#state()&quot;&gt;&lt;tt&gt;state&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFtp.html#State-enum&quot;&gt;State&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QFtp(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QFtp.html#QFtp(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QFtp&lt;/tt&gt;&lt;/a&gt; object with the given &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QFtp()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFtp.html#QFtp(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QFtp&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final void abort()" doc="/**
&lt;p&gt;Aborts the current command and deletes all scheduled commands.&lt;/p&gt;
&lt;p&gt;If there is an unfinished command (i.e&amp;#x2e; a command for which the &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; signal has been emitted, but for which the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal has not been emitted), this function sends an &lt;tt&gt;ABORT&lt;/tt&gt; command to the server. When the server replies that the command is aborted, the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal with the &lt;tt&gt;error&lt;/tt&gt; argument set to &lt;tt&gt;true&lt;/tt&gt; is emitted for the command. Due to timing issues, it is possible that the command had already finished before the abort request reached the server, in which case, the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal is emitted with the &lt;tt&gt;error&lt;/tt&gt; argument set to &lt;tt&gt;false&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;For all other commands that are affected by the &lt;a href=&quot;QFtp.html#abort()&quot;&gt;&lt;tt&gt;abort&lt;/tt&gt;&lt;/a&gt;, no signals are emitted.&lt;/p&gt;
&lt;p&gt;If you don't start further FTP commands directly after the &lt;a href=&quot;QFtp.html#abort()&quot;&gt;&lt;tt&gt;abort&lt;/tt&gt;&lt;/a&gt;, there won't be any scheduled commands and the &lt;a href=&quot;QFtp.html#done(boolean)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt; signal is emitted.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Some FTP servers, for example the BSD FTP daemon (version 0.3), wrongly return a positive reply even when an abort has occurred. For these servers the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal has its error flag set to &lt;tt&gt;false&lt;/tt&gt;, even though the command did not complete successfully.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#clearPendingCommands()&quot;&gt;&lt;tt&gt;clearPendingCommands&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final long bytesAvailable()" doc="/**
&lt;p&gt;Returns the number of bytes that can be read from the data socket at the moment.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;&lt;tt&gt;get&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;read&lt;/tt&gt;
@see &lt;a href=&quot;QFtp.html#readAll()&quot;&gt;&lt;tt&gt;readAll&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int cd(java.lang.String dir)" doc="/**
&lt;p&gt;Changes the working directory of the server to &lt;tt&gt;dir&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The function does not block and returns immediately. The command is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When the command is started the &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; signal is emitted. When it is finished the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal is emitted.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void clearPendingCommands()" doc="/**
&lt;p&gt;Deletes all pending commands from the list of scheduled commands. This does not affect the command that is being executed. If you want to stop this this as well, use &lt;a href=&quot;QFtp.html#abort()&quot;&gt;&lt;tt&gt;abort&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#hasPendingCommands()&quot;&gt;&lt;tt&gt;hasPendingCommands&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#abort()&quot;&gt;&lt;tt&gt;abort&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int close()" doc="/**
&lt;p&gt;Closes the connection to the FTP server.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QFtp.html#stateChanged(int)&quot;&gt;&lt;tt&gt;stateChanged&lt;/tt&gt;&lt;/a&gt; signal is emitted when the state of the connecting process changes, e.g&amp;#x2e; to &lt;tt&gt;Closing&lt;/tt&gt;, then &lt;tt&gt;Unconnected&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The function does not block and returns immediately. The command is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When the command is started the &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; signal is emitted. When it is finished the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal is emitted.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#stateChanged(int)&quot;&gt;&lt;tt&gt;stateChanged&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int connectToHost(java.lang.String host, char port)" doc="/**
&lt;p&gt;Connects to the FTP server &lt;tt&gt;host&lt;/tt&gt; using port &lt;tt&gt;port&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QFtp.html#stateChanged(int)&quot;&gt;&lt;tt&gt;stateChanged&lt;/tt&gt;&lt;/a&gt; signal is emitted when the state of the connecting process changes, e.g&amp;#x2e; to &lt;tt&gt;HostLookup&lt;/tt&gt;, then &lt;tt&gt;Connecting&lt;/tt&gt;, then &lt;tt&gt;Connected&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The function does not block and returns immediately. The command is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When the command is started the &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; signal is emitted. When it is finished the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal is emitted.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#stateChanged(int)&quot;&gt;&lt;tt&gt;stateChanged&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int connectToHost(java.lang.String host)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFtp.html#connectToHost(java.lang.String, char)&quot;&gt;&lt;tt&gt;connectToHost&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;host&lt;/tt&gt;, 21). */"/>
    <method name="public final com.trolltech.qt.network.QFtp.Command currentCommand()" doc="/**
&lt;p&gt;Returns the command type of the FTP command being executed or &lt;tt&gt;None&lt;/tt&gt; if there is no command being executed.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#currentId()&quot;&gt;&lt;tt&gt;currentId&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QIODevice currentDevice()" doc="/**
&lt;p&gt;Returns the &lt;a href=&quot;%2E%2E/core/QIODevice.html&quot;&gt;&lt;tt&gt;QIODevice&lt;/tt&gt;&lt;/a&gt; pointer that is used by the FTP command to read data from or store data to. If there is no current FTP command being executed or if the command does not use an IO device, this function returns 0.&lt;/p&gt;
&lt;p&gt;This function can be used to delete the &lt;a href=&quot;%2E%2E/core/QIODevice.html&quot;&gt;&lt;tt&gt;QIODevice&lt;/tt&gt;&lt;/a&gt; in the slot connected to the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;&lt;tt&gt;get&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#put(com.trolltech.qt.core.QIODevice, java.lang.String, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;&lt;tt&gt;put&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int currentId()" doc="/**
&lt;p&gt;Returns the identifier of the FTP command that is being executed or 0 if there is no command being executed.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#currentCommand()&quot;&gt;&lt;tt&gt;currentCommand&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.network.QFtp.Error error()" doc="/**
&lt;p&gt;Returns the last error that occurred. This is useful to find out what went wrong when receiving a &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; or a &lt;a href=&quot;QFtp.html#done(boolean)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt; signal with the &lt;tt&gt;error&lt;/tt&gt; argument set to &lt;tt&gt;true&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If you start a new command, the error status is reset to &lt;tt&gt;NoError&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String errorString()" doc="/**
&lt;p&gt;Returns a human-readable description of the last error that occurred. This is useful for presenting a error message to the user when receiving a &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; or a &lt;a href=&quot;QFtp.html#done(boolean)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt; signal with the &lt;tt&gt;error&lt;/tt&gt; argument set to &lt;tt&gt;true&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The error string is often (but not always) the reply from the server, so it is not always possible to translate the string. If the message comes from Qt, the string has already passed through tr().&lt;/p&gt;
 */"/>
    <method name="public final int get(java.lang.String file, com.trolltech.qt.core.QIODevice dev, com.trolltech.qt.network.QFtp.TransferType type)" doc="/**
&lt;p&gt;Downloads the file &lt;tt&gt;file&lt;/tt&gt; from the server.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;dev&lt;/tt&gt; is 0, then the &lt;a href=&quot;QFtp.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt; signal is emitted when there is data available to read. You can then read the data with the read() or &lt;a href=&quot;QFtp.html#readAll()&quot;&gt;&lt;tt&gt;readAll&lt;/tt&gt;&lt;/a&gt; functions.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;dev&lt;/tt&gt; is not 0, the data is written directly to the device &lt;tt&gt;dev&lt;/tt&gt;. Make sure that the &lt;tt&gt;dev&lt;/tt&gt; pointer is valid for the duration of the operation (it is safe to delete it when the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal is emitted). In this case the &lt;a href=&quot;QFtp.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt; signal is &lt;i&gt;not&lt;/i&gt; emitted and you cannot read data with the read() or &lt;a href=&quot;QFtp.html#readAll()&quot;&gt;&lt;tt&gt;readAll&lt;/tt&gt;&lt;/a&gt; functions.&lt;/p&gt;
&lt;p&gt;If you don't read the data immediately it becomes available, i.e&amp;#x2e; when the &lt;a href=&quot;QFtp.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt; signal is emitted, it is still available until the next command is started.&lt;/p&gt;
&lt;p&gt;For example, if you want to present the data to the user as soon as there is something available, connect to the &lt;a href=&quot;QFtp.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt; signal and read the data immediately. On the other hand, if you only want to work with the complete data, you can connect to the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal and read the data when the &lt;a href=&quot;QFtp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;&lt;tt&gt;get&lt;/tt&gt;&lt;/a&gt; command is finished.&lt;/p&gt;
&lt;p&gt;The data is transferred as Binary or Ascii depending on the value of &lt;tt&gt;type&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The function does not block and returns immediately. The command is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When the command is started the &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; signal is emitted. When it is finished the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal is emitted.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt;&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#dataTransferProgress(long, long)&quot;&gt;&lt;tt&gt;dataTransferProgress&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int get(java.lang.String file, com.trolltech.qt.core.QIODevice dev)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFtp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;get&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;file&lt;/tt&gt;, &lt;tt&gt;dev&lt;/tt&gt;, Binary). */"/>
    <method name="public final int get(java.lang.String file)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFtp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;get&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;file&lt;/tt&gt;, 0, Binary). */"/>
    <method name="public final boolean hasPendingCommands()" doc="/**
&lt;p&gt;Returns true if there are any commands scheduled that have not yet been executed; otherwise returns false.&lt;/p&gt;
&lt;p&gt;The command that is being executed is &lt;i&gt;not&lt;/i&gt; considered as a scheduled command.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#clearPendingCommands()&quot;&gt;&lt;tt&gt;clearPendingCommands&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#currentId()&quot;&gt;&lt;tt&gt;currentId&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#currentCommand()&quot;&gt;&lt;tt&gt;currentCommand&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int list(java.lang.String dir)" doc="/**
&lt;p&gt;Lists the contents of directory &lt;tt&gt;dir&lt;/tt&gt; on the FTP server. If &lt;tt&gt;dir&lt;/tt&gt; is empty, it lists the contents of the current directory.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QFtp.html#listInfo(com.trolltech.qt.network.QUrlInfo)&quot;&gt;&lt;tt&gt;listInfo&lt;/tt&gt;&lt;/a&gt; signal is emitted for each directory entry found.&lt;/p&gt;
&lt;p&gt;The function does not block and returns immediately. The command is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When the command is started the &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; signal is emitted. When it is finished the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal is emitted.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#listInfo(com.trolltech.qt.network.QUrlInfo)&quot;&gt;&lt;tt&gt;listInfo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int list()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFtp.html#list(java.lang.String)&quot;&gt;list&lt;/tt&gt;&lt;/a&gt;(QString()). */"/>
    <method name="public final int login(java.lang.String user, java.lang.String password)" doc="/**
&lt;p&gt;Logs in to the FTP server with the username &lt;tt&gt;user&lt;/tt&gt; and the password &lt;tt&gt;password&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QFtp.html#stateChanged(int)&quot;&gt;&lt;tt&gt;stateChanged&lt;/tt&gt;&lt;/a&gt; signal is emitted when the state of the connecting process changes, e.g&amp;#x2e; to &lt;tt&gt;LoggedIn&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The function does not block and returns immediately. The command is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When the command is started the &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; signal is emitted. When it is finished the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal is emitted.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int login(java.lang.String user)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFtp.html#login(java.lang.String, java.lang.String)&quot;&gt;login&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;user&lt;/tt&gt;, QString()). */"/>
    <method name="public final int login()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFtp.html#login(java.lang.String, java.lang.String)&quot;&gt;login&lt;/tt&gt;&lt;/a&gt;(QString(), QString()). */"/>
    <method name="public final int mkdir(java.lang.String dir)" doc="/**
&lt;p&gt;Creates a directory called &lt;tt&gt;dir&lt;/tt&gt; on the server.&lt;/p&gt;
&lt;p&gt;The function does not block and returns immediately. The command is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When the command is started the &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; signal is emitted. When it is finished the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal is emitted.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int put(com.trolltech.qt.core.QByteArray data, java.lang.String file, com.trolltech.qt.network.QFtp.TransferType type)" doc="/**
&lt;p&gt;Writes a copy of the given &lt;tt&gt;data&lt;/tt&gt; to the file called &lt;tt&gt;file&lt;/tt&gt; on the server. The progress of the upload is reported by the &lt;a href=&quot;QFtp.html#dataTransferProgress(long, long)&quot;&gt;&lt;tt&gt;dataTransferProgress&lt;/tt&gt;&lt;/a&gt; signal.&lt;/p&gt;
&lt;p&gt;The data is transferred as Binary or Ascii depending on the value of &lt;tt&gt;type&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The function does not block and returns immediately. The command is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When the command is started the &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; signal is emitted. When it is finished the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal is emitted.&lt;/p&gt;
&lt;p&gt;Since this function takes a copy of the &lt;tt&gt;data&lt;/tt&gt;, you can discard your own copy when this function returns.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#dataTransferProgress(long, long)&quot;&gt;&lt;tt&gt;dataTransferProgress&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int put(com.trolltech.qt.core.QByteArray data, java.lang.String file)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFtp.html#put(com.trolltech.qt.core.QIODevice, java.lang.String, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;put&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;data&lt;/tt&gt;, &lt;tt&gt;file&lt;/tt&gt;, Binary). */"/>
    <method name="public final int put(com.trolltech.qt.core.QIODevice dev, java.lang.String file, com.trolltech.qt.network.QFtp.TransferType type)" doc="/**
&lt;p&gt;Reads the data from the IO device &lt;tt&gt;dev&lt;/tt&gt;, and writes it to the file called &lt;tt&gt;file&lt;/tt&gt; on the server. The data is read in chunks from the IO device, so this overload allows you to transmit large amounts of data without the need to read all the data into memory at once.&lt;/p&gt;
&lt;p&gt;The data is transferred as Binary or Ascii depending on the value of &lt;tt&gt;type&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Make sure that the &lt;tt&gt;dev&lt;/tt&gt; pointer is valid for the duration of the operation (it is safe to delete it when the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; is emitted).&lt;/p&gt;
 */"/>
    <method name="public final int put(com.trolltech.qt.core.QIODevice dev, java.lang.String file)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFtp.html#put(com.trolltech.qt.core.QIODevice, java.lang.String, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;put&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;dev&lt;/tt&gt;, &lt;tt&gt;file&lt;/tt&gt;, Binary). */"/>
    <method name="public final int rawCommand(java.lang.String command)" doc="/**
&lt;p&gt;Sends the raw FTP command &lt;tt&gt;command&lt;/tt&gt; to the FTP server. This is useful for low-level FTP access. If the operation you wish to perform has an equivalent &lt;a href=&quot;QFtp.html#QFtp(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QFtp&lt;/tt&gt;&lt;/a&gt; function, we recommend using the function instead of raw FTP commands since the functions are easier and safer.&lt;/p&gt;
&lt;p&gt;The function does not block and returns immediately. The command is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When the command is started the &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; signal is emitted. When it is finished the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal is emitted.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#rawCommandReply(int, java.lang.String)&quot;&gt;&lt;tt&gt;rawCommandReply&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray readAll()" doc="/**
&lt;p&gt;Reads all the bytes available from the data socket and returns them.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;&lt;tt&gt;get&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#bytesAvailable()&quot;&gt;&lt;tt&gt;bytesAvailable&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;read&lt;/tt&gt; */"/>
    <method name="public final int remove(java.lang.String file)" doc="/**
&lt;p&gt;Deletes the file called &lt;tt&gt;file&lt;/tt&gt; from the server.&lt;/p&gt;
&lt;p&gt;The function does not block and returns immediately. The command is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When the command is started the &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; signal is emitted. When it is finished the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal is emitted.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int rename(java.lang.String oldname, java.lang.String newname)" doc="/**
&lt;p&gt;Renames the file called &lt;tt&gt;oldname&lt;/tt&gt; to &lt;tt&gt;newname&lt;/tt&gt; on the server.&lt;/p&gt;
&lt;p&gt;The function does not block and returns immediately. The command is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When the command is started the &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; signal is emitted. When it is finished the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal is emitted.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int rmdir(java.lang.String dir)" doc="/**
&lt;p&gt;Removes the directory called &lt;tt&gt;dir&lt;/tt&gt; from the server.&lt;/p&gt;
&lt;p&gt;The function does not block and returns immediately. The command is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When the command is started the &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt; signal is emitted. When it is finished the &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; signal is emitted.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#commandStarted(int)&quot;&gt;&lt;tt&gt;commandStarted&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#commandFinished(int, boolean)&quot;&gt;&lt;tt&gt;commandFinished&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int setProxy(java.lang.String host, char port)" doc="/**
&lt;p&gt;Enables use of the FTP proxy on host &lt;tt&gt;host&lt;/tt&gt; and port &lt;tt&gt;port&lt;/tt&gt;. Calling this function with &lt;tt&gt;host&lt;/tt&gt; empty disables proxying.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QFtp.html#QFtp(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QFtp&lt;/tt&gt;&lt;/a&gt; does not support FTP-over-HTTP proxy servers. Use &lt;a href=&quot;QHttp.html&quot;&gt;&lt;tt&gt;QHttp&lt;/tt&gt;&lt;/a&gt; for this.&lt;/p&gt;
 */"/>
    <method name="public final int setTransferMode(com.trolltech.qt.network.QFtp.TransferMode mode)" doc="/**
&lt;p&gt;Sets the current FTP transfer mode to &lt;tt&gt;mode&lt;/tt&gt;. The default is QFtp::Passive.&lt;/p&gt;

@see &lt;tt&gt;QFtp::TransferMode&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.network.QFtp.State state()" doc="/**
&lt;p&gt;Returns the current state of the object. When the state changes, the &lt;a href=&quot;QFtp.html#stateChanged(int)&quot;&gt;&lt;tt&gt;stateChanged&lt;/tt&gt;&lt;/a&gt; signal is emitted.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#State-enum&quot;&gt;State&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#stateChanged(int)&quot;&gt;&lt;tt&gt;stateChanged&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="TransferType" doc="/**
&lt;p&gt;This enum identifies the data transfer type used with get and put commands.&lt;/p&gt;
 */">
        <enum-value name="Binary" doc="/**
&lt;p&gt;The data will be transferred in Binary mode.&lt;/p&gt;
 */"/>
        <enum-value name="Ascii" doc="/**
&lt;p&gt;The data will be transferred in Ascii mode and new line characters will be converted to the local format.&lt;/p&gt;
 */"/>
</enum>
    <enum name="Error" doc="/**
&lt;p&gt;This enum identifies the error that occurred.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="NoError" doc="/**
&lt;p&gt;No error occurred.&lt;/p&gt;
 */"/>
        <enum-value name="UnknownError" doc="/**
&lt;p&gt;An error other than those specified above occurred.&lt;/p&gt;
 */"/>
        <enum-value name="HostNotFound" doc="/**
&lt;p&gt;The host name lookup failed.&lt;/p&gt;
 */"/>
        <enum-value name="ConnectionRefused" doc="/**
&lt;p&gt;The server refused the connection.&lt;/p&gt;
 */"/>
        <enum-value name="NotConnected" doc="/**
&lt;p&gt;Tried to send a command, but there is no connection to a server.&lt;/p&gt;
 */"/>
</enum>
    <enum name="Command" doc="/**
&lt;p&gt;This enum is used as the return value for the &lt;a href=&quot;QFtp.html#currentCommand()&quot;&gt;&lt;tt&gt;currentCommand&lt;/tt&gt;&lt;/a&gt; function. This allows you to perform specific actions for particular commands, e.g&amp;#x2e; in a FTP client, you might want to clear the directory view when a &lt;a href=&quot;QFtp.html#list(java.lang.String)&quot;&gt;&lt;tt&gt;list&lt;/tt&gt;&lt;/a&gt; command is started; in this case you can simply check in the slot connected to the start() signal if the &lt;a href=&quot;QFtp.html#currentCommand()&quot;&gt;&lt;tt&gt;currentCommand&lt;/tt&gt;&lt;/a&gt; is &lt;tt&gt;List&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#currentCommand()&quot;&gt;&lt;tt&gt;currentCommand&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="None" doc="/**
&lt;p&gt;No command is being executed.&lt;/p&gt;
 */"/>
        <enum-value name="SetTransferMode" doc="/**
&lt;p&gt;set the &lt;a href=&quot;QFtp.html#TransferMode-enum&quot;&gt;transfer&lt;/tt&gt;&lt;/a&gt; mode.&lt;/p&gt;
 */"/>
        <enum-value name="SetProxy" doc="/**
&lt;p&gt;switch proxying on or off.&lt;/p&gt;
 */"/>
        <enum-value name="ConnectToHost" doc="/**
&lt;p&gt;&lt;a href=&quot;QFtp.html#connectToHost(java.lang.String, char)&quot;&gt;&lt;tt&gt;connectToHost&lt;/tt&gt;&lt;/a&gt; is being executed.&lt;/p&gt;
 */"/>
        <enum-value name="Login" doc="/**
&lt;p&gt;&lt;a href=&quot;QFtp.html#login(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;login&lt;/tt&gt;&lt;/a&gt; is being executed.&lt;/p&gt;
 */"/>
        <enum-value name="Close" doc="/**
&lt;p&gt;&lt;a href=&quot;QFtp.html#close()&quot;&gt;&lt;tt&gt;close&lt;/tt&gt;&lt;/a&gt; is being executed.&lt;/p&gt;
 */"/>
        <enum-value name="List" doc="/**
&lt;p&gt;&lt;a href=&quot;QFtp.html#list(java.lang.String)&quot;&gt;&lt;tt&gt;list&lt;/tt&gt;&lt;/a&gt; is being executed.&lt;/p&gt;
 */"/>
        <enum-value name="Cd" doc="/**
&lt;p&gt;&lt;a href=&quot;QFtp.html#cd(java.lang.String)&quot;&gt;&lt;tt&gt;cd&lt;/tt&gt;&lt;/a&gt; is being executed.&lt;/p&gt;
 */"/>
        <enum-value name="Get" doc="/**
&lt;p&gt;&lt;a href=&quot;QFtp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;&lt;tt&gt;get&lt;/tt&gt;&lt;/a&gt; is being executed.&lt;/p&gt;
 */"/>
        <enum-value name="Put" doc="/**
&lt;p&gt;&lt;a href=&quot;QFtp.html#put(com.trolltech.qt.core.QIODevice, java.lang.String, com.trolltech.qt.network.QFtp.TransferType)&quot;&gt;&lt;tt&gt;put&lt;/tt&gt;&lt;/a&gt; is being executed.&lt;/p&gt;
 */"/>
        <enum-value name="Remove" doc="/**
&lt;p&gt;&lt;a href=&quot;QFtp.html#remove(java.lang.String)&quot;&gt;&lt;tt&gt;remove&lt;/tt&gt;&lt;/a&gt; is being executed.&lt;/p&gt;
 */"/>
        <enum-value name="Mkdir" doc="/**
&lt;p&gt;&lt;a href=&quot;QFtp.html#mkdir(java.lang.String)&quot;&gt;&lt;tt&gt;mkdir&lt;/tt&gt;&lt;/a&gt; is being executed.&lt;/p&gt;
 */"/>
        <enum-value name="Rmdir" doc="/**
&lt;p&gt;&lt;a href=&quot;QFtp.html#rmdir(java.lang.String)&quot;&gt;&lt;tt&gt;rmdir&lt;/tt&gt;&lt;/a&gt; is being executed.&lt;/p&gt;
 */"/>
        <enum-value name="Rename" doc="/**
&lt;p&gt;&lt;a href=&quot;QFtp.html#rename(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;rename&lt;/tt&gt;&lt;/a&gt; is being executed.&lt;/p&gt;
 */"/>
        <enum-value name="RawCommand" doc="/**
&lt;p&gt;&lt;a href=&quot;QFtp.html#rawCommand(java.lang.String)&quot;&gt;&lt;tt&gt;rawCommand&lt;/tt&gt;&lt;/a&gt; is being executed.&lt;/p&gt;
 */"/>
</enum>
    <enum name="TransferMode" doc="/**
&lt;p&gt;FTP works with two socket connections; one for commands and another for transmitting data. While the command connection is always initiated by the client, the second connection can be initiated by either the client or the server.&lt;/p&gt;
&lt;p&gt;This enum defines whether the client (Passive mode) or the server (Active mode) should set up the data connection.&lt;/p&gt;
 */">
        <enum-value name="Active" doc="/**
&lt;p&gt;The server connects to the client to transmit its data.&lt;/p&gt;
 */"/>
        <enum-value name="Passive" doc="/**
&lt;p&gt;The client connects to the server to transmit its data.&lt;/p&gt;
 */"/>
</enum>
    <enum name="State" doc="/**
&lt;p&gt;This enum defines the connection state:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Unconnected&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;0&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;There is no connection to the host.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;HostLookup&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A host name lookup is in progress.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Connecting&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;2&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;An attempt to connect to the host is in progress.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Connected&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;3&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Connection to the host has been achieved.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;LoggedIn&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;4&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Connection and user login have been achieved.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Closing&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;5&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The connection is closing down, but it is not yet closed. (The state will be &lt;tt&gt;Unconnected&lt;/tt&gt; when the connection is closed.)&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QFtp.html#stateChanged(int)&quot;&gt;&lt;tt&gt;stateChanged&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFtp.html#state()&quot;&gt;&lt;tt&gt;state&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="Unconnected" doc="/**
&lt;p&gt;There is no connection to the host.&lt;/p&gt;
 */"/>
        <enum-value name="HostLookup" doc="/**
&lt;p&gt;A host name lookup is in progress.&lt;/p&gt;
 */"/>
        <enum-value name="Connecting" doc="/**
&lt;p&gt;An attempt to connect to the host is in progress.&lt;/p&gt;
 */"/>
        <enum-value name="Connected" doc="/**
&lt;p&gt;Connection to the host has been achieved.&lt;/p&gt;
 */"/>
        <enum-value name="LoggedIn" doc="/**
&lt;p&gt;Connection and user login have been achieved.&lt;/p&gt;
 */"/>
        <enum-value name="Closing" doc="/**
&lt;p&gt;The connection is closing down, but it is not yet closed. (The state will be &lt;tt&gt;Unconnected&lt;/tt&gt; when the connection is closed.)&lt;/p&gt;
 */"/>
</enum>
</class>