CPbkContactIter Class Reference

#include <app/CPbkContactIter.h>

class CPbkContactIter : public CBase

Inherits from

  • CPbkContactIter

    Detailed Description

    Phonebook contact iterator. Only iterates through recognised Phonebook contact cards, not groups or templates. NextL jumps over any other contacts.

    Member Attribute Documentation

    __DECLARE_TEST

    __DECLARE_TEST

    Constructor & Destructor Documentation

    ~CPbkContactIter ( )

    ~CPbkContactIter()

    Destructor.

    Member Function Documentation

    CurrentL ( )

    IMPORT_C CPbkContactItem *CurrentL()const

    Returns the current Phonebook contact, NULL if none.

    Returns: The contact item the iterator is currently pointing at.

    FirstL ( )

    IMPORT_C TContactItemIdFirstL()

    Intializes the iterator to the first Phonebook contact.

    Returns: Id of the first Phonebook contact, KNullContactId if none found.

    GetCurrentL ( )

    IMPORT_C CPbkContactItem *GetCurrentL()const

    Returns the current Phonebook contact, NULL if none. Caller is responsible for deleting the contact, thus ownership of the contact item is passed to the client.

    Returns: The contact item the iterator is currently pointing at.

    NewL ( CPbkContactEngine &, TBool )

    IMPORT_C CPbkContactIter *NewL(CPbkContactEngine &aEngine,
    TBoolaUseMinimalRead = EFalse
    )[static]

    Creates a new instace of this class.

    ParameterDescription
    aEnginePhonebook engine whose contacts to iterate.
    aUseMinimalReadUse ReadMinimalContactL instead of ReadContactL to read the contacts.

    Returns: Contact iterator instance.

    NewLC ( CPbkContactEngine &, TBool )

    IMPORT_C CPbkContactIter *NewLC(CPbkContactEngine &aEngine,
    TBoolaUseMinimalRead = EFalse
    )[static]

    Same as NewL but leaves the created object on the cleanup stack. Creates a new instace of this class.

    ParameterDescription
    aEnginePhonebook engine whose contacts to iterate.
    aUseMinimalReadUse ReadMinimalContactL instead of ReadContactL to read the contacts.

    Returns: Contact iterator instance.

    NextL ( )

    IMPORT_C TContactItemIdNextL()

    Advances the iterator to the next Phonebook contact.

    Returns: Id of the next Phonebook contact, KNullContactId if none found.

    Reset ( )

    IMPORT_C voidReset()

    Resets the iterator to null state.