Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: cntdbobs.h
Link against:

Class MContactDbObserver

MContactDbObserver

Support

Supported from 5.0

Description

Specifies the mixin protocol for an observer to handle changes to a contact database. It should be inherited by classes which implement this protocol.

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.

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

Defined in MContactDbObserver:
HandleDatabaseEventL()


Handle change to contact database


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.