EPOC   SDK Home Glossary Indexes Previous Next Up

CContactChangeNotifier class


Contents


CContactChangeNotifier class — Change notifier 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.

Derivation

CBase

Abstract: CBase behaviour.

Defined in

cntdb.h

Link against

cntmodel.lib

Description

The CContactChangeNotifier class is used to receive events reporting changes to a contact database.

After the change notifier has been created using NewL(), it will notify the specified observer whenever a change takes place to the database.


Construction and destruction


NewL() — Allocate and construct

static CContactChangeNotifier* NewL(CContactDatabase& aDatabase, MContactDbObserver* aObserver);

Description

Use this function to allocate and construct a new contacts database change notifier.

Arguments

CContactDatabase& aDatabase

The contacts database to observe.

MContactDbObserver* aObserver

The observer for aDatabase. Its HandleDatabaseEventL() function will be called whenever a change occurs to the database.

Return value

CContactChangeNotifier*

Pointer to the newly created contacts database change notifier.


~CContactChangeNotifier() — Destructor

~CContactChangeNotifier();

Description

The destructor removes the observer from the contacts database.

EPOC       SDK Home Glossary Indexes Previous Next Up