EPOC   SDK Home Glossary Indexes Previous Next Up

MContactDbObserver class


Contents


MContactDbObserver class — Protocol for contact database observer

Section Contents


Overview

Compatibility

Applications that use this class will not work correctly on a version of EPOC earlier than ER5.

Defined in

cntdbobs.h

Description

Specifies the mixin protocol for a contact database 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.


Handle change to contact database


HandleDatabaseEventL() — Handle change to database

void HandleDatabaseEventL(TContactDbObserverEvent aEvent);

Description

The implementation of this function should test the event type, (TContactDbObserverEvent::iType) and handle it. The ID of a contact affected by the change event, if relevant, can be retrieved via TContactDbObserverEvent::iContactId.

Arguments

TContactDbObserverEvent aEvent

Provides information about the change event.

EPOC       SDK Home Glossary Indexes Previous Next Up