diff -r 000000000000 -r 89d6a7a84779 Symbian3/SDK/Source/GUID-6167C2F2-BC5B-5B10-BD5D-7702BE4112F6.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-6167C2F2-BC5B-5B10-BD5D-7702BE4112F6.dita Thu Jan 21 18:18:20 2010 +0000 @@ -0,0 +1,60 @@ + + + + + +View +Server Tutorial +

The UI Control Framework (CONE) provides CCoeAppUi that +provides an interface to the View Server, which enables seamless switching +between different views across various applications.

+ +
Introduction

The UI framework built on Cone/uikon +can make a choice to use the View Server.

The view architecture allows +applications to make and receive requests to show a particular view of their +data. It allows applications to have integration between their user interfaces. +This particularly allows the user to navigate through the UI on the basis +of the task they are working on, rather than perceiving separate applications. +For example, an application provides a view of a given Contact, any other +application may display a contact using that view.

Views are UI controls +that are derived from the MCoeView abstract view interface +and display application data. Typically views are top-level window-owning +controls. Each view is given a unique identifier of type TVwsViewId. TVwsViewId is +a combination of the UID of the application and the UID of the view within +the application. An application participating in the view switching must complete +the steps given in the procedure section.

+
Procedure
    +
  1. Create +an instance of CCoeAppUi

  2. +
  3. Implement +the observer functions to get notification on events, if required.

  4. +
  5. Derive +a class from the MCoeView class.

  6. +
  7. Add +the view to the control stack to receive key events.

  8. +
  9. Register +the view with the View Server.

  10. +
  11. Perform one or more +of the following tasks:

      +
    1. Activate +a view through the client session.

      If the view which has to +be activated is not registered with the server when an activation request +arrives, the view server starts the application associated with that view.

    2. +
    3. Set +a view as a default view.

    4. +
    5. Deregister +a view, if required.

    6. +
  12. +
+
+View Server +Overview +Control Stack + +
\ No newline at end of file