Back to index

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

List of all members.

Public Member Functions

virtual ~nsMAPISendListener ()
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)
PRBool IsDone ()
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 CreateMAPISendListener (nsIMsgSendListener **ppListener)

Protected Member Functions

 nsMAPISendListener ()

Protected Attributes

PRBool m_done

Detailed Description

Definition at line 96 of file msgMapiHook.cpp.


Constructor & Destructor Documentation

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

Definition at line 100 of file msgMapiHook.cpp.

{ }
nsMAPISendListener::nsMAPISendListener ( ) [inline, protected]

Definition at line 138 of file msgMapiHook.cpp.

                         {
        m_done = PR_FALSE;
    }

Member Function Documentation

Definition at line 148 of file msgMapiHook.cpp.

{
    NS_ENSURE_ARG_POINTER(ppListener) ;

    *ppListener = new nsMAPISendListener();
    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:

Definition at line 135 of file msgMapiHook.cpp.

{ return m_done ; }

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

NS_IMETHOD nsMAPISendListener::OnGetDraftFolderURI ( const char *  aFolderURI) [inline]

Definition at line 131 of file msgMapiHook.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 nsMAPISendListener::OnProgress ( const char *  aMsgID,
PRUint32  aProgress,
PRUint32  aProgressMax 
) [inline]

Definition at line 109 of file msgMapiHook.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 nsMAPISendListener::OnSendNotPerformed ( const char *  aMsgID,
nsresult  aStatus 
) [inline]

Definition at line 125 of file msgMapiHook.cpp.

       {
              return OnStopSending(aMsgID, aStatus, nsnull, nsnull) ;
       }

Here is the call graph for this function:

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 106 of file msgMapiHook.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 nsMAPISendListener::OnStatus ( const char *  aMsgID,
const PRUnichar aMsg 
) [inline]

Definition at line 112 of file msgMapiHook.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 nsMAPISendListener::OnStopSending ( const char *  aMsgID,
nsresult  aStatus,
const PRUnichar aMsg,
nsIFileSpec returnFileSpec 
) [inline]

Definition at line 115 of file msgMapiHook.cpp.

                                                        {
        PR_CEnterMonitor(this);
        PR_CNotifyAll(this);
        m_done = PR_TRUE;
        PR_CExitMonitor(this);
        return NS_OK ;
    }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 142 of file msgMapiHook.cpp.


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