Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <EIKCMOBS.H>
Link against: eikcore.lib

Class MEikCommandObserver

class MEikCommandObserver;

Description

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 MEikCommandObserver::ProcessCommandL(TInt) must be provided for each concrete class derived from MEikCommandObserver. MEikCommandObserver::CreateCustomCommandControlL(TInt) may also be re-implemented.

Members

Defined in MEikCommandObserver:


Construction and destruction


MEikCommandObserver()

protected: IMPORT_C MEikCommandObserver();

Description

Constructor for MEikCommandObserver

[Top]


Member functions


ProcessCommandL(TInt)

virtual void ProcessCommandL(TInt aCommandId)=0;

Description

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.

Parameters

TInt aCommandId

ID of the command to respond to.


CreateCustomCommandControlL(TInt)

IMPORT_C virtual CCoeControl* CreateCustomCommandControlL(TInt aControlType);

Description

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.

Parameters

TInt aControlType

A custom control ID.

Return value

CCoeControl *

By default, NULL.


MEikCommandObserver_Reserved1()

private: IMPORT_C virtual void MEikCommandObserver_Reserved1();

Description

Reserved for Future use


MEikCommandObserver_Reserved2()

private: IMPORT_C virtual void MEikCommandObserver_Reserved2();

Description

Reserved for Future use