Symbian
 Developer Library

DEVELOPER LIBRARY

[Index] [Glossary] [Previous] [Next]



Location: FTPSESS.h

Class MFtpSessionNotifier

class MFtpSessionNotifier;

Description

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()


Member functions


Complete()

virtual void Complete()=0;

Description

Normal operation completion.


MoreData()

virtual void MoreData()=0;

Description

Operation partially completed, with more data to follow.


TransferProgress()

virtual void TransferProgress(TUint aProgress)=0;

Description

Reports the amount of data already transferred in bytes.

Parameters

TUint aProgress

Amount of data already transferred


Cancel()

virtual void Cancel(void)=0;

Description

User cancelled an on-going operation.


ConnReset()

virtual void ConnReset(void)=0;

Description

Peer reset the connection.


ConnectionError()

virtual void ConnectionError(TOpComp aTConnectionError)=0;

Description

Error in establishing the connection with the FTP server.

Parameters

TOpComp aTConnectionError

Operation completion code


OperationNotSupported()

virtual void OperationNotSupported(void)=0;

Description

Restart operation not supported.


LocalFileSystemError()

virtual void LocalFileSystemError(TOpComp aTLocalFileSystemError)=0;

Description

Error with the local file system.

Parameters

TOpComp aTLocalFileSystemError

Operation completion code


RemoteFileSystemError()

virtual void RemoteFileSystemError(TOpComp aTRemoteFileSystemError)=0;

Description

Error with the remote file system.

Parameters

TOpComp aTRemoteFileSystemError

Operation completion code


EUnknownError()

virtual void EUnknownError()=0;

Description

Unspecified error.


ServerMessage()

virtual void ServerMessage(const TDesC8&)=0;

Description

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.

Parameters

const TDesC8&

The message sent by the server

[Top]


Enum TOpComp

TOpComp

Description

FTP session operation completeness codes.

EOpComplete

Operation completed normally.

EOpCanceled

Operation cancelled.

EHostNotExist

Connect address invalid.

ESocketError

Sockets level error.

EConnectionFailed

Connection failed.

EPasswordNeeded

Password needed.

EAccountNeeded

Anonymous login not permitted.

ELoginFailed

UserName, Password combination invalid.

ENotConnected

Not connected to a server.

EAlreadyConnected

Already connected to a server.

ETimedOut

Operation timed out.

EFileSystemError

General file system error.

EFileOpenFailure

File opening failure.

EFileReadError

File reading failure.

EFileWriteError

File writing failure.

EFileAlreadyExist

File already exists.

EFileNotExist

File does not exist.

EDirAlreadyExist

Directory already exists.

EDirNotExist

Directory does not exist.

EPermissionDenied

Permission denied.

ERemoteFileSystemError

General remote file system error.

ERemoteFileOpenFailure

Remote file opening failure.

ERemoteFileReadError

Remote file reading failure.

ERemoteFileWriteError

Remote file writing failure.

ERemoteFileAlreadyExist

Remote file already exists.

ERemoteFileNotExist

Remote file does not exist.

ERemoteDirAlreadyExist

Remote directory already exists.

ERemoteDirNotExist

Remote directory does not exist.

ERestartNotSupported

Restart is not supported.