QFtp
#include <QtNetwork/QFtp>
More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QFtp
Overview
Public Types Index
enum CommandNone, SetTransferMode, SetProxy, ConnectToHost, Login, Close, List, Cd, Get, Put, Remove, Mkdir, Rmdir, Rename, RawCommand | |
enum ErrorNoError, UnknownError, HostNotFound, ConnectionRefused, NotConnected | |
enum StateUnconnected, HostLookup, Connecting, Connected, LoggedIn, Closing | |
enum TransferMode | |
enum TransferType |
Public Functions Index
QFtp (QObject *parent=0) | |
virtual | ~QFtp () |
qint64 | bytesAvailable () const |
int | cd (const QString &dir) |
void | clearPendingCommands () |
int | close () |
int | connectToHost (const QString &host, quint16 port=21) |
Command | currentCommand () const |
QIODevice * | currentDevice () const |
int | currentId () const |
Error | error () const |
QString | errorString () const |
int | get (const QString &file, QIODevice *dev=0, TransferType type=Binary) |
bool | hasPendingCommands () const |
int | list (const QString &dir=QString()) |
int | login (const QString &user=QString(), const QString &password=QString()) |
int | mkdir (const QString &dir) |
int | put (const QByteArray &data, const QString &file, TransferType type=Binary) |
int | put (QIODevice *dev, const QString &file, TransferType type=Binary) |
int | rawCommand (const QString &command) |
qint64 | read (char *data, qint64 maxlen) |
QByteArray | readAll () |
int | remove (const QString &file) |
int | rename (const QString &oldname, const QString &newname) |
int | rmdir (const QString &dir) |
int | setProxy (const QString &host, quint16 port) |
int | setTransferMode (TransferMode mode) |
State | state () const |
Public Slots Index
void | abort () |
Signals Index
void | commandFinished (int, bool) |
void | commandStarted (int) |
void | dataTransferProgress (qint64, qint64) |
void | done (bool) |
void | listInfo (const QUrlInfo &) |
void | rawCommandReply (int, const QString &) |
void | readyRead () |
void | stateChanged (int) |
Public Types
- None
- SetTransferMode
- SetProxy
- ConnectToHost
- Login
- Close
- List
- Cd
- Get
- Put
- Remove
- Mkdir
- Rmdir
- Rename
- RawCommand
- NoError
- UnknownError
- HostNotFound
- ConnectionRefused
- NotConnected
- Unconnected
- HostLookup
- Connecting
- Connected
- LoggedIn
- Closing
- Active
- Passive
- Binary
- Ascii
Public Functions
virtual
Destructor.
qint64
int
void
int
int
Command
int
Error
int
bool
int
int
int
int
int
int
qint64
int
int
int
int
int
State
Public Slots
void
Signals
void
void
void
void
void
void
void
void
© 2013 Digia Plc and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Documentation sources may be obtained from www.qt-project.org.
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. Privacy Policy