Back to index

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

List of all members.

Public Member Functions

 nsSaveAllAttachmentsState (PRUint32 count, const char **contentTypeArray, const char **urlArray, const char **displayNameArray, const char **messageUriArray, const char *directoryName, PRBool detachingAttachments)
virtual ~nsSaveAllAttachmentsState ()

Public Attributes

PRUint32 m_count
PRUint32 m_curIndex
char * m_directoryName
char ** m_contentTypeArray
char ** m_urlArray
char ** m_displayNameArray
char ** m_messageUriArray
PRBool m_detachingAttachments
nsCStringArray m_savedFiles

Detailed Description

Definition at line 299 of file nsMessenger.cpp.


Constructor & Destructor Documentation

nsSaveAllAttachmentsState::nsSaveAllAttachmentsState ( PRUint32  count,
const char **  contentTypeArray,
const char **  urlArray,
const char **  displayNameArray,
const char **  messageUriArray,
const char *  directoryName,
PRBool  detachingAttachments 
)

Definition at line 2251 of file nsMessenger.cpp.

{
    PRUint32 i;
    NS_ASSERTION(count && urlArray && nameArray && uriArray && dirName, 
                 "fatal - invalid parameters\n");
    
    m_count = count;
    m_curIndex = 0;
    m_contentTypeArray = new char*[count];
    m_urlArray = new char*[count];
    m_displayNameArray = new char*[count];
    m_messageUriArray = new char*[count];
    for (i = 0; i < count; i++)
    {
        m_contentTypeArray[i] = nsCRT::strdup(contentTypeArray[i]);
        m_urlArray[i] = nsCRT::strdup(urlArray[i]);
        m_displayNameArray[i] = nsCRT::strdup(nameArray[i]);
        m_messageUriArray[i] = nsCRT::strdup(uriArray[i]);
    }
    m_directoryName = nsCRT::strdup(dirName);
    m_detachingAttachments = detachingAttachments;
}

Member Data Documentation

Definition at line 314 of file nsMessenger.cpp.

Definition at line 311 of file nsMessenger.cpp.

Definition at line 312 of file nsMessenger.cpp.

Definition at line 318 of file nsMessenger.cpp.

Definition at line 313 of file nsMessenger.cpp.

Definition at line 316 of file nsMessenger.cpp.

Definition at line 317 of file nsMessenger.cpp.

Definition at line 319 of file nsMessenger.cpp.

Definition at line 315 of file nsMessenger.cpp.


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