Location:
cntdb.h
Link against: cntmodel.lib
TContactIter
Supported from 5.0
Iterates through the sorted contact items in a contact database. A
value of KNullContactId
is returned by the iterator if a requested
contact item cannot be found.
Defined in TContactIter
:
FirstL()
, GotoL()
, LastL()
, NextL()
, PreviousL()
, Reset()
, TContactIter()
TContactIter(CContactDatabase& aDatabase);
Constructs the object with a contact database.
|
TContactItemId FirstL();
Goes to the first contact item in the database.
|
TContactItemId NextL();
Goes to the next contact item in the database. On a newly
initialised TContactIter
, this function goes to the first
item.
|
TContactItemId PreviousL();
Goes to the previous contact item in the database.
Notes
You must not call this function on a newly initialised database, otherwise the function raises a panic.
|
TContactItemId LastL();
Goes to the last contact item in the database.
|
void GotoL(TContactItemId aContactId);
Goes to the specified contact item.
|
|
void Reset();
Resets the iterator to its initialised state, so that a subsequent call
to NextL()
goes to the first item.