Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: CNTDBOBS.H

Class MContactDbObserver

class MContactDbObserver;

Description

The interface for an observer that handles changes to a contact database.

It specifies a single pure virtual function which should be implemented by the observer class to test the type of the change event (see the TContactDbObserverEventType enum) and handle it.

There is no need for the observer class to explicitly test for all possible event types - the event is for information only and event types which are of no interest to the observer class can safely be ignored.

The change event type (TContactDbObserverEventType) may be augmented in future releases with additional values.

A contact database observer pointer is passed to the NewL() function for the CContactChangeNotifier class.

Members

Defined in MContactDbObserver:
HandleDatabaseEventL()


Member functions


HandleDatabaseEventL()

virtual void HandleDatabaseEventL(TContactDbObserverEvent aEvent)=0;

Description

Tests the contact database observer event type and handles it. The ID of a contact affected by the change event, if relevant, can be retrieved via TContactDbObserverEvent::iContactId.

Parameters

TContactDbObserverEvent aEvent

Provides information about the change event.