class PCommandSource: public PNotifierFunction

This class represents a command source.

Inheritance:


Public Methods

[more] PCommandSource ( const char * commandName )
Create a command source notifier that will connect a PCommandSink using the same command name string.
[more]virtual void Call ( PObject & notifier, INT extra ) const
Notifier class callback function.

Protected Fields

[more]PString name
Name of the command to execute.


Inherited from PNotifierFunction:

Protected Fields

ovoid* object


Inherited from PSmartObject:

Protected Fields

ounsigned referenceCount


Inherited from PObject:

Public

Run Time Type functions

Comparison functions

I/O functions

Miscellaneous functions


Documentation

This class represents a command source. This works in conjunction with the PCommandSink and PCommandManager classes to implement dynamically bound commands on PTopLevelWindow or PMDIDocWindow classes.

The user does not directly create descendents of this class. Instances of this class are created by the PCREATE_COMMAND macro. These are instances of the PNotifier class and may be attached to PMenuItem or PControl instances via the PControl::SetNotifier() function in the same way as other callback functions.

o PCommandSource( const char * commandName )
Create a command source notifier that will connect a PCommandSink using the same command name string.
Parameters:
commandName - Name of the command to call.

ovirtual void Call( PObject & notifier, INT extra ) const
Notifier class callback function. This will connect to the PCommandSink of the same command name by using the information in the PCommandManager instance contained in the PApplication descendent instance.

The appropriate callback function, execute, enable or value is called according to the value of the

Parameters:
notifier - Object executing the notification.
extra - Extra information about the notification.

oPString name
Name of the command to execute.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.