Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <COEVIEW.H>
Link against: cone.lib

Class MCoeView

class MCoeView;

Description

Specifies an interface for views.

This class should be implemented by all application views.

Members

Defined in MCoeView:


Construction and destruction


MCoeView()

protected: IMPORT_C MCoeView();

Description

[Top]


Member functions


ViewId()const

virtual TVwsViewId ViewId() const=0;

Description

Returns a TVwsViewId uniquely identifying the view.

Return value

TVwsViewId

Represents a view in the server.


ViewActivatedL(const TVwsViewId &,TUid,const TDesC8 &)

private: 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()

private: 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.


ViewScreenDeviceChangedL()

protected: IMPORT_C virtual TVwsViewIdAndMessage ViewScreenDeviceChangedL();

Description

Handles a change to the screen device returning the value of the TVwsViewIdAndMessage object that describes what the view arcitecture should do next. Returns the id of the active view by default.

Return value

TVwsViewIdAndMessage


ViewConstructL()

private: IMPORT_C virtual void ViewConstructL();

Description

Constructs the view. The view architecture can construct registered views in the background or on first activation. Empty by default.


ViewScreenModeCompatible(TInt)

protected: IMPORT_C virtual TBool ViewScreenModeCompatible(TInt aScreenMode);

Description

By default, Views are compatible with all screen modes.

Parameters

TInt aScreenMode

Return value

TBool


PrepareForViewActivation()

private: IMPORT_C virtual void PrepareForViewActivation();

Description

Checks whether the view being activated has the preferred screen mode or not. Empty by default.


MCoeView_Reserved_2()

private: IMPORT_C virtual void MCoeView_Reserved_2();

Description


MCoeView_Reserved_3()

private: IMPORT_C virtual void MCoeView_Reserved_3();

Description