Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends
nsXULControllers Class Reference

#include <nsXULControllers.h>

Inheritance diagram for nsXULControllers:
Inheritance graph
Collaboration diagram for nsXULControllers:
Collaboration graph

List of all members.

Public Member Functions

nsIController getControllerForCommand (in string command)
void insertControllerAt (in unsigned long index, in nsIController controller)
nsIController removeControllerAt (in unsigned long index)
nsIController getControllerAt (in unsigned long index)
void appendController (in nsIController controller)
void removeController (in nsIController controller)
unsigned long getControllerId (in nsIController controller)
nsIController getControllerById (in unsigned long controllerID)
unsigned long getControllerCount ()
string canCreateWrapper (in nsIIDPtr iid)
string canCallMethod (in nsIIDPtr iid, in wstring methodName)
string canGetProperty (in nsIIDPtr iid, in wstring propertyName)
string canSetProperty (in nsIIDPtr iid, in wstring propertyName)

Public Attributes


Protected Member Functions

 nsXULControllers ()
virtual ~nsXULControllers (void)
void DeleteControllers ()

Protected Attributes

nsVoidArray mControllers
nsWeakPtr mCommandDispatcher
PRUint32 mCurControllerID


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

Detailed Description

Definition at line 87 of file nsXULControllers.h.

Constructor & Destructor Documentation

Definition at line 58 of file nsXULControllers.cpp.

nsXULControllers::~nsXULControllers ( void  ) [protected, virtual]

Definition at line 63 of file nsXULControllers.cpp.

Here is the call graph for this function:

Member Function Documentation

string nsISecurityCheckedComponent::canCallMethod ( in nsIIDPtr  iid,
in wstring  methodName 
) [inherited]
string nsISecurityCheckedComponent::canGetProperty ( in nsIIDPtr  iid,
in wstring  propertyName 
) [inherited]
string nsISecurityCheckedComponent::canSetProperty ( in nsIIDPtr  iid,
in wstring  propertyName 
) [inherited]

Definition at line 69 of file nsXULControllers.cpp.

  PRUint32 count = mControllers.Count();
  for (PRUint32 i = 0; i < count; i++)
    nsXULControllerData*  controllerData = NS_STATIC_CAST(nsXULControllerData*, mControllers.ElementAt(i));
    if (controllerData)
      delete controllerData;    // releases the nsIController

Here is the caller graph for this function:

nsIController nsIControllers::getControllerAt ( in unsigned long  index) [inherited]
nsIController nsIControllers::getControllerById ( in unsigned long  controllerID) [inherited]
unsigned long nsIControllers::getControllerCount ( ) [inherited]
unsigned long nsIControllers::getControllerId ( in nsIController  controller) [inherited]
void nsIControllers::insertControllerAt ( in unsigned long  index,
in nsIController  controller 
) [inherited]
nsIController nsIControllers::removeControllerAt ( in unsigned long  index) [inherited]

Friends And Related Function Documentation

NS_IMETHODIMP NS_NewXULControllers ( nsISupports *  aOuter,
void **  aResult 
) [friend]

Definition at line 84 of file nsXULControllers.cpp.

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

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

Member Data Documentation

Definition at line 45 of file nsIControllers.idl.

Definition at line 105 of file nsXULControllers.h.

Definition at line 104 of file nsXULControllers.h.

Definition at line 106 of file nsXULControllers.h.

The documentation for this class was generated from the following files: