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 );
Constructor & Destructor Documentation
TAlfCustomEventCommand(TInt, MAlfEventHandler *, TInt)
Parameters
TInt aEventParam | Parameter of the custom event. |
MAlfEventHandler * aRecipient = NULL | Optional recipient of the event. |
TInt aEventData = 0 | Optional event data identifier. |
Member Functions Documentation
CommandExtension(const TUid &, TAny **)
IMPORT_C void | CommandExtension | ( | const TUid & | aExtensionUid, |
| TAny ** | aExtensionParams |
| ) | [protected, virtual] |
Parameters
const TUid & aExtensionUid | |
TAny ** aExtensionParams | |
EventData()
IMPORT_C TInt | EventData | ( | ) | const |
Returns the event data of the command.
ExecuteL(CAlfEnv &)
IMPORT_C void | ExecuteL | ( | CAlfEnv & | aEnv | ) | const [virtual] |
Parameters
CAlfEnv & 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()
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] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.