Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: cntdb.h
Link against: cntmodel.lib

Class CContactChangeNotifier

CContactChangeNotifier

Support

Supported from 5.0

Description

Receives events reporting changes to a contact database.

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

Derivation

CBaseBase class for all classes to be instantiated on the heap
CContactChangeNotifierReceives events reporting changes to a contact database

Defined in CContactChangeNotifier:
NewL(), ~CContactChangeNotifier()

Inherited from CBase:
operator new()


Construction and destruction


NewL()

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

Description

Allocates and constructs a new contact database change notifier.

Parameters

CContactDatabase& aDatabase

The contact database to observe.

MContactDbObserver* aObserver

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

Return value

CContactChangeNotifier*

Pointer to the newly created contact database change notifier.


~CContactChangeNotifier()

~CContactChangeNotifier();

Description

Removes the observer from the contact database.