Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: coemain.h
Link against: cone.lib

Class MCoeMessageObserver

class MCoeMessageObserver;

Description

Interface for handling incoming window server messages.

This interface is used to enable FEPs to keep their settings synchronised across all running instances.

Anything that needs to be notified of messages that get sent by the window server's message-sending service should derive from this class and override its pure virtual function.

In addition, derived classes also need to call CCoeEnv::AddMessageObserverL() during construction and CCoeEnv::RemoveMessageObserver() in their destructors.

Members

Defined in MCoeMessageObserver:
EMessageHandled, EMessageNotHandled, HandleMessageL(), MCoeMessageObserver(), MCoeMessageObserver_Reserved_1(), MCoeMessageObserver_Reserved_2(), TMessageResponse


Construction and destruction


MCoeMessageObserver()

protected: IMPORT_C MCoeMessageObserver();

Description

[Top]


Member functions


HandleMessageL()

virtual TMessageResponse HandleMessageL(TUint32 aClientHandleOfTargetWindowGroup, TUid aMessageUid, const TDesC8 &aMessageParameters)=0;

Description

Handles window server messages.

Implementations should return EMessageHandled if they are able to handle the message, or EMessageNotHandled if the message is not appropriate to this observer.

Parameters

TUint32 aClientHandleOfTargetWindowGroup

The window group that the message was sent to. Many implementations will not need this information.

TUid aMessageUid

The message UID.

const TDesC8 &aMessageParameters

The message parameters.

Return value

TMessageResponse

Indicates whether the message was handled or not handled by the function.


MCoeMessageObserver_Reserved_1()

private: virtual IMPORT_C void MCoeMessageObserver_Reserved_1();

Description


MCoeMessageObserver_Reserved_2()

private: virtual IMPORT_C void MCoeMessageObserver_Reserved_2();

Description

[Top]


Member enumerations


Enum TMessageResponse

TMessageResponse

Description

Message response flags.

EMessageNotHandled

Message not handled.

EMessageHandled

Message handled.