class MEikCommandObserver |
Command observers respond to user commands, and have the secondary function of creating custom controls on request for classes such as CEikToolbar, or user-defined classes.
An implementation of the pure virtual function ProcessCommandL() must be provided for each concrete class derived from MEikCommandObserver . CreateCustomCommandControlL() may also be re-implemented.
Public Member Functions | |
---|---|
IMPORT_C CCoeControl * | CreateCustomCommandControlL ( TInt ) |
void | ProcessCommandL ( TInt ) |
Protected Member Functions | |
---|---|
MEikCommandObserver () |
Private Member Functions | |
---|---|
IMPORT_C void | MEikCommandObserver_Reserved1 () |
IMPORT_C void | MEikCommandObserver_Reserved2 () |
Private Attributes | |
---|---|
TInt | iMEikCommandObserver_Reserved1 |
IMPORT_C | MEikCommandObserver | ( | ) | [protected] |
Constructor for MEikCommandObserver
IMPORT_C CCoeControl * | CreateCustomCommandControlL | ( | TInt | aControlType | ) | [virtual] |
Glue for creating custom controls.
This function can be called to create custom controls on request from their control ID. Custom controls are user-supplied control classes.
Given the ID of a custom control, this function should return a pointer to a newly-instantiated and fully constructed control. If the ID is unrecognised, NULL should be returned. The control returned will be owned by the caller.
TInt aControlType | A custom control ID. |
IMPORT_C void | MEikCommandObserver_Reserved1 | ( | ) | [private, virtual] |
Reserved for Future use
IMPORT_C void | MEikCommandObserver_Reserved2 | ( | ) | [private, virtual] |
Reserved for Future use
void | ProcessCommandL | ( | TInt | aCommandId | ) | [pure virtual] |
Processes user commands.
Derived classes must provide an implementation of this function which responds to user commands appropriately based on a user-defined ID for the command.
TInt aCommandId | ID of the command to respond to. |
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.