Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsImportModule.cpp File Reference
#include "nsCOMPtr.h"
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsICategoryManager.h"
#include "nsCRT.h"
#include "nsImportService.h"
#include "nsImportMimeEncode.h"
#include "nsImportStringBundle.h"
#include "nsTextImport.h"
#include "nsTextStringBundle.h"
#include "nsComm4xProfile.h"
#include "nsComm4xMailStringBundle.h"
#include "nsComm4xMailImport.h"

Go to the source code of this file.

Functions

static NS_DEFINE_CID (kTextImportCID, NS_TEXTIMPORT_CID)
static NS_DEFINE_CID (kComm4xMailImportCID, NS_COMM4XMAILIMPORT_CID)
NS_METHOD TextRegister (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
NS_METHOD Comm4xMailRegister (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
 PR_STATIC_CALLBACK (void) importModuleDtor(nsIModule *self)

Variables

static const nsModuleComponentInfo components []

Function Documentation

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

Definition at line 133 of file nsImportModule.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);
    }

    return rv;
}

Here is the call graph for this function:

static NS_DEFINE_CID ( kTextImportCID  ,
NS_TEXTIMPORT_CID   
) [static]
static NS_DEFINE_CID ( kComm4xMailImportCID  ,
NS_COMM4XMAILIMPORT_CID   
) [static]

Definition at line 274 of file nsImportModule.cpp.

{
       nsImportStringBundle::Cleanup();
    nsTextStringBundle::Cleanup();

#if defined(XP_WIN) || defined(XP_MACOSX)
    nsEudoraStringBundle::Cleanup();
#endif

#ifdef XP_WIN

#if defined(_MSC_VER) && _MSC_VER >= 1100
    nsOEStringBundle::Cleanup();
    nsOutlookStringBundle::Cleanup();
#endif

#endif
}

Here is the call graph for this function:

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

Definition at line 108 of file nsImportModule.cpp.

{      
       nsresult rv;

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

       return( rv);
}

Here is the call graph for this function:


Variable Documentation

Definition at line 226 of file nsImportModule.cpp.