Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
SendOperationListener Class Reference

#include <nsMsgSendLater.h>

Inheritance diagram for SendOperationListener:
Inheritance graph
[legend]
Collaboration diagram for SendOperationListener:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SendOperationListener (void)
virtual ~SendOperationListener (void)
NS_DECL_ISUPPORTS
NS_DECL_NSIMSGSENDLISTENER
NS_DECL_NSIMSGCOPYSERVICELISTENER
NS_IMETHOD 
SetSendLaterObject (nsMsgSendLater *obj)
void onStartSending (in string aMsgID, in PRUint32 aMsgSize)
 Notify the observer that the message has started to be delivered.
void onProgress (in string aMsgID, in PRUint32 aProgress, in PRUint32 aProgressMax)
 Notify the observer that progress as occurred for the message send.
void onStatus (in string aMsgID, in wstring aMsg)
 Notify the observer with a status message for the message send.
void onStopSending (in string aMsgID, in nsresult aStatus, in wstring aMsg, in nsIFileSpec returnFileSpec)
 Notify the observer that the message has been sent.
void onGetDraftFolderURI (in string aFolderURI)
 Notify the observer with the folder uri before the draft is copied.
void onSendNotPerformed (in string aMsgID, in nsresult aStatus)
 Notify the observer when the user aborts the send without actually doing the send eg : by closing the compose window without Send.
void OnStartCopy ()
 Notify the observer that the message has started to be copied.
void OnProgress (in PRUint32 aProgress, in PRUint32 aProgressMax)
 Notify the observer that progress as occurred for the message copy aProgress - aProgressMax -.
void SetMessageKey (in PRUint32 aKey)
 Setting newly created message key.
void GetMessageId (in nsCString aMessageId)
 Getting the file message message ID.
void OnStopCopy (in nsresult aStatus)
 Notify the observer that the message copied operation has completed.

Private Attributes

nsMsgSendLatermSendLater

Detailed Description

Definition at line 62 of file nsMsgSendLater.h.


Constructor & Destructor Documentation

Definition at line 324 of file nsMsgSendLater.cpp.

{
}

Member Function Documentation

Getting the file message message ID.

This method is taylored specifically for nsIMsgCopyService::CopyFileMessage() when saving Drafts/Templates. In order to work with imap server which doesn't support uidplus we have to use search comman to retrieve the key of newly created message. Message ID generated by the compose gurantee its uniqueness. aMessageId -

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

void nsIMsgSendListener::onProgress ( in string  aMsgID,
in PRUint32  aProgress,
in PRUint32  aProgressMax 
) [inherited]

Notify the observer that progress as occurred for the message send.

void nsIMsgCopyServiceListener::OnProgress ( in PRUint32  aProgress,
in PRUint32  aProgressMax 
) [inherited]

Notify the observer that progress as occurred for the message copy aProgress - aProgressMax -.

void nsIMsgSendListener::onSendNotPerformed ( in string  aMsgID,
in nsresult  aStatus 
) [inherited]

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

Notify the observer that the message has started to be copied.

This method is called only once, at the beginning of a message copyoperation.

Implemented in CopyListener.

void nsIMsgSendListener::onStartSending ( in string  aMsgID,
in PRUint32  aMsgSize 
) [inherited]

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.

Returns:
The return value is currently ignored. In the future it may be used to cancel the URL load..
void nsIMsgSendListener::onStatus ( in string  aMsgID,
in wstring  aMsg 
) [inherited]

Notify the observer with a status message for the message send.

Notify the observer that the message copied operation has completed.

This method is called regardless of whether the the operation was successful. aStatus - indicate whether the operation was succeeded

void nsIMsgSendListener::onStopSending ( in string  aMsgID,
in nsresult  aStatus,
in wstring  aMsg,
in nsIFileSpec  returnFileSpec 
) [inherited]

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. aMsgID 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.

Setting newly created message key.

This method is taylored specifically for nsIMsgCopyService::CopyFileMessage() when saveing Drafts/Templates. We need to have a way to inform the client what's the key of the newly created message. aKey -

Definition at line 329 of file nsMsgSendLater.cpp.

{
  mSendLater = obj;
  return NS_OK;
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 80 of file nsMsgSendLater.h.


The documentation for this class was generated from the following files: