Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsMapiEntry Struct Reference

#include <nsAbWinHelper.h>

List of all members.

Public Member Functions

 nsMapiEntry (void)
 ~nsMapiEntry (void)
 nsMapiEntry (ULONG aByteCount, LPENTRYID aEntryId)
void Assign (ULONG aByteCount, LPENTRYID aEntryId)
void Assign (const nsCString &aString)
void ToString (nsCString &aString) const
void Dump (void) const

Public Attributes

ULONG mByteCount
LPENTRYID mEntryId

Detailed Description

Definition at line 48 of file nsAbWinHelper.h.


Constructor & Destructor Documentation

Definition at line 90 of file nsAbWinHelper.cpp.

Definition at line 103 of file nsAbWinHelper.cpp.

Here is the call graph for this function:

nsMapiEntry::nsMapiEntry ( ULONG  aByteCount,
LPENTRYID  aEntryId 
)

Definition at line 96 of file nsAbWinHelper.cpp.

: mByteCount(0), mEntryId(NULL)
{
    Assign(aByteCount, aEntryId) ;
    MOZ_COUNT_CTOR(nsMapiEntry) ;
}

Here is the call graph for this function:


Member Function Documentation

void nsMapiEntry::Assign ( ULONG  aByteCount,
LPENTRYID  aEntryId 
)

Definition at line 109 of file nsAbWinHelper.cpp.

{
    assignEntryID(mEntryId, aEntryId, aByteCount) ;
    mByteCount = aByteCount ;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 208 of file nsAbWinHelper.cpp.

{
    Assign(0, NULL) ;
    ULONG byteCount = aString.Length() / 4 * 3 ;

    if ((aString.Length() & 0x03) != 0) {
        byteCount += (aString.Length() & 0x03) - 1 ;
    }
    const char *currentSource = aString.get() ;
    unsigned char *currentTarget = new unsigned char [byteCount] ;
    PRUint32 i = 0 ;

    mByteCount = byteCount ;
    mEntryId = NS_REINTERPRET_CAST(LPENTRYID, currentTarget) ;
    for (i = aString.Length() ; i >= 4 ; i -= 4) {
        Base64ToUnsigned(currentSource, 4, currentTarget) ;
    }
    Base64ToUnsigned(currentSource, i, currentTarget) ;
}

Here is the call graph for this function:

Definition at line 240 of file nsAbWinHelper.cpp.

{
    PRINTF(("%d\n", mByteCount)) ;
    for (ULONG i = 0 ; i < mByteCount ; ++ i) {
        PRINTF(("%02X", (NS_REINTERPRET_CAST(unsigned char *, mEntryId)) [i])) ;
    }
    PRINTF(("\n")) ;
}
void nsMapiEntry::ToString ( nsCString aString) const

Definition at line 228 of file nsAbWinHelper.cpp.

{
    aString.Truncate() ;
    ULONG i = 0 ;
    unsigned char *currentSource = NS_REINTERPRET_CAST(unsigned char *, mEntryId) ;

    for (i = mByteCount ; i >= 3 ; i -= 3) {
        UnsignedToBase64(currentSource, 3, aString) ;
    }
    UnsignedToBase64(currentSource, i, aString) ;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 50 of file nsAbWinHelper.h.

Definition at line 51 of file nsAbWinHelper.h.


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