THuiCustomEventCommand Class Reference

class THuiCustomEventCommand : public THuiObjectCommand

THuiCustomEventCommand is a command that sends a custom event. The command can be sent to any individual MHuiEventHandler derived object or broadcasted to all CHuiControl derived objects.

Inherits from

Constructor & Destructor Documentation

THuiCustomEventCommand(TInt, MHuiEventHandler *)

IMPORT_C THuiCustomEventCommand ( TInt aEventParam,
MHuiEventHandler * aRecipient = NULL
)

Parameters

TInt aEventParam Parameter of the custom event.
MHuiEventHandler * aRecipient = NULL Optional recipient of the event. If NULL then event is broadcasted.

Member Functions Documentation

CommandExtension(const TUid &, TAny **)

IMPORT_C void CommandExtension ( const TUid & aExtensionUid,
TAny ** aExtensionParams
) [protected, virtual]

Parameters

const TUid & aExtensionUid
TAny ** aExtensionParams

ExecuteL(CHuiEnv &)

IMPORT_C void ExecuteL ( CHuiEnv & aEnv ) const [virtual]

Executes the command.

Parameters

CHuiEnv & aEnv The environment in which the command is being executed.

Param()

IMPORT_C TInt Param ( ) const

Determines the custom event parameter of the command.

Recipient()

IMPORT_C MHuiEventHandler * Recipient ( ) const

Returns the recipient of the event, or NULL if none defined.

Size()

IMPORT_C TInt Size ( ) const [virtual]

Returns the size of the command.

Member Data Documentation

TInt iEventParam

TInt iEventParam [private]

Custom event parameter. Application cau use re_interpret_cast to send pointer as param

TInt iSpare1

TInt iSpare1 [private]

TInt iSpare2

TInt iSpare2 [private]