Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: coeview.h
Link against: cone.lib

Class MCoeView

MCoeView

Support

Supported from 6.0

Description

Specifies an interface for views. This class should be implemented by all application views.

Defined in MCoeView:
ViewActivatedL(), ViewDeactivated(), ViewId()


Member functions


ViewId()

virtual TVwsViewId ViewId() const=0;

Description

Returns a TVwsViewId uniquely identifying the view.

Return value

TVwsViewId

Represents a view in the server.


ViewActivatedL()

virtual void ViewActivatedL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,const TDesC8& aCustomMessage)=0;

Description

Takes any action required when a view is activated. Reimplemented versions should read the contents of aCustomMessage for any message type identified by aCustomMessageId that the view understands.

The ID of the previously active view aPrevViewId is supplied so that the activated view can subsequently switch back to the caller if required.

Parameters

const TVwsViewId& aPrevViewId

The UID of the previously active view.

TUid aCustomMessageId

Message type.

Const TDesC8& aCustomMessage

Message contents.


ViewDeactivated()

virtual void ViewDeactivated()=0;

Description

Takes any action that is required following deactivation of the view. This reduces the work required of the window server.