Back to index

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

#include <MapiApi.h>

Collaboration diagram for CMapiFolder:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CMapiFolder ()
 CMapiFolder (const CMapiFolder *pCopyFrom)
 CMapiFolder (const PRUnichar *pDisplayName, ULONG cbEid, LPENTRYID lpEid, int depth, LONG oType=MAPI_FOLDER)
 ~CMapiFolder ()
void SetDoImport (BOOL doIt)
void SetObjectType (long oType)
void SetDisplayName (const PRUnichar *pDisplayName)
void SetEntryID (ULONG cbEid, LPENTRYID lpEid)
void SetDepth (int depth)
void SetFilePath (const PRUnichar *pFilePath)
BOOL GetDoImport (void) const
LONG GetObjectType (void) const
void GetDisplayName (nsString &name) const
void GetFilePath (nsString &path) const
BOOL IsStore (void) const
BOOL IsFolder (void) const
int GetDepth (void) const
LPENTRYID GetEntryID (ULONG *pCb=NULL) const
ULONG GetCBEntryID (void) const

Private Attributes

LONG m_objectType
ULONG m_cbEid
BYTEm_lpEid
nsString m_displayName
int m_depth
nsString m_mailFilePath
BOOL m_doImport

Detailed Description

Definition at line 160 of file MapiApi.h.


Constructor & Destructor Documentation

Definition at line 1622 of file MapiApi.cpp.

{
       m_objectType = MAPI_FOLDER;
       m_cbEid = 0;
       m_lpEid = NULL;
       m_depth = 0;
       m_doImport = TRUE;
}

Definition at line 1642 of file MapiApi.cpp.

{
       m_lpEid = NULL;
       m_cbEid = 0;
       SetDoImport( pCopyFrom->GetDoImport());
       SetDisplayName(pCopyFrom->m_displayName.get());
       SetObjectType( pCopyFrom->GetObjectType());
       SetEntryID( pCopyFrom->GetCBEntryID(), pCopyFrom->GetEntryID());
       SetDepth( pCopyFrom->GetDepth());
       SetFilePath(pCopyFrom->m_mailFilePath.get());
}

Here is the call graph for this function:

CMapiFolder::CMapiFolder ( const PRUnichar pDisplayName,
ULONG  cbEid,
LPENTRYID  lpEid,
int  depth,
LONG  oType = MAPI_FOLDER 
)

Definition at line 1631 of file MapiApi.cpp.

{
       m_cbEid = 0;
       m_lpEid = NULL;
       SetDisplayName( pDisplayName);
       SetEntryID( cbEid, lpEid);
       SetDepth( depth);
       SetObjectType( oType);
       SetDoImport( TRUE);
}

Here is the call graph for this function:

Definition at line 1654 of file MapiApi.cpp.

{
       if (m_lpEid)
              delete m_lpEid;
}

Member Function Documentation

ULONG CMapiFolder::GetCBEntryID ( void  ) const [inline]

Definition at line 183 of file MapiApi.h.

{ return( m_cbEid);}

Here is the caller graph for this function:

int CMapiFolder::GetDepth ( void  ) const [inline]

Definition at line 180 of file MapiApi.h.

{ return( m_depth);}

Here is the caller graph for this function:

void CMapiFolder::GetDisplayName ( nsString name) const [inline]

Definition at line 176 of file MapiApi.h.

{ name = m_displayName;}

Here is the caller graph for this function:

BOOL CMapiFolder::GetDoImport ( void  ) const [inline]

Definition at line 174 of file MapiApi.h.

{ return( m_doImport);}

Here is the caller graph for this function:

LPENTRYID CMapiFolder::GetEntryID ( ULONG pCb = NULL) const [inline]

Definition at line 182 of file MapiApi.h.

{ if (pCb) *pCb = m_cbEid; return( (LPENTRYID) m_lpEid);}

Here is the caller graph for this function:

void CMapiFolder::GetFilePath ( nsString path) const [inline]

Definition at line 177 of file MapiApi.h.

{ path = m_mailFilePath;}

Here is the caller graph for this function:

LONG CMapiFolder::GetObjectType ( void  ) const [inline]

Definition at line 175 of file MapiApi.h.

{ return( m_objectType);}

Here is the caller graph for this function:

BOOL CMapiFolder::IsFolder ( void  ) const [inline]

Definition at line 179 of file MapiApi.h.

{ return( m_objectType == MAPI_FOLDER);}
BOOL CMapiFolder::IsStore ( void  ) const [inline]

Definition at line 178 of file MapiApi.h.

{ return( m_objectType == MAPI_STORE);}

Here is the caller graph for this function:

void CMapiFolder::SetDepth ( int  depth) [inline]

Definition at line 171 of file MapiApi.h.

{ m_depth = depth;}

Here is the caller graph for this function:

void CMapiFolder::SetDisplayName ( const PRUnichar pDisplayName) [inline]

Definition at line 169 of file MapiApi.h.

{ m_displayName = pDisplayName;}

Here is the caller graph for this function:

void CMapiFolder::SetDoImport ( BOOL  doIt) [inline]

Definition at line 167 of file MapiApi.h.

{ m_doImport = doIt;}

Here is the caller graph for this function:

void CMapiFolder::SetEntryID ( ULONG  cbEid,
LPENTRYID  lpEid 
)

Definition at line 1660 of file MapiApi.cpp.

{
       if (m_lpEid)
              delete m_lpEid;
       m_lpEid = NULL;
       m_cbEid = cbEid;
       if (cbEid) {
              m_lpEid = new BYTE[cbEid];
              memcpy( m_lpEid, lpEid, cbEid);
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void CMapiFolder::SetFilePath ( const PRUnichar pFilePath) [inline]

Definition at line 172 of file MapiApi.h.

{ m_mailFilePath = pFilePath;}

Here is the caller graph for this function:

void CMapiFolder::SetObjectType ( long  oType) [inline]

Definition at line 168 of file MapiApi.h.

{ m_objectType = oType;}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 187 of file MapiApi.h.

Definition at line 190 of file MapiApi.h.

Definition at line 189 of file MapiApi.h.

Definition at line 192 of file MapiApi.h.

Definition at line 188 of file MapiApi.h.

Definition at line 191 of file MapiApi.h.

Definition at line 186 of file MapiApi.h.


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