TAlfCustomEventCommand Class Reference

class TAlfCustomEventCommand : public TAlfObjectCommand

TAlfCustomEventCommand is a command that sends a custom event. The command can be sent to any individual MAlfEventHandler derived object or broadcasted to all Control derived objects.

Usage

  //Create custom Event command, as iControl implements, MAlfEventHandler,
  // it will recieve custom event
  TAlfCustomEventCommand command( KCustomCommandIdDefault, iControl );
 
 //Send command
  iEnv->Send( command, 1 );

Inherits from

Constructor & Destructor Documentation

TAlfCustomEventCommand(TInt, MAlfEventHandler *, TInt)

IMPORT_CTAlfCustomEventCommand(TIntaEventParam,
MAlfEventHandler *aRecipient = NULL,
TIntaEventData = 0
)

Parameters

TInt aEventParamParameter of the custom event.
MAlfEventHandler * aRecipient = NULLOptional recipient of the event.
TInt aEventData = 0Optional event data identifier.

Member Functions Documentation

CommandExtension(const TUid &, TAny **)

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

Parameters

const TUid & aExtensionUid
TAny ** aExtensionParams

EventData()

IMPORT_C TIntEventData()const

Returns the event data of the command.

ExecuteL(CAlfEnv &)

IMPORT_C voidExecuteL(CAlfEnv &aEnv)const [virtual]

Executes the command.

Parameters

CAlfEnv & aEnvThe environment in which the command is being executed.

Param()

IMPORT_C TIntParam()const

Determines the custom event parameter of the command.

Recipient()

IMPORT_C MAlfEventHandler *Recipient()const

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

Size()

IMPORT_C TIntSize()const [virtual]

Returns the size of the command.

Member Data Documentation

TInt iEventData

TInt iEventData[private]

Event data.

TInt iEventParam

TInt iEventParam[private]

Custom event parameter. TodoCould be a pointer as well?

TInt iSpare1

TInt iSpare1[private]

TInt iSpare2

TInt iSpare2[private]