diff -r 4816d766a08a -r f345bda72bc4 Symbian3/PDK/Source/GUID-13D2B45C-3A2A-497A-8D6A-87BE34D1DE69.dita --- a/Symbian3/PDK/Source/GUID-13D2B45C-3A2A-497A-8D6A-87BE34D1DE69.dita Tue Mar 30 11:42:04 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-13D2B45C-3A2A-497A-8D6A-87BE34D1DE69.dita Tue Mar 30 11:56:28 2010 +0100 @@ -1,68 +1,68 @@ - - - - - -Implement -the observer functions -

An application can register as an observer of a view by implementing -the following observer interfaces. Observers can register with the View Server -as activation observers, deactivation observers or as generic observers.

- - - -

Interface

-

Notification

-

Method to override

-
- - - -

MCoeViewActivationObserver

-

View activation notification for the specified view.

-

IMPORT_C void NotifyNextActivation(TVwsViewId& aViewId, MCoeViewActivationObserver& aViewActivationObserver) -

-
- -

MCoeViewActivationObserver

-

View activation notification for any view registered with view server.

-

IMPORT_C void NotifyNextActivation(MCoeViewActivationObserver& aViewActivationObserver) -

-
- -

MCoeViewDeactivationObserver

-

View deactivation notification for the specified view.

-

IMPORT_C void NotifyNextDeactivation (TVwsViewId& aViewId, MCoeViewDeactivationObserver& aViewDeactivationObserver) -

-
- -

MCoeViewDeactivationObserver

-

View deactivation notification for any view registered with view -server.

-

IMPORT_C void NotifyNextDeactivation (MCoeViewDeactivationObserver& aViewDeactivationObserver) -

-
- - -

The following code snippet shows implementing the MCoeViewActivationObserver observer -interface class:

/** -CMCoeViewActivationObserver - implements the MCoeViewActivationObserver interface for notifications only -*/ -CMCoeViewActivationObserver* CMCoeViewActivationObserver::NewL() - { - CMCoeViewActivationObserver* self=new( ELeave ) CMCoeViewActivationObserver(); - return self; - } -void CMCoeViewActivationObserver::HandleViewActivation( const TVwsViewId& aNewlyActivatedViewId, - const TVwsViewId& aViewIdToBeDeactivated ) - {_ - LIT( Kmessage, "Notified MCoeViewActivationObserver::HandleViewActivation: Newly Active View: 0x%x - Deactivate 0x%x" ) - INFO_PRINTF2( Kmessage, aNewlyActivatedViewId.iViewUid.iUid, aViewIdToBeDeactivated.iViewUid.iUid ); - }
+ + + + + +Implement +the observer functions +

An application can register as an observer of a view by implementing +the following observer interfaces. Observers can register with the View Server +as activation observers, deactivation observers or as generic observers.

+ + + +

Interface

+

Notification

+

Method to override

+
+ + + +

MCoeViewActivationObserver

+

View activation notification for the specified view.

+

IMPORT_C void NotifyNextActivation(TVwsViewId& aViewId, MCoeViewActivationObserver& aViewActivationObserver) +

+
+ +

MCoeViewActivationObserver

+

View activation notification for any view registered with view server.

+

IMPORT_C void NotifyNextActivation(MCoeViewActivationObserver& aViewActivationObserver) +

+
+ +

MCoeViewDeactivationObserver

+

View deactivation notification for the specified view.

+

IMPORT_C void NotifyNextDeactivation (TVwsViewId& aViewId, MCoeViewDeactivationObserver& aViewDeactivationObserver) +

+
+ +

MCoeViewDeactivationObserver

+

View deactivation notification for any view registered with view +server.

+

IMPORT_C void NotifyNextDeactivation (MCoeViewDeactivationObserver& aViewDeactivationObserver) +

+
+ + +

The following code snippet shows implementing the MCoeViewActivationObserver observer +interface class:

/** +CMCoeViewActivationObserver - implements the MCoeViewActivationObserver interface for notifications only +*/ +CMCoeViewActivationObserver* CMCoeViewActivationObserver::NewL() + { + CMCoeViewActivationObserver* self=new( ELeave ) CMCoeViewActivationObserver(); + return self; + } +void CMCoeViewActivationObserver::HandleViewActivation( const TVwsViewId& aNewlyActivatedViewId, + const TVwsViewId& aViewIdToBeDeactivated ) + {_ + LIT( Kmessage, "Notified MCoeViewActivationObserver::HandleViewActivation: Newly Active View: 0x%x - Deactivate 0x%x" ) + INFO_PRINTF2( Kmessage, aNewlyActivatedViewId.iViewUid.iUid, aViewIdToBeDeactivated.iViewUid.iUid ); + }
\ No newline at end of file