MCoeMessageObserver Class Reference

#include <mw/coemain.h>

Link against: cone.lib

class MCoeMessageObserver
Public Member Enumerations
enumTMessageResponse { EMessageNotHandled, EMessageHandled }
Public Member Functions
pure virtual TMessageResponse HandleMessageL(TUint32, TUid, const TDesC8 &)
Protected Member Functions
MCoeMessageObserver()

Detailed 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.

Member Enumeration Documentation

Enum TMessageResponse

Message response flags.

EnumeratorValueDescription
EMessageNotHandled

Message not handled.

EMessageHandled

Message handled.

Constructor & Destructor Documentation

MCoeMessageObserver ( )

IMPORT_CMCoeMessageObserver()[protected]

Member Function Documentation

HandleMessageL ( TUint32, TUid, const TDesC8 & )

TMessageResponse HandleMessageL(TUint32aClientHandleOfTargetWindowGroup,
TUidaMessageUid,
const TDesC8 &aMessageParameters
)[pure virtual]

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
aClientHandleOfTargetWindowGroupThe window group that the message was sent to. Many implementations will not need this information.
aMessageUidThe message UID.
aMessageParametersThe message parameters.
Return Value
Indicates whether the message was handled or not handled by the function.