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 Functions Index

QFtp (QObject *parent=0)
virtual ~QFtp ()
qint64bytesAvailable () const
intcd (const QString &dir)
voidclearPendingCommands ()
intclose ()
intconnectToHost (const QString &host, quint16 port=21)
CommandcurrentCommand () const
QIODevice *currentDevice () const
intcurrentId () const
Errorerror () const
QStringerrorString () const
intget (const QString &file, QIODevice *dev=0, TransferType type=Binary)
boolhasPendingCommands () const
intlist (const QString &dir=QString())
intlogin (const QString &user=QString(), const QString &password=QString())
intmkdir (const QString &dir)
intput (const QByteArray &data, const QString &file, TransferType type=Binary)
intput (QIODevice *dev, const QString &file, TransferType type=Binary)
intrawCommand (const QString &command)
qint64read (char *data, qint64 maxlen)
QByteArrayreadAll ()
intremove (const QString &file)
intrename (const QString &oldname, const QString &newname)
intrmdir (const QString &dir)
intsetProxy (const QString &host, quint16 port)
intsetTransferMode (TransferMode mode)
Statestate () const

Public Slots Index

voidabort ()

Signals Index

voidcommandFinished (int, bool)
voidcommandStarted (int)
voiddataTransferProgress (qint64, qint64)
voiddone (bool)
voidlistInfo (const QUrlInfo &)
voidrawCommandReply (int, const QString &)
voidreadyRead ()
voidstateChanged (int)

Public Types

Command

None
SetTransferMode
SetProxy
ConnectToHost
Login
Close
List
Cd
Get
Put
Remove
Mkdir
Rmdir
Rename
RawCommand

Error

NoError
UnknownError
HostNotFound
ConnectionRefused
NotConnected

State

Unconnected
HostLookup
Connecting
Connected
LoggedIn
Closing

TransferMode

Active
Passive

TransferType

Binary
Ascii

Public Functions

QFtp (

virtual~QFtp ()

Destructor.

qint64 bytesAvailable ()

int cd (

void clearPendingCommands ()

int close ()

int connectToHost (

Command currentCommand ()

QIODevice * currentDevice ()

int currentId ()

Error error ()

QString errorString ()

int get (

bool hasPendingCommands ()

int list (

int login (

int mkdir (

int put (

int put (

int rawCommand (

qint64 read (
  • char *data,
  • qint64maxlen )

QByteArray readAll ()

int remove (

int rename (

int rmdir (

int setProxy (

int setTransferMode (
  • TransferModemode)

State state ()

Public Slots

void abort ()

Signals

void commandFinished (
  • int,
  • bool )

void commandStarted (
  • int)

void dataTransferProgress (
  • qint64,
  • qint64 )

void done (
  • bool)

void listInfo (

void rawCommandReply (

void readyRead ()

void stateChanged (
  • int)

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus