Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
nsControllerCommandGroup Class Reference

#include <nsCommandGroup.h>

Inheritance diagram for nsControllerCommandGroup:
Inheritance graph
[legend]
Collaboration diagram for nsControllerCommandGroup:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsControllerCommandGroup ()
virtual ~nsControllerCommandGroup ()
void addCommandToGroup (in string aCommand, in string aGroup)
void removeCommandFromGroup (in string aCommand, in string aGroup)
boolean isCommandInGroup (in string aCommand, in string aGroup)
nsISimpleEnumerator getGroupsEnumerator ()
nsISimpleEnumerator getEnumeratorForGroup (in string aGroup)

Protected Member Functions

void ClearGroupsHash ()

Static Protected Member Functions

static PRBool PR_CALLBACK ClearEnumerator (nsHashKey *aKey, void *aData, void *closure)

Protected Attributes

nsHashtable mGroupsHash

Detailed Description

Definition at line 56 of file nsCommandGroup.h.


Constructor & Destructor Documentation

Definition at line 239 of file nsCommandGroup.cpp.

{
}

Definition at line 243 of file nsCommandGroup.cpp.

Here is the call graph for this function:


Member Function Documentation

void nsIControllerCommandGroup::addCommandToGroup ( in string  aCommand,
in string  aGroup 
) [inherited]
PRBool nsControllerCommandGroup::ClearEnumerator ( nsHashKey *  aKey,
void aData,
void closure 
) [static, protected]

Definition at line 354 of file nsCommandGroup.cpp.

{
  nsVoidArray*    commandList = (nsVoidArray *)aData;
  if (commandList)
  {  
    PRInt32   numEntries = commandList->Count();
    for (PRInt32 i = 0; i < numEntries; i ++)
    {
      char*  commandString = (char*)commandList->ElementAt(i);
      nsMemory::Free(commandString);
    }
    
    delete commandList;
  }

  return PR_TRUE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 249 of file nsCommandGroup.cpp.

{
    mGroupsHash.Reset(ClearEnumerator, (void *)this);
}

Here is the call graph for this function:

Here is the caller graph for this function:

boolean nsIControllerCommandGroup::isCommandInGroup ( in string  aCommand,
in string  aGroup 
) [inherited]
void nsIControllerCommandGroup::removeCommandFromGroup ( in string  aCommand,
in string  aGroup 
) [inherited]

Member Data Documentation

nsHashtable nsControllerCommandGroup::mGroupsHash [protected]

Definition at line 77 of file nsCommandGroup.h.


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