Back to index

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

#include <nsImapMoveCoalescer.h>

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

List of all members.

Public Member Functions

 nsMoveCoalescerCopyListener (nsImapMoveCoalescer *coalescer, nsIMsgFolder *destFolder)
 ~nsMoveCoalescerCopyListener ()
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.

Public Attributes

NS_DECL_ISUPPORTS
NS_DECL_NSIMSGCOPYSERVICELISTENER
nsCOMPtr< nsIMsgFolder
m_destFolder
nsImapMoveCoalescer * m_coalescer

Detailed Description

Definition at line 82 of file nsImapMoveCoalescer.h.


Constructor & Destructor Documentation

nsMoveCoalescerCopyListener::nsMoveCoalescerCopyListener ( nsImapMoveCoalescer *  coalescer,
nsIMsgFolder destFolder 
)

Definition at line 243 of file nsImapMoveCoalescer.cpp.

{
  m_destFolder = destFolder;
  m_coalescer = coalescer;
}

Definition at line 250 of file nsImapMoveCoalescer.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 -

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

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

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.

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

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 -


Member Data Documentation

Definition at line 92 of file nsImapMoveCoalescer.h.

Definition at line 90 of file nsImapMoveCoalescer.h.


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