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.
Public Member Functions | |
---|---|
void | Cancel(void) |
void | Complete(void) |
void | ConnReset(void) |
void | ConnectionError(TOpComp) |
void | EUnknownError() |
void | LocalFileSystemError(TOpComp) |
void | MoreData(void) |
void | OperationNotSupported(void) |
void | RemoteFileSystemError(TOpComp) |
void | ServerMessage(const TDesC8 &) |
void | TransferProgress(TUint) |
void | ConnectionError | ( | TOpComp | aTConnectionError | ) | [pure virtual] |
Error in establishing the connection with the FTP server.
TOpComp aTConnectionError | Operation completion code |
void | LocalFileSystemError | ( | TOpComp | aTLocalFileSystemError | ) | [pure virtual] |
Error with the local file system.
TOpComp aTLocalFileSystemError | Operation completion code |
void | MoreData | ( | void | ) | [pure virtual] |
Operation partially completed, with more data to follow.
void |
void | OperationNotSupported | ( | void | ) | [pure virtual] |
Restart operation not supported.
void |
void | RemoteFileSystemError | ( | TOpComp | aTRemoteFileSystemError | ) | [pure virtual] |
Error with the remote file system.
TOpComp aTRemoteFileSystemError | Operation completion code |
void | ServerMessage | ( | const TDesC8 & | ) | [pure virtual] |
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 digit 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.
const TDesC8 & |
void | TransferProgress | ( | TUint | aProgress | ) | [pure virtual] |
Reports the amount of data already transferred in bytes.
TUint aProgress | Amount of data already transferred |
FTP engine/session operation completeness codes.
EOpComplete = 0 |
Operation completed normally. |
EOpCanceled |
Operation cancelled. |
EHostNotExist |
Connection error: Connect address invalid. |
ESocketError |
Connection error: Sockets level error. |
EConnectionFailed |
Connection error: Connection failed. |
EPasswordNeeded |
Connection error: Password needed. |
EAccountNeeded |
Connection error: Anonymous login not permitted. |
ELoginFailed |
Connection error: UserName, Password combination invalid. |
ENotConnected |
Connection error: Not connected to a server. |
EAlreadyConnected |
Connection error: Already connected to a server. |
ETimedOut |
Connection error: Operation timed out. |
EFileSystemError |
Local filesystem error: General file system error. |
EFileOpenFailure |
Local filesystem error: File opening failure. |
EFileReadError |
Local filesystem error: File reading failure. |
EFileWriteError |
Local filesystem error: File writing failure. |
EFileAlreadyExist |
Local filesystem error: File already exists. |
EFileNotExist |
Local filesystem error: File does not exist. |
EDirAlreadyExist |
Local filesystem error: Directory already exists. |
EDirNotExist |
Local filesystem error: Directory does not exist. |
EPermissionDenied |
Permission error: Permission denied. |
ERemoteFileSystemError |
Remote filesystem error: General remote file system error. |
ERemoteFileOpenFailure |
Remote filesystem error: Remote file opening failure. |
ERemoteFileReadError |
Remote filesystem error: Remote file reading failure. |
ERemoteFileWriteError |
Remote filesystem error: Remote file writing failure. |
ERemoteFileAlreadyExist |
Remote filesystem error: Remote file already exists. |
ERemoteFileNotExist |
Remote filesystem error: Remote file does not exist. |
ERemoteDirAlreadyExist |
Remote filesystem error: Remote directory already exists. |
ERemoteDirNotExist |
Remote filesystem error: Remote directory does not exist. |
ERestartNotSupported |
Remote filesystem error: Restart is not supported. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.