Back to index

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

List of all members.

Public Member Functions

 EudoraSendListener ()
virtual ~EudoraSendListener ()
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 113 of file nsEudoraCompose.cpp.


Constructor & Destructor Documentation

Definition at line 116 of file nsEudoraCompose.cpp.

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

Definition at line 121 of file nsEudoraCompose.cpp.


Member Function Documentation

Definition at line 162 of file nsEudoraCompose.cpp.

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

    *ppListener = new EudoraSendListener();
    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.

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

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

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

Definition at line 145 of file nsEudoraCompose.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 127 of file nsEudoraCompose.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 EudoraSendListener::OnStatus ( const char *  aMsgID,
const PRUnichar aMsg 
) [inline]

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

Definition at line 136 of file nsEudoraCompose.cpp.

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

Definition at line 152 of file nsEudoraCompose.cpp.

Here is the caller graph for this function:


Member Data Documentation

Definition at line 155 of file nsEudoraCompose.cpp.

Definition at line 156 of file nsEudoraCompose.cpp.


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