Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsTextFactory.cpp File Reference
#include "nsCOMPtr.h"
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsIServiceManager.h"
#include "nsIImportService.h"
#include "nsTextImport.h"
#include "nsCRT.h"
#include "nsICategoryManager.h"
#include "nsXPIDLString.h"
#include "nsTextStringBundle.h"
#include "TextDebugLog.h"

Go to the source code of this file.

Functions

static NS_DEFINE_CID (kTextImportCID, NS_TEXTIMPORT_CID)
NS_METHOD TextRegister (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
 textModuleDtor (nsIModule *self)

Variables

static const nsModuleComponentInfo components []

Function Documentation

static NS_DEFINE_CID ( kTextImportCID  ,
NS_TEXTIMPORT_CID   
) [static]

Definition at line 96 of file nsTextFactory.cpp.

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 60 of file nsTextFactory.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);
       }

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

       return( rv);
}

Here is the call graph for this function:


Variable Documentation

Initial value:
 {
    {  "Text Import Component", 
              NS_TEXTIMPORT_CID,
              "@mozilla.org/import/import-text;1", 
              nsTextImportConstructor,
              TextRegister,
              nsnull
       }
}

Definition at line 85 of file nsTextFactory.cpp.