Back to index

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

#include <nsControllerCommandTable.h>

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

List of all members.

Public Member Functions

 nsControllerCommandTable ()
virtual ~nsControllerCommandTable ()
void makeImmutable ()
 Make this command table immutable, so that commands cannot be registered or unregistered.
void registerCommand (in string aCommandName, in nsIControllerCommand aCommand)
 Register and unregister commands with the command table.
void unregisterCommand (in string aCommandName, in nsIControllerCommand aCommand)
nsIControllerCommand findCommandHandler (in string aCommandName)
 Find the command handler which has been registered to handle the named command.
boolean isCommandEnabled (in string aCommandName, in nsISupports aCommandRefCon)
 Get whether the named command is enabled.
void updateCommandState (in string aCommandName, in nsISupports aCommandRefCon)
 Tell the command to udpate its state (if it is a state updating command)
boolean supportsCommand (in string aCommandName, in nsISupports aCommandRefCon)
 Get whether the named command is supported.
void doCommand (in string aCommandName, in nsISupports aCommandRefCon)
 Execute the named command.
void doCommandParams (in string aCommandName, in nsICommandParams aParam, in nsISupports aCommandRefCon)
void getCommandState (in string aCommandName, in nsICommandParams aParam, in nsISupports aCommandRefCon)

Protected Attributes

nsSupportsHashtable mCommandsTable
PRBool mMutable

Detailed Description

Definition at line 49 of file nsControllerCommandTable.h.


Constructor & Destructor Documentation

Definition at line 59 of file nsControllerCommandTable.cpp.

{
}

Member Function Documentation

void nsIControllerCommandTable::doCommand ( in string  aCommandName,
in nsISupports  aCommandRefCon 
) [inherited]

Execute the named command.

Parameters:
aCommandNamethe name of the command to execute
aCommandRefConthe command context data
void nsIControllerCommandTable::doCommandParams ( in string  aCommandName,
in nsICommandParams  aParam,
in nsISupports  aCommandRefCon 
) [inherited]

Find the command handler which has been registered to handle the named command.

Parameters:
aCommandNamethe name of the command to find the handler for.
void nsIControllerCommandTable::getCommandState ( in string  aCommandName,
in nsICommandParams  aParam,
in nsISupports  aCommandRefCon 
) [inherited]
boolean nsIControllerCommandTable::isCommandEnabled ( in string  aCommandName,
in nsISupports  aCommandRefCon 
) [inherited]

Get whether the named command is enabled.

Parameters:
aCommandNamethe name of the command to test
aCommandRefConthe command context data

Make this command table immutable, so that commands cannot be registered or unregistered.

Some command tables are made mutable after command registration so that they can be used as singletons.

void nsIControllerCommandTable::registerCommand ( in string  aCommandName,
in nsIControllerCommand  aCommand 
) [inherited]

Register and unregister commands with the command table.

Parameters:
aCommandNamethe name of the command under which to register or unregister the given command handler.
aCommandthe handler for this command.
boolean nsIControllerCommandTable::supportsCommand ( in string  aCommandName,
in nsISupports  aCommandRefCon 
) [inherited]

Get whether the named command is supported.

Parameters:
aCommandNamethe name of the command to test
aCommandRefConthe command context data
void nsIControllerCommandTable::unregisterCommand ( in string  aCommandName,
in nsIControllerCommand  aCommand 
) [inherited]
void nsIControllerCommandTable::updateCommandState ( in string  aCommandName,
in nsISupports  aCommandRefCon 
) [inherited]

Tell the command to udpate its state (if it is a state updating command)

Parameters:
aCommandNamethe name of the command to update
aCommandRefConthe command context data

Member Data Documentation

nsSupportsHashtable nsControllerCommandTable::mCommandsTable [protected]

Definition at line 63 of file nsControllerCommandTable.h.

Definition at line 64 of file nsControllerCommandTable.h.


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