Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsXULControllers.h File Reference
#include "nsCOMPtr.h"
#include "nsVoidArray.h"
#include "nsWeakPtr.h"
#include "nsIControllers.h"
#include "nsISupportsArray.h"
#include "nsISecurityCheckedComponent.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsXULControllerData
class  nsXULControllers

Functions

NS_IMETHODIMP NS_NewXULControllers (nsISupports *aOuter, REFNSIID aIID, void **aResult)

Function Documentation

NS_IMETHODIMP NS_NewXULControllers ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
)

Definition at line 84 of file nsXULControllers.cpp.

{
  NS_PRECONDITION(aOuter == nsnull, "no aggregation");
  if (aOuter)
    return NS_ERROR_NO_AGGREGATION;

  nsXULControllers* controllers = new nsXULControllers();
  if (! controllers)
    return NS_ERROR_OUT_OF_MEMORY;
  
  nsresult rv;
  NS_ADDREF(controllers);
  rv = controllers->QueryInterface(aIID, aResult);
  NS_RELEASE(controllers);
  return rv;
}