Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Public Attributes
OutlookSendListener Class Reference
Inheritance diagram for OutlookSendListener:
Inheritance graph
[legend]
Collaboration diagram for OutlookSendListener:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 OutlookSendListener ()
virtual ~OutlookSendListener ()
NS_DECL_ISUPPORTS NS_IMETHOD OnStartSending (const char *aMsgID, PRUint32 aMsgSize)
NS_IMETHOD OnProgress (const char *aMsgID, PRUint32 aProgress, PRUint32 aProgressMax)
NS_IMETHOD OnStatus (const char *aMsgID, const PRUnichar *aMsg)
NS_IMETHOD OnStopSending (const char *aMsgID, nsresult aStatus, const PRUnichar *aMsg, nsIFileSpec *returnFileSpec)
NS_IMETHOD OnSendNotPerformed (const char *aMsgID, nsresult aStatus)
NS_IMETHOD OnGetDraftFolderURI (const char *aFolderURI)
void Reset ()
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.

Static Public Member Functions

static nsresult CreateSendListener (nsIMsgSendListener **ppListener)

Public Attributes

PRBool m_done
nsIFileSpecm_location

Detailed Description

Definition at line 114 of file nsOutlookCompose.cpp.


Constructor & Destructor Documentation

Definition at line 117 of file nsOutlookCompose.cpp.

virtual OutlookSendListener::~OutlookSendListener ( ) [inline, virtual]

Definition at line 122 of file nsOutlookCompose.cpp.


Member Function Documentation

Definition at line 163 of file nsOutlookCompose.cpp.

{
    NS_PRECONDITION(ppListener != nsnull, "null ptr");
    if (! ppListener)
        return NS_ERROR_NULL_POINTER;

    *ppListener = new OutlookSendListener();
    if (! *ppListener)
        return NS_ERROR_OUT_OF_MEMORY;

    NS_ADDREF(*ppListener);
    return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 149 of file nsOutlookCompose.cpp.

{return NS_OK;}
void nsIMsgSendListener::onProgress ( in string  aMsgID,
in PRUint32  aProgress,
in PRUint32  aProgressMax 
) [inherited]

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

NS_IMETHOD OutlookSendListener::OnProgress ( const char *  aMsgID,
PRUint32  aProgress,
PRUint32  aProgressMax 
) [inline]

Definition at line 131 of file nsOutlookCompose.cpp.

{return NS_OK;}
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.

NS_IMETHOD OutlookSendListener::OnSendNotPerformed ( const char *  aMsgID,
nsresult  aStatus 
) [inline]

Definition at line 146 of file nsOutlookCompose.cpp.

{return NS_OK;}
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..

Definition at line 128 of file nsOutlookCompose.cpp.

{return NS_OK;}
void nsIMsgSendListener::onStatus ( in string  aMsgID,
in wstring  aMsg 
) [inherited]

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

NS_IMETHOD OutlookSendListener::OnStatus ( const char *  aMsgID,
const PRUnichar aMsg 
) [inline]

Definition at line 134 of file nsOutlookCompose.cpp.

{return NS_OK;}
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.

NS_IMETHOD OutlookSendListener::OnStopSending ( const char *  aMsgID,
nsresult  aStatus,
const PRUnichar aMsg,
nsIFileSpec returnFileSpec 
) [inline]

Definition at line 137 of file nsOutlookCompose.cpp.

                                                                          {
              m_done = PR_TRUE;
              m_location = returnFileSpec;
              NS_IF_ADDREF( m_location);
              return NS_OK;
       }

Definition at line 153 of file nsOutlookCompose.cpp.

Here is the caller graph for this function:


Member Data Documentation

Definition at line 156 of file nsOutlookCompose.cpp.

Definition at line 157 of file nsOutlookCompose.cpp.


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