Qt 4.8
|
Public Functions | |
void | dispose () |
QNetworkAccessCachedFtpConnection () | |
Public Functions inherited from QFtp | |
qint64 | bytesAvailable () const |
Returns the number of bytes that can be read from the data socket at the moment. More... | |
int | cd (const QString &dir) |
Changes the working directory of the server to dir. More... | |
void | clearPendingCommands () |
Deletes all pending commands from the list of scheduled commands. More... | |
int | close () |
Closes the connection to the FTP server. More... | |
int | connectToHost (const QString &host, quint16 port=21) |
Connects to the FTP server host using port port. More... | |
Command | currentCommand () const |
Returns the command type of the FTP command being executed or None if there is no command being executed. More... | |
QIODevice * | currentDevice () const |
Returns the QIODevice pointer that is used by the FTP command to read data from or store data to. More... | |
int | currentId () const |
Returns the identifier of the FTP command that is being executed or 0 if there is no command being executed. More... | |
Error | error () const |
Returns the last error that occurred. More... | |
QString | errorString () const |
Returns a human-readable description of the last error that occurred. More... | |
int | get (const QString &file, QIODevice *dev=0, TransferType type=Binary) |
Downloads the file file from the server. More... | |
bool | hasPendingCommands () const |
Returns true if there are any commands scheduled that have not yet been executed; otherwise returns false. More... | |
int | list (const QString &dir=QString()) |
Lists the contents of directory dir on the FTP server. More... | |
int | login (const QString &user=QString(), const QString &password=QString()) |
Logs in to the FTP server with the username user and the password password. More... | |
int | mkdir (const QString &dir) |
Creates a directory called dir on the server. More... | |
int | put (const QByteArray &data, const QString &file, TransferType type=Binary) |
Writes a copy of the given data to the file called file on the server. More... | |
int | put (QIODevice *dev, const QString &file, TransferType type=Binary) |
Reads the data from the IO device dev, and writes it to the file called file on the server. More... | |
QFtp (QObject *parent=0) | |
Constructs a QFtp object with the given parent. More... | |
int | rawCommand (const QString &command) |
Sends the raw FTP command command to the FTP server. More... | |
qint64 | read (char *data, qint64 maxlen) |
Reads maxlen bytes from the data socket into data and returns the number of bytes read. More... | |
QByteArray | readAll () |
Reads all the bytes available from the data socket and returns them. More... | |
int | remove (const QString &file) |
Deletes the file called file from the server. More... | |
int | rename (const QString &oldname, const QString &newname) |
Renames the file called oldname to newname on the server. More... | |
int | rmdir (const QString &dir) |
Removes the directory called dir from the server. More... | |
int | setProxy (const QString &host, quint16 port) |
Enables use of the FTP proxy on host host and port port. More... | |
int | setTransferMode (TransferMode mode) |
Sets the current FTP transfer mode to mode. More... | |
State | state () const |
Returns the current state of the object. More... | |
virtual | ~QFtp () |
Destructor. More... | |
Public Functions inherited from QObject | |
bool | blockSignals (bool b) |
If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). More... | |
const QObjectList & | children () const |
Returns a list of child objects. More... | |
bool | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
bool | disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0) |
bool | disconnect (const QObject *receiver, const char *member=0) |
void | dumpObjectInfo () |
Dumps information about signal connections, etc. More... | |
void | dumpObjectTree () |
Dumps a tree of children to the debug output. More... | |
QList< QByteArray > | dynamicPropertyNames () const |
Returns the names of all properties that were dynamically added to the object using setProperty(). More... | |
virtual bool | event (QEvent *) |
This virtual function receives events to an object and should return true if the event e was recognized and processed. More... | |
virtual bool | eventFilter (QObject *, QEvent *) |
Filters events if this object has been installed as an event filter for the watched object. More... | |
template<typename T > | |
T | findChild (const QString &aName=QString()) const |
Returns the child of this object that can be cast into type T and that is called name, or 0 if there is no such object. More... | |
template<typename T > | |
QList< T > | findChildren (const QString &aName=QString()) const |
Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. More... | |
template<typename T > | |
QList< T > | findChildren (const QRegExp &re) const |
bool | inherits (const char *classname) const |
Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false. More... | |
void | installEventFilter (QObject *) |
Installs an event filter filterObj on this object. More... | |
bool | isWidgetType () const |
Returns true if the object is a widget; otherwise returns false. More... | |
void | killTimer (int id) |
Kills the timer with timer identifier, id. More... | |
virtual const QMetaObject * | metaObject () const |
Returns a pointer to the meta-object of this object. More... | |
void | moveToThread (QThread *thread) |
Changes the thread affinity for this object and its children. More... | |
QString | objectName () const |
QObject * | parent () const |
Returns a pointer to the parent object. More... | |
QVariant | property (const char *name) const |
Returns the value of the object's name property. More... | |
Q_INVOKABLE | QObject (QObject *parent=0) |
Constructs an object with parent object parent. More... | |
void | removeEventFilter (QObject *) |
Removes an event filter object obj from this object. More... | |
void | setObjectName (const QString &name) |
void | setParent (QObject *) |
Makes the object a child of parent. More... | |
bool | setProperty (const char *name, const QVariant &value) |
Sets the value of the object's name property to value. More... | |
void | setUserData (uint id, QObjectUserData *data) |
bool | signalsBlocked () const |
Returns true if signals are blocked; otherwise returns false. More... | |
int | startTimer (int interval) |
Starts a timer and returns a timer identifier, or returns zero if it could not start a timer. More... | |
QThread * | thread () const |
Returns the thread in which the object lives. More... | |
QObjectUserData * | userData (uint id) const |
virtual | ~QObject () |
Destroys the object, deleting all its child objects. More... | |
Public Functions inherited from QNetworkAccessCache::CacheableObject | |
CacheableObject () | |
QByteArray | cacheKey () const |
virtual | ~CacheableObject () |
Additional Inherited Members | |
Public Types inherited from QFtp | |
enum | Command { None, SetTransferMode, SetProxy, ConnectToHost, Login, Close, List, Cd, Get, Put, Remove, Mkdir, Rmdir, Rename, RawCommand } |
This enum is used as the return value for the currentCommand() function. More... | |
enum | Error { NoError, UnknownError, HostNotFound, ConnectionRefused, NotConnected } |
This enum identifies the error that occurred. More... | |
enum | State { Unconnected, HostLookup, Connecting, Connected, LoggedIn, Closing } |
This enum defines the connection state: More... | |
enum | TransferMode { Active, Passive } |
FTP works with two socket connections; one for commands and another for transmitting data. More... | |
enum | TransferType { Binary, Ascii } |
This enum identifies the data transfer type used with get and put commands. More... | |
Public Slots inherited from QFtp | |
void | abort () |
Aborts the current command and deletes all scheduled commands. More... | |
Public Slots inherited from QObject | |
void | deleteLater () |
Schedules this object for deletion. More... | |
Signals inherited from QFtp | |
void | commandFinished (int, bool) |
This signal is emitted when processing the command identified by id has finished. More... | |
void | commandStarted (int) |
This signal is emitted when processing the command identified by id starts. More... | |
void | dataTransferProgress (qint64, qint64) |
This signal is emitted in response to a get() or put() request to indicate the current progress of the download or upload. More... | |
void | done (bool) |
This signal is emitted when the last pending command has finished; (it is emitted after the last command's commandFinished() signal). More... | |
void | listInfo (const QUrlInfo &) |
This signal is emitted for each directory entry the list() command finds. More... | |
void | rawCommandReply (int, const QString &) |
This signal is emitted in response to the rawCommand() function. More... | |
void | readyRead () |
This signal is emitted in response to a get() command when there is new data to read. More... | |
void | stateChanged (int) |
This signal is emitted when the state of the connection changes. More... | |
Signals inherited from QObject | |
void | destroyed (QObject *=0) |
This signal is emitted immediately before the object obj is destroyed, and can not be blocked. More... | |
Static Public Functions inherited from QObject | |
static bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
Creates a connection of the given type from the signal in the sender object to the method in the receiver object. More... | |
static bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
Disconnects signal in object sender from method in object receiver. More... | |
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
static uint | registerUserData () |
static QString | tr (const char *sourceText, const char *comment=0, int n=-1) |
static QString | trUtf8 (const char *sourceText, const char *comment=0, int n=-1) |
Static Public Variables inherited from QObject | |
static const QMetaObject | staticMetaObject |
This variable stores the meta-object for the class. More... | |
Protected Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *) |
This event handler can be reimplemented in a subclass to receive child events. More... | |
virtual void | connectNotify (const char *signal) |
This virtual function is called when something has been connected to signal in this object. More... | |
virtual void | customEvent (QEvent *) |
This event handler can be reimplemented in a subclass to receive custom events. More... | |
virtual void | disconnectNotify (const char *signal) |
This virtual function is called when something has been disconnected from signal in this object. More... | |
QObject (QObjectPrivate &dd, QObject *parent=0) | |
int | receivers (const char *signal) const |
Returns the number of receivers connected to the signal. More... | |
QObject * | sender () const |
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns 0. More... | |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *) |
This event handler can be reimplemented in a subclass to receive timer events for the object. More... | |
Protected Functions inherited from QNetworkAccessCache::CacheableObject | |
void | setExpires (bool enable) |
void | setShareable (bool enable) |
Protected Variables inherited from QObject | |
QScopedPointer< QObjectData > | d_ptr |
Static Protected Variables inherited from QObject | |
static const QMetaObject | staticQtMetaObject |
Related Functions inherited from QObject | |
T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QRegExp ®Exp)() |
T * | qobject_cast (QObject *object) |
QObjectList | |
void * | qt_find_obj_child (QObject *parent, const char *type, const QString &name) |
Returns a pointer to the object named name that inherits type and with a given parent. More... | |
Definition at line 85 of file qnetworkaccessftpbackend.cpp.
|
inline |
Definition at line 89 of file qnetworkaccessftpbackend.cpp.
|
inlinevirtual |
Implements QNetworkAccessCache::CacheableObject.
Definition at line 95 of file qnetworkaccessftpbackend.cpp.
Referenced by QNetworkAccessFtpBackend::ftpDone().