Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
nsBaseCommandController Class Reference

#include <nsBaseCommandController.h>

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

List of all members.

Public Member Functions

 nsBaseCommandController ()
virtual ~nsBaseCommandController ()
boolean isCommandEnabled (in string command)
boolean supportsCommand (in string command)
void doCommand (in string command)
void onEvent (in string eventName)
void init (in nsIControllerCommandTable aCommandTable)
 Init the controller, optionally passing a controller command table.
void setCommandContext (in nsISupports aCommandContext)
 Set a context on this controller, which is passed to commands to give them some context when they execute.
void getInterface (in nsIIDRef uuid,[iid_is(uuid), retval] out nsQIResult result)
 Retrieves the specified interface pointer.
void getCommandStateWithParams (in string command, in nsICommandParams aCommandParams)
void doCommandWithParams (in string command, in nsICommandParams aCommandParams)

Private Attributes

nsWeakPtr mCommandContextWeakPtr
nsISupports * mCommandContextRawPtr
nsCOMPtr
< nsIControllerCommandTable
mCommandTable

Detailed Description

Definition at line 57 of file nsBaseCommandController.h.


Constructor & Destructor Documentation

Definition at line 57 of file nsBaseCommandController.cpp.

Definition at line 62 of file nsBaseCommandController.cpp.

{
}

Member Function Documentation

void nsIController::doCommand ( in string  command) [inherited]
void nsICommandController::doCommandWithParams ( in string  command,
in nsICommandParams  aCommandParams 
) [inherited]
void nsICommandController::getCommandStateWithParams ( in string  command,
in nsICommandParams  aCommandParams 
) [inherited]
void nsIInterfaceRequestor::getInterface ( in nsIIDRef  uuid,
[iid_is(uuid), retval] out nsQIResult  result 
) [inherited]

Retrieves the specified interface pointer.

Parameters:
uuidThe IID of the interface being requested.
result[out] The interface pointer to be filled in if the interface is accessible.
Returns:
NS_OK - interface was successfully returned. NS_NOINTERFACE - interface not accessible. NS_ERROR* - method failure.

Init the controller, optionally passing a controller command table.

Parameters:
aCommandTablea command table, used internally by this controller. May be null, in which case the controller will create a new, empty table.
void nsIController::onEvent ( in string  eventName) [inherited]
void nsIControllerContext::setCommandContext ( in nsISupports  aCommandContext) [inherited]

Set a context on this controller, which is passed to commands to give them some context when they execute.

Parameters:
aCommandContextthe context passed to commands. Note that this is not addreffed by the controller, and so needs to outlive it, or be nulled out.
boolean nsIController::supportsCommand ( in string  command) [inherited]

Member Data Documentation

Definition at line 85 of file nsBaseCommandController.h.

Definition at line 84 of file nsBaseCommandController.h.

Definition at line 88 of file nsBaseCommandController.h.


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