Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsImportService.cpp File Reference
#include "nsICharsetConverterManager.h"
#include "nsICharsetAlias.h"
#include "nsIPlatformCharset.h"
#include "nsCRT.h"
#include "nsString.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsMemory.h"
#include "nsIEnumerator.h"
#include "nsIImportModule.h"
#include "nsIImportService.h"
#include "nsImportMailboxDescriptor.h"
#include "nsImportABDescriptor.h"
#include "nsIImportGeneric.h"
#include "nsImportFieldMap.h"
#include "nsICategoryManager.h"
#include "nsXPIDLString.h"
#include "nsXPCOM.h"
#include "nsISupportsPrimitives.h"
#include "nsImportStringBundle.h"
#include "plstr.h"
#include "prmem.h"
#include "ImportDebug.h"
#include "nsImportService.h"

Go to the source code of this file.

Functions

nsresult NS_NewGenericMail (nsIImportGeneric **aImportGeneric)
nsresult NS_NewGenericAddressBooks (nsIImportGeneric **aImportGeneric)

Variables

PRLogModuleInfoIMPORTLOGMODULE = nsnull
static nsIImportServicegImportService = nsnull
static const char * kWhitespace = "\b\t\r\n "

Function Documentation

Definition at line 167 of file nsImportAddressBooks.cpp.

{
    NS_PRECONDITION(aImportGeneric != nsnull, "null ptr");
    if (! aImportGeneric)
        return NS_ERROR_NULL_POINTER;
       
       nsImportGenericAddressBooks *pGen = new nsImportGenericAddressBooks();

       if (pGen == nsnull)
              return NS_ERROR_OUT_OF_MEMORY;

       NS_ADDREF( pGen);
       nsresult rv = pGen->QueryInterface( NS_GET_IID(nsIImportGeneric), (void **)aImportGeneric);
       NS_RELEASE( pGen);
    
    return( rv);
}

Here is the call graph for this function:

Definition at line 178 of file nsImportMail.cpp.

{
    NS_PRECONDITION(aImportGeneric != nsnull, "null ptr");
    if (! aImportGeneric)
        return NS_ERROR_NULL_POINTER;
       
       nsImportGenericMail *pGen = new nsImportGenericMail();

       if (pGen == nsnull)
              return NS_ERROR_OUT_OF_MEMORY;

       NS_ADDREF( pGen);
       nsresult rv = pGen->QueryInterface( NS_GET_IID(nsIImportGeneric), (void **)aImportGeneric);
       NS_RELEASE( pGen);
    
    return( rv);
}

Here is the call graph for this function:


Variable Documentation

Definition at line 73 of file nsImportService.cpp.

Definition at line 71 of file nsImportService.cpp.

const char* kWhitespace = "\b\t\r\n " [static]

Definition at line 74 of file nsImportService.cpp.