Back to index

lightning-sunbird  0.9+nobinonly
Classes | Enumerations | Functions | Variables
nsAbWinHelper.h File Reference
#include <windows.h>
#include <mapix.h>
#include "nsString.h"
#include "nsVoidArray.h"
#include "nsXPIDLString.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nsMapiEntry
struct  nsMapiEntryArray
class  nsAbWinHelper
class  nsAbWinHelperGuard

Enumerations

enum  nsAbWinType { nsAbWinType_Unknown, nsAbWinType_Outlook, nsAbWinType_OutlookExp }

Functions

nsAbWinType getAbWinType (const char *aScheme, const char *aUri, nsCString &aStub, nsCString &aEntry)
void buildAbWinUri (const char *aScheme, PRUint32 aType, nsCString &aUri)

Variables

const char * kOutlookDirectoryScheme
const char * kOutlookStub
const char * kOutlookExpStub
const char * kOutlookCardScheme

Enumeration Type Documentation

Enumerator:
nsAbWinType_Unknown 
nsAbWinType_Outlook 
nsAbWinType_OutlookExp 

Definition at line 156 of file nsAbWinHelper.h.


Function Documentation

void buildAbWinUri ( const char *  aScheme,
PRUint32  aType,
nsCString aUri 
)

Definition at line 1033 of file nsAbWinHelper.cpp.

{
    aUri.Assign(aScheme) ;
    switch(aType) {
    case nsAbWinType_Outlook: aUri.Append(kOutlookStub) ; break ; 
    case nsAbWinType_OutlookExp: aUri.Append(kOutlookExpStub) ; break ;
    default: aUri.Assign("") ;
    }
}

Here is the caller graph for this function:

nsAbWinType getAbWinType ( const char *  aScheme,
const char *  aUri,
nsCString aStub,
nsCString aEntry 
)

Definition at line 1012 of file nsAbWinHelper.cpp.

{
    aStub.Truncate() ;
    aEntry.Truncate() ;
    PRUint32 schemeLength = strlen(aScheme) ;

    if (nsCRT::strncmp(aUri, aScheme, schemeLength) == 0) {
        if (nsCRT::strncmp(aUri + schemeLength, kOutlookStub, kOutlookStubLength) == 0) {
            aEntry = aUri + schemeLength + kOutlookStubLength ;
            aStub = kOutlookStub ;
            return nsAbWinType_Outlook ;
        }
        if (nsCRT::strncmp(aUri + schemeLength, kOutlookExpStub, kOutlookExpStubLength) == 0) {
            aEntry = aUri + schemeLength + kOutlookExpStubLength ;
            aStub = kOutlookExpStub ;
            return nsAbWinType_OutlookExp ;
        }
    }
    return nsAbWinType_Unknown ;   
}

Here is the caller graph for this function:


Variable Documentation

Definition at line 1009 of file nsAbWinHelper.cpp.

Definition at line 1003 of file nsAbWinHelper.cpp.

Definition at line 1007 of file nsAbWinHelper.cpp.

Definition at line 1005 of file nsAbWinHelper.cpp.