NAME

Qt::Network::QFtp

PUBLIC METHODS

QFtp(QObject * parent)
QFtp(QObject * parent = 0)
~QFtp()
void abort()
qint64 bytesAvailable()
int cd(const QString & dir)
void clearPendingCommands()
int close()
int connectToHost(const QString & host, quint16 port)
int connectToHost(const QString & host, quint16 port = 21)
QFtp::Command currentCommand()
QIODevice * currentDevice()
int currentId()
QFtp::Error error()
QString errorString()
int get(const QString & file, QIODevice * dev, QFtp::TransferType type)
int get(const QString & file, QIODevice * dev, QFtp::TransferType type = QFtp::Binary)
int get(const QString & file, QIODevice * dev = 0, QFtp::TransferType type = QFtp::Binary)
bool hasPendingCommands()
int list(const QString & dir)
int list(const QString & dir = QString())
int login(const QString & user, const QString & password)
int login(const QString & user, const QString & password = QString())
int login(const QString & user = QString(), const QString & password = QString())
int mkdir(const QString & dir)
int put(const QByteArray & data, const QString & file, QFtp::TransferType type)
int put(const QByteArray & data, const QString & file, QFtp::TransferType type = QFtp::Binary)
int put(QIODevice * dev, const QString & file, QFtp::TransferType type)
int put(QIODevice * dev, const QString & file, QFtp::TransferType type = QFtp::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(QFtp::TransferMode mode)
QFtp::State state()

ENUM VALUES

Unconnected
HostLookup
Connecting
Connected
LoggedIn
Closing
NoError
UnknownError
HostNotFound
ConnectionRefused
NotConnected
None
SetTransferMode
SetProxy
ConnectToHost
Login
Close
List
Cd
Get
Put
Remove
Mkdir
Rmdir
Rename
RawCommand
Active
Passive
Binary
Ascii

EXPORT

None by default.

AUTHOR

Dongxu Ma <dongxu@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2011 - 2012 by Dongxu Ma

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/artistic.html