Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsTypeAheadFindRegistration.cpp File Reference
#include "nsIGenericFactory.h"
#include "nsTypeAheadFind.h"
#include "nsIServiceManager.h"
#include "prprf.h"
#include "nsCRT.h"
#include "nsICategoryManager.h"

Go to the source code of this file.


static NS_METHOD nsTypeAheadFindRegistrationProc (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
 NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR (nsTypeAheadFind, nsTypeAheadFind::GetInstance) static void PR_CALLBACK TypeAheadFindModuleDtor(nsIModule *self)


static const nsModuleComponentInfo components []

Function Documentation

Definition at line 84 of file nsTypeAheadFindRegistration.cpp.

Here is the call graph for this function:

static NS_METHOD nsTypeAheadFindRegistrationProc ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const char *  componentType,
const nsModuleComponentInfo info 
) [static]

Definition at line 57 of file nsTypeAheadFindRegistration.cpp.

  // This function performs the extra step of installing us as
  // an application component. This makes sure that we're
  // initialized on application startup.

  // Register nsTypeAheadFind to be instantiated on startup.
  // XXX This is needed on linux, but for some reason not needed on win32.
  nsresult rv;
  nsCOMPtr<nsICategoryManager> categoryManager =

  if (NS_SUCCEEDED(rv)) {
    rv = categoryManager->AddCategoryEntry(APPSTARTUP_CATEGORY,
                                           "Type Ahead Find", 
                                           PR_TRUE, PR_TRUE, nsnull);

  return rv;

Here is the call graph for this function:

Variable Documentation

Initial value:
  { "TypeAheadFind Component", NS_TYPEAHEADFIND_CID,
    NS_TYPEAHEADFIND_CONTRACTID, nsTypeAheadFindConstructor,
    nsTypeAheadFindRegistrationProc, nsnull  

Definition at line 93 of file nsTypeAheadFindRegistration.cpp.