Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsEudoraFactory.cpp File Reference
#include "nsCOMPtr.h"
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsIServiceManager.h"
#include "nsIImportService.h"
#include "nsEudoraImport.h"
#include "nsCRT.h"
#include "nsICategoryManager.h"
#include "nsXPIDLString.h"
#include "nsEudoraStringBundle.h"
#include "EudoraDebugLog.h"

Go to the source code of this file.

Functions

static NS_DEFINE_CID (kEudoraImportCID, NS_EUDORAIMPORT_CID)
NS_METHOD EudoraRegister (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
 eudoraModuleDtor (nsIModule *self)

Variables

static const nsModuleComponentInfo components []

Function Documentation

Definition at line 96 of file nsEudoraFactory.cpp.

Here is the call graph for this function:

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

Definition at line 60 of file nsEudoraFactory.cpp.

{      
       nsresult rv;

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

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

       return( rv);
}

Here is the call graph for this function:

static NS_DEFINE_CID ( kEudoraImportCID  ,
NS_EUDORAIMPORT_CID   
) [static]

Variable Documentation

Initial value:
 {
    {  "Text Import Component", 
              NS_EUDORAIMPORT_CID,
              "@mozilla.org/import/import-eudora;1", 
              nsEudoraImportConstructor,
              EudoraRegister,
              nsnull
       }
}

Definition at line 85 of file nsEudoraFactory.cpp.