Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsComm4xMailFactory.cpp File Reference
#include "nsCOMPtr.h"
#include "nsIModule.h"
#include "nsIStringBundle.h"
#include "nsIGenericFactory.h"
#include "nsIServiceManager.h"
#include "nsIImportService.h"
#include "nsComm4xMailImport.h"
#include "nsCRT.h"
#include "nsICategoryManager.h"
#include "nsXPIDLString.h"
#include "nsComm4xMailStringBundle.h"
#include "Comm4xMailDebugLog.h"
#include "nsComm4xProfile.h"

Go to the source code of this file.

Functions

static NS_DEFINE_CID (kComm4xMailImportCID, NS_COMM4XMAILIMPORT_CID)
NS_METHOD Comm4xMailRegister (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
 comm4xMailModuleDtor (nsIModule *self)

Variables

static nsModuleComponentInfo components []

Function Documentation

Definition at line 109 of file nsComm4xMailFactory.cpp.

{

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

Definition at line 60 of file nsComm4xMailFactory.cpp.

{   
    nsresult rv;

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

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

    return rv;
}

Here is the call graph for this function:

static NS_DEFINE_CID ( kComm4xMailImportCID  ,
NS_COMM4XMAILIMPORT_CID   
) [static]

Variable Documentation

Initial value:
 {
    {   "Comm4xMail Import Component", 
        NS_COMM4XMAILIMPORT_CID,
        "@mozilla.org/import/import-comm4xMail;1", 
        nsComm4xMailImportConstructor,
        Comm4xMailRegister,
        nsnull
    },
    {
       "Comm4xMail Import Mail Implementation",
       NS_COMM4XMAILIMPL_CID,
       NS_COMM4XMAILIMPL_CONTRACTID,
       ImportComm4xMailImplConstructor
    },
    {   NS_ICOMM4XPROFILE_CLASSNAME, 
        NS_ICOMM4XPROFILE_CID,
        NS_ICOMM4XPROFILE_CONTRACTID, 
        nsComm4xProfileConstructor
    }
}

Definition at line 87 of file nsComm4xMailFactory.cpp.