Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsOEFactory.cpp File Reference
#include "nsCOMPtr.h"
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsIServiceManager.h"
#include "nsIImportService.h"
#include "nsOEImport.h"
#include "nsCRT.h"
#include "nsICategoryManager.h"
#include "nsXPIDLString.h"
#include "nsOEStringBundle.h"
#include "OEDebugLog.h"

Go to the source code of this file.

Functions

static NS_DEFINE_CID (kOEImportCID, NS_OEIMPORT_CID)
NS_METHOD OERegister (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
 oeModuleDtor (nsIModule *self)

Variables

static const nsModuleComponentInfo components []

Function Documentation

static NS_DEFINE_CID ( kOEImportCID  ,
NS_OEIMPORT_CID   
) [static]
oeModuleDtor ( nsIModule self)

Definition at line 95 of file nsOEFactory.cpp.

Here is the call graph for this function:

NS_METHOD OERegister ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const char *  componentType,
const nsModuleComponentInfo info 
)

Definition at line 58 of file nsOEFactory.cpp.

{
       nsresult rv;
       
       nsCOMPtr<nsICategoryManager> catMan = do_GetService( NS_CATEGORYMANAGER_CONTRACTID, &rv);
       if (NS_SUCCEEDED( rv)) {
              nsXPIDLCString       replace;
              char *theCID = kOEImportCID.ToString();
              rv = catMan->AddCategoryEntry( "mailnewsimport", theCID, kOESupportsString, PR_TRUE, PR_TRUE, getter_Copies( replace));
              nsCRT::free( theCID);
       }

       if (NS_FAILED( rv)) {
              IMPORT_LOG0( "*** ERROR: Problem registering Outlook Express component in the category manager\n");
       }

       return( rv);
}

Here is the call graph for this function:


Variable Documentation

Initial value:
 {
    {  "Outlook Express Import Component", 
              NS_OEIMPORT_CID,
              "@mozilla.org/import/import-oe;1", 
              nsOEImportConstructor,
              OERegister,
              nsnull
       }
}

Definition at line 84 of file nsOEFactory.cpp.