Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsPrefMigrationFactory.cpp File Reference
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsPrefMigration.h"
#include "nsPrefMigrationFactory.h"

Go to the source code of this file.

Functions

static NS_IMETHODIMP CreateNewPrefMigration (nsISupports *aOuter, REFNSIID aIID, void **aResult)

Variables

static const nsModuleComponentInfo components []

Function Documentation

static NS_IMETHODIMP CreateNewPrefMigration ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
) [static]

Definition at line 46 of file nsPrefMigrationFactory.cpp.

{                                                  
    if (!aResult) {                                                  
        return NS_ERROR_NULL_POINTER;                             
    }                                                                
    if (aOuter) {                                                    
        *aResult = nsnull;                                           
        return NS_ERROR_NO_AGGREGATION;                              
    }                                                                
    nsPrefMigration* inst = nsPrefMigration::GetInstance();   
    if (inst == nsnull)
      return NS_ERROR_OUT_OF_MEMORY;
                               
    nsresult rv = inst->QueryInterface(aIID, aResult);                        
    if (NS_FAILED(rv)) {                                             
        *aResult = nsnull;                                           
    }                                                                
    return rv;                                                       
}

Here is the call graph for this function:


Variable Documentation

Initial value:
 
{
    { "Profile Migration", 
      NS_PREFMIGRATION_CID,
      NS_PROFILEMIGRATION_CONTRACTID, 
      CreateNewPrefMigration },
    { "Pref Conversion",
      NS_PREFCONVERTER_CID,
      NS_PREFCONVERTER_CONTRACTID, nsPrefConverterConstructor}
}

Definition at line 68 of file nsPrefMigrationFactory.cpp.