Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsOutlookFactory.cpp File Reference
#include "nsCOMPtr.h"
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsIServiceManager.h"
#include "nsIImportService.h"
#include "nsOutlookImport.h"
#include "nsCRT.h"
#include "nsICategoryManager.h"
#include "nsXPIDLString.h"
#include "nsOutlookStringBundle.h"
#include "OutlookDebugLog.h"

Go to the source code of this file.

Functions

static NS_DEFINE_CID (kOutlookImportCID, NS_OUTLOOKIMPORT_CID)
NS_METHOD OutlookRegister (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
 outlookModuleDtor (nsIModule *self)

Variables

static const nsModuleComponentInfo components []

Function Documentation

static NS_DEFINE_CID ( kOutlookImportCID  ,
NS_OUTLOOKIMPORT_CID   
) [static]

Definition at line 95 of file nsOutlookFactory.cpp.

Here is the call graph for this function:

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

Definition at line 60 of file nsOutlookFactory.cpp.

{
       nsresult rv;
       
       nsCOMPtr<nsICategoryManager> catMan = do_GetService( NS_CATEGORYMANAGER_CONTRACTID, &rv);
       if (NS_SUCCEEDED( rv)) {
              nsXPIDLCString       replace;
              char *theCID = kOutlookImportCID.ToString();
              rv = catMan->AddCategoryEntry( "mailnewsimport", theCID, kOutlookSupportsString, PR_TRUE, PR_TRUE, getter_Copies( replace));
              nsCRT::free( theCID);
       }
       
       if (NS_FAILED( rv)) {
              IMPORT_LOG0( "*** ERROR: Problem registering Outlook component in the category manager\n");
       }

       return( rv);
}

Here is the call graph for this function:


Variable Documentation

Initial value:
 {
    {  "Outlook Import Component", 
              NS_OUTLOOKIMPORT_CID,
              "@mozilla.org/import/import-outlook;1", 
              nsOutlookImportConstructor,
              OutlookRegister,
              nsnull
       }
}

Definition at line 84 of file nsOutlookFactory.cpp.