Back to index

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

#include <nsMsgCompose.h>

Inheritance diagram for nsMsgMailList:
Inheritance graph
Collaboration diagram for nsMsgMailList:
Collaboration graph

List of all members.

Public Member Functions

 nsMsgMailList ()
 nsMsgMailList (nsString listName, nsString listDescription, nsIAbDirectory *directory)
virtual ~nsMsgMailList ()

Public Attributes

nsString mFullName
nsCOMPtr< nsIAbDirectorymDirectory

Detailed Description

Definition at line 273 of file nsMsgCompose.h.

Constructor & Destructor Documentation

Definition at line 5133 of file nsMsgCompose.cpp.

nsMsgMailList::nsMsgMailList ( nsString  listName,
nsString  listDescription,
nsIAbDirectory directory 

Definition at line 5137 of file nsMsgCompose.cpp.

  nsCOMPtr<nsIMsgHeaderParser> parser (do_GetService(NS_MAILNEWS_MIME_HEADER_PARSER_CONTRACTID));

  if (parser)
    nsXPIDLCString utf8Email;
    if (listDescription.IsEmpty())
      CopyUTF16toUTF8(listName, utf8Email);
      CopyUTF16toUTF8(listDescription, utf8Email);

    nsXPIDLCString fullAddress;
    parser->MakeFullAddress(nsnull, NS_ConvertUTF16toUTF8(listName).get(),
                            utf8Email, getter_Copies(fullAddress));
    if (!fullAddress.IsEmpty())
      /* We need to convert back the result from UTF-8 to Unicode */
      CopyUTF8toUTF16(fullAddress, mFullName);

  if (mFullName.IsEmpty())
      //oops, parser problem! I will try to do my best...
      mFullName = listName;
      mFullName.AppendLiteral(" <");
      if (listDescription.IsEmpty())
        mFullName += listName;
        mFullName += listDescription;

  mDirectory = directory;

Here is the call graph for this function:

Definition at line 5175 of file nsMsgCompose.cpp.


Member Data Documentation

Definition at line 284 of file nsMsgCompose.h.

Definition at line 283 of file nsMsgCompose.h.

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