class TContactIter |
Iterates through the sorted contact items in a contact database.
A value of KNullContactId is returned by the iterator if a requested item cannot be found.
Public Member Functions | |
---|---|
TContactIter ( CContactDatabase &) | |
IMPORT_C TContactItemId | FirstL () |
IMPORT_C void | GotoL ( TContactItemId ) |
IMPORT_C TContactItemId | LastL () |
IMPORT_C TContactItemId | NextL () |
IMPORT_C TContactItemId | PreviousL () |
IMPORT_C void | Reset () |
Private Member Functions | |
---|---|
void | GotoIndexL ( TInt ) |
Private Attributes | |
---|---|
TContactItemId | iCursorId |
CContactDatabase & | iDatabase |
IMPORT_C | TContactIter | ( | CContactDatabase & | aDatabase | ) |
Constructs the object with a contact database.
CContactDatabase & aDatabase | The contact database over which to iterate. |
IMPORT_C void | GotoL | ( | TContactItemId | aContactId | ) |
Moves to the specified contact item.
TContactItemId aContactId | A contact item ID. Must not have a value of KNullContactId, or the function raises a panic. |
IMPORT_C TContactItemId | NextL | ( | ) |
Moves to the next contact item in the database.
On a newly initialised TContactIter , this function moves to the first item.
IMPORT_C TContactItemId | PreviousL | ( | ) |
Moves to the previous contact item in the database.
Note: you must not call this function on a newly initialised database, otherwise the function raises a panic.
IMPORT_C void | Reset | ( | ) |
Resets the iterator to its initialised state, so that a subsequent call to NextL() goes to the first item.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.