Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsProfileDirServiceProvider.h File Reference
#include "nsIDirectoryService.h"
#include "nsILocalFile.h"
#include "nsCOMPtr.h"
#include "nsDirectoryServiceUtils.h"
#include "nsComponentManagerUtils.h"
#include "nsServiceManagerUtils.h"
#include "nsEmbedString.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsProfileDirServiceProvider

Functions

nsresult NS_NewProfileDirServiceProvider (PRBool aNotifyObservers, nsProfileDirServiceProvider **aProvider)
 Global method to create an instance of nsProfileDirServiceProvider.

Function Documentation

Global method to create an instance of nsProfileDirServiceProvider.

Parameters:
aNotifyObserversIf true, will send out profile startup notifications when the profile directory is set. See nsIProfileChangeStatus.

Definition at line 528 of file nsProfileDirServiceProvider.cpp.

{
  NS_ENSURE_ARG_POINTER(aProvider);
  *aProvider = nsnull;

  nsProfileDirServiceProvider *prov = new nsProfileDirServiceProvider(aNotifyObservers);
  if (!prov)
    return NS_ERROR_OUT_OF_MEMORY;
  nsresult rv = prov->Initialize();
  if (NS_FAILED(rv)) {
    delete prov;
    return rv;
  }
  NS_ADDREF(*aProvider = prov);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: