Back to index

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

#include <nsSmtpUrl.h>

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

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS_INHERITED
NS_IMETHOD 
SetSpec (const nsACString &aSpec)
NS_DECL_NSISMTPURL nsSmtpUrl ()

Public Attributes

attribute string recipients
attribute boolean PostMessage
attribute nsIFileSpec PostMessageFile
attribute nsIMsgIdentity senderIdentity
attribute nsIPrompt prompt
attribute nsIAuthPrompt authPrompt
attribute nsIInterfaceRequestor notificationCallbacks
attribute nsISmtpServer smtpServer
const PRInt32 DEFAULT_SMTP_PORT = 25
const PRInt32 DEFAULT_SMTPS_PORT = 465

Protected Member Functions

virtual ~nsSmtpUrl ()
virtual nsresult ParseUrl ()
virtual const char * GetUserName ()
nsresult ParseMessageToPost (char *searchPart)

Protected Attributes

nsCString m_toPart
PRBool m_isPostMessage
nsCString m_userName
nsCOMPtr< nsIFileSpecm_fileName
nsCOMPtr< nsIMsgIdentitym_senderIdentity
nsCOMPtr< nsIPromptm_netPrompt
nsCOMPtr< nsIAuthPromptm_netAuthPrompt
nsCOMPtr< nsIInterfaceRequestorm_callbacks
nsCOMPtr< nsISmtpServerm_smtpServer

Detailed Description

Definition at line 89 of file nsSmtpUrl.h.


Constructor & Destructor Documentation

Definition at line 526 of file nsSmtpUrl.cpp.

                     : nsMsgMailNewsUrl()
{
  // nsISmtpUrl specific state...

  m_fileName = nsnull;
  m_isPostMessage = PR_TRUE;
}
nsSmtpUrl::~nsSmtpUrl ( ) [protected, virtual]

Definition at line 534 of file nsSmtpUrl.cpp.

{
}

Member Function Documentation

virtual const char* nsSmtpUrl::GetUserName ( ) [inline, protected, virtual]

Definition at line 108 of file nsSmtpUrl.h.

{ return m_userName.get();}

Here is the call graph for this function:

nsresult nsSmtpUrl::ParseMessageToPost ( char *  searchPart) [protected]
nsresult nsSmtpUrl::ParseUrl ( ) [protected, virtual]

Definition at line 555 of file nsSmtpUrl.cpp.

{
  nsresult rv = NS_OK;
  
  // set the username
  nsCAutoString userName;
  rv = GetUsername(userName);
  if (NS_FAILED(rv)) return rv; 
  m_userName = userName;
  
  return NS_OK;
}
NS_IMETHODIMP nsSmtpUrl::SetSpec ( const nsACString &  aSpec)

Definition at line 545 of file nsSmtpUrl.cpp.

{
  nsresult rv = nsMsgMailNewsUrl::SetSpec(aSpec);
  if (NS_SUCCEEDED(rv))
    rv = ParseUrl();
  return rv;
}

Member Data Documentation

Definition at line 81 of file nsISmtpUrl.idl.

Definition at line 85 of file nsISmtpUrl.idl.

Definition at line 86 of file nsISmtpUrl.idl.

Definition at line 121 of file nsSmtpUrl.h.

Definition at line 117 of file nsSmtpUrl.h.

Definition at line 113 of file nsSmtpUrl.h.

Definition at line 120 of file nsSmtpUrl.h.

Definition at line 119 of file nsSmtpUrl.h.

Definition at line 118 of file nsSmtpUrl.h.

Definition at line 122 of file nsSmtpUrl.h.

Definition at line 111 of file nsSmtpUrl.h.

Definition at line 116 of file nsSmtpUrl.h.

Definition at line 82 of file nsISmtpUrl.idl.

Definition at line 58 of file nsISmtpUrl.idl.

Definition at line 62 of file nsISmtpUrl.idl.

Definition at line 80 of file nsISmtpUrl.idl.

Definition at line 56 of file nsISmtpUrl.idl.

Definition at line 79 of file nsISmtpUrl.idl.

Definition at line 83 of file nsISmtpUrl.idl.


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