|
|
|
Location:
FTPSESS.h
class MFtpSessionNotifier;
FTP session callback interface.
An FTP session client implements this interface to receive status and results from asynchronous FTP operations.
Note that, as defined in RFC959, FTP does not allow concurrent execution of several requests, hence even though calling an FTP function and getting the result through this interface are asynchronous operations, these events happen in a sequential manner. Each notification that the client receives corresponds to only one currently outstanding operation.
Defined in MFtpSessionNotifier:
Cancel(), Complete(), ConnReset(), ConnectionError(), EAccountNeeded, EAlreadyConnected, EConnectionFailed, EDirAlreadyExist, EDirNotExist, EFileAlreadyExist, EFileNotExist, EFileOpenFailure, EFileReadError, EFileSystemError, EFileWriteError, EHostNotExist, ELoginFailed, ENotConnected, EOpCanceled, EOpComplete, EPasswordNeeded, EPermissionDenied, ERemoteDirAlreadyExist, ERemoteDirNotExist, ERemoteFileAlreadyExist, ERemoteFileNotExist, ERemoteFileOpenFailure, ERemoteFileReadError, ERemoteFileSystemError, ERemoteFileWriteError, ERestartNotSupported, ESocketError, ETimedOut, EUnknownError(), LocalFileSystemError(), MoreData(), OperationNotSupported(), RemoteFileSystemError(), ServerMessage(), TOpComp, TransferProgress()
virtual void TransferProgress(TUint aProgress)=0;
Reports the amount of data already transferred in bytes.
|
virtual void ConnectionError(TOpComp aTConnectionError)=0;
Error in establishing the connection with the FTP server.
|
virtual void LocalFileSystemError(TOpComp aTLocalFileSystemError)=0;
Error with the local file system.
|
virtual void RemoteFileSystemError(TOpComp aTRemoteFileSystemError)=0;
Error with the remote file system.
|
virtual void ServerMessage(const TDesC8&)=0;
Message sent by the FTP server.
As specified by the RFC, the server answers all requests from the client with a plain text message beginning with a 3 digits code. The error/completion notifications sent back by the FTP session API are derived from these codes. Additionally, this function can be used to get the full string reporting the result of the request. It is recommended that the user interface displays this string to the user, as this gives a more precise idea of the result of the requested operation, especially in case of error.
|
TOpComp
FTP session operation completeness codes.
|