Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Contact Views

Contact Views provide an easy way for a UI to create a view containing sorted contact data. A Contact View is a sorted collection of Contact Items that is continually updated on receipt of observer events from the Contacts Model. Most Contacts Model clients require views in which the contacts are either sorted by type (contacts with email addresses, for example) or by their position between two characters.

There are two main types of view: For Local views (CContactLocalView) the data is allocated to the client’s memory. For Remote views (CContactRemoteView) data is allocated within the memory of the contact's server and can be shared by multiple clients.

Within the server the local view object is associated with each client side remote view object. This configuration allows multiple clients to share the same server side view objects, thereby reducing the overhead associated with initial sorting of the view data, and keeping it in sync with the underlying data. Remote views should therefore be used when the same view is likely to be needed by more than one client.

The Contact Views library contains more specialised views and allows clients to specify views by field, methods and sort order. The CContactViewBase class includes:

CONTACTS MODEL VIEW CLASSES

CONTACTS MODEL VIEW CLASSES