nsIMsgSendListener

IID:ED3D3227-2803-11D3-82B7-444553540002
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

void onGetDraftFolderURI ( char* folderURI ) void onProgress ( char* msgID , PRUint32 progress , PRUint32 progressMax ) void onSendNotPerformed ( char* msgID , nsresult status ) void onStartSending ( char* msgID , PRUint32 msgSize ) void onStatus ( char* msgID , PRUnichar* msg ) void onStopSending ( char* msgID , nsresult status , PRUnichar* msg , nsIFileSpec returnFileSpec )

void onGetDraftFolderURI ( char* folderURI )

Notify the observer with the folder uri before the draft is copied.

Arguments:
folderURI

void onProgress ( char* msgID , PRUint32 progress , PRUint32 progressMax )

Notify the observer that progress as occurred for the message send

Arguments:
msgID
progress
progressMax

void onSendNotPerformed ( char* msgID , nsresult status )

Notify the observer when the user aborts the send without actually doing the send eg : by closing the compose window without Send.

Arguments:
msgID
status

void onStartSending ( char* msgID , PRUint32 msgSize )

Notify the observer that the message has started to be delivered. This method is called only once, at the beginning of a message send operation.

Arguments:
msgID
msgSize
Returns:
The return value is currently ignored. In the future it may be used to cancel the URL load..

void onStatus ( char* msgID , PRUnichar* msg )

Notify the observer with a status message for the message send

Arguments:
msgID
msg

void onStopSending ( char* msgID , nsresult status , PRUnichar* msg , nsIFileSpec returnFileSpec )

Notify the observer that the message has been sent. This method is called once when the networking library has finished processing the message.

This method is called regardless of whether the the operation was successful. msgID The message id for the mail message status Status code for the message send. msg A text string describing the error. returnFileSpec The returned file spec for save to file operations.

Arguments:
msgID
status
msg
returnFileSpec

References

This interface is the type of the following properties:

nsIMsgComposeParams.sendListener

This interface is passed as an argument to the following methods:

nsIMsgSend.createAndSendMessage, nsIMsgSend.sendMessageFile

This interface is returned from the following methods:

nsIMsgCompose.getExternalSendListener

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com