CPbkContactEngine Class Reference

class CPbkContactEngine : public CBase

The main entrypoint to the Phonebook contact engine. The Phonebook contact engine builds on top of the Symbian Contacts model and implements platform specific functionality and policies that can be reused and followed by clients to implement functionality that is better integrated to the platform functionality. Functionality like contact field typing is implemented by this engine.

Inherits from

Nested Classes and Structures

Public Member Functions
~CPbkContactEngine()
IMPORT_C voidAddContactToGroupL(TContactItemId, TContactItemId)
IMPORT_C TContactItemIdAddNewContactL(CPbkContactItem &, TBool)
IMPORT_C CContactViewBase &AllContactsView()
IMPORT_C CContactViewBase &AllGroupsViewL()
IMPORT_C voidCancelCompress()
IMPORT_C TBoolCheckCompress()
IMPORT_C voidCheckFileSystemSpaceAndCompressL()
IMPORT_C voidCloseContactL(TContactItemId)
IMPORT_C voidCommitContactGroupL(CContactGroup &, TBool)
IMPORT_C voidCommitContactL(CPbkContactItem &, TBool)
IMPORT_C voidCompressL()
IMPORT_C CPbkConstants *Constants()
IMPORT_C MPbkContactNameFormat &ContactNameFormat()
IMPORT_C CPbkContactChangeNotifier *CreateContactChangeNotifierL(MPbkContactDbObserver *)
IMPORT_C CContactGroup *CreateContactGroupL(const TDesC &, TBool)
IMPORT_C CPbkContactIter *CreateContactIteratorLC(TBool)
IMPORT_C CPbkContactItem *CreateEmptyContactL()
IMPORT_C CContactDatabase &Database()
IMPORT_C voidDeleteContactGroupL(TContactItemId, TBool)
IMPORT_C voidDeleteContactL(TContactItemId, TBool)
IMPORT_C voidDeleteContactsL(const CContactIdArray &, TBool)
IMPORT_C voidDeleteContactsOnBackgroundL(const CContactIdArray &)
IMPORT_C TContactItemIdDuplicateContactL(TContactItemId, TBool)
IMPORT_C const CPbkFieldsInfo &FieldsInfo()
IMPORT_C CContactViewBase &FilteredContactsViewL(TInt)
IMPORT_C CPbkIdleFinder *FindAsyncL(const TDesC &, const CPbkFieldIdArray *, MIdleFindObserver *)
IMPORT_C CContactIdArray *FindLC(const TDesC &, const CPbkFieldIdArray *)
IMPORT_C RFs &FsSession()
IMPORT_C HBufC *GetContactTitleL(const CPbkContactItem &)
IMPORT_C HBufC *GetContactTitleOrNullL(const MPbkFieldDataArray &)
IMPORT_C TContactItemIdGetSpeedDialFieldL(TInt, TDes &)
IMPORT_C TBoolIsSpeedDialAssigned(const CPbkContactItem &, TInt)
IMPORT_C TBoolIsTitleField(TPbkFieldId)
IMPORT_C CContactIdArray *MatchPhoneNumberL(const TDesC &, const TInt)
IMPORT_C TPbkNameOrderNameDisplayOrderL()
IMPORT_C TCharNameSeparator()
IMPORT_C CPbkContactEngine *NewL(RFs *)
IMPORT_C CPbkContactEngine *NewL(const TDesC &, TBool, RFs *)
IMPORT_C CContactGroup *OpenContactGroupL(TContactItemId)
IMPORT_C CContactGroup *OpenContactGroupLCX(TContactItemId)
IMPORT_C CPbkContactItem *OpenContactL(TContactItemId)
IMPORT_C CPbkContactItem *OpenContactLCX(TContactItemId)
IMPORT_C CContactGroup *ReadContactGroupL(TContactItemId)
IMPORT_C CPbkContactItem *ReadContactL(TContactItemId, const CPbkFieldIdArray *)
IMPORT_C CPbkContactItem *ReadContactLC(TContactItemId, const CPbkFieldIdArray *)
IMPORT_C CPbkContactItem *ReadMinimalContactLC(TContactItemId)
IMPORT_C voidRemoveContactFromGroupL(TContactItemId, TContactItemId)
IMPORT_C voidRemoveSpeedDialFieldL(TContactItemId, TInt)
IMPORT_C CPbkContactEngine *ReplaceL(RFs *)
IMPORT_C voidSetCompressUi(MPbkCompressUi *)
IMPORT_C voidSetFieldAsSpeedDialL(CPbkContactItem &, TInt, TInt)
IMPORT_C voidSetNameDisplayOrderL(TPbkNameOrder)
IMPORT_C voidSetNameSeparatorL(TChar)
const CPbkSortOrderManager &SortOrderManager()
IMPORT_C CPbkContactEngine *Static()
IMPORT_C const TDesC &UnnamedTitle()
Private Member Functions
CPbkContactEngine()
voidAddObserverL(MPbkContactDbObserver *)
voidConnectFsL(RFs *)
voidConstructL(const TDesC *, TBool, RFs *)
voidCreateDbConnectionL(const TDesC *, TBool, TInt &, TBool)
voidHandleDatabaseEventL(TContactDbObserverEvent)
voidReadResourcesL(TBool &)
voidRemoveObserver(MPbkContactDbObserver *)
voidSendEventToAllObservers(const TContactDbObserverEvent &)
voidSendImmidiateEventToAllObservers(TContactDbObserverEventType, TContactItemId, TBool)
voiddoDeleteContactL(TContactItemId)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enumTPbkNameOrder { EPbkNameOrderLastNameFirstName = 0, EPbkNameOrderFirstNameLastName, EPbkNameOrderNotDefined }
Private Attributes
CContactDbConnection *iDbConnection
TUid iDtorIDKey
CPbkEngineExtension *iExtension
TInt iFreeSpaceRequiredToDelete
RFs iFs
CArrayPtr< MPbkContactDbObserver > *iObservers
RFs iOwnFs
CPbkConstants *iPbkConstants
CPbkFieldsInfo *iPbkFieldsInfo
CPbkSINDHandlerInterface *iSINDHandler
TChar iSeparator
RSharedDataClient *iSharedDataClient
TBool iUseSeparator

Constructor & Destructor Documentation

CPbkContactEngine()

CPbkContactEngine()[private, inline]

~CPbkContactEngine()

~CPbkContactEngine()

Destructor. Destroys this object and closes the contact database connection. REComSession::FinalClose() is called. Notice that FinalClose -call releases resource handles of already destroyed ECom plugins also outside CPbkContactEngine. See REComSession documentation.

Member Functions Documentation

AddContactToGroupL(TContactItemId, TContactItemId)

IMPORT_C voidAddContactToGroupL(TContactItemIdaItemId,
TContactItemIdaGroupId
)

Adds a Contact to a group.

CContactDatabase::AddContactToGroupL

Parameters

TContactItemId aItemIdContact to be added to group.
TContactItemId aGroupIdGroup where the contact will be added to.

AddNewContactL(CPbkContactItem &, TBool)

IMPORT_C TContactItemIdAddNewContactL(CPbkContactItem &aContact,
TBoolaImmediateNotify = EFalse
)

Adds a new contact to the contact database.

CContactDatabase::AddNewContactL

Parameters

CPbkContactItem & aContactThe new contact item to add.
TBool aImmediateNotify = EFalseSend notification to observers immediately. NOTE: send immediately will result in observers (MPbkContactDbObserver) receiving the event twice!

AddObserverL(MPbkContactDbObserver *)

voidAddObserverL(MPbkContactDbObserver *aObserver)[private]

Parameters

MPbkContactDbObserver * aObserver

AllContactsView()

IMPORT_C CContactViewBase &AllContactsView()

Returns a contact view object containing all the contacts in the database.

CContactViewBase

AllGroupsViewL()

IMPORT_C CContactViewBase &AllGroupsViewL()

Returns a contact view object containing all the groups in the database.

CContactViewBase

CancelCompress()

IMPORT_C voidCancelCompress()

CheckCompress()

IMPORT_C TBoolCheckCompress()

CheckFileSystemSpaceAndCompressL()

IMPORT_C voidCheckFileSystemSpaceAndCompressL()

CloseContactL(TContactItemId)

IMPORT_C voidCloseContactL(TContactItemIdaContactId)

Closes a previously opened contact item without saving changes. CContactDatabase::CloseContactL

Parameters

TContactItemId aContactIdContact item to be closed.

CommitContactGroupL(CContactGroup &, TBool)

IMPORT_C voidCommitContactGroupL(CContactGroup &aGroup,
TBoolaImmediateNotify = EFalse
)

Commits changes to a contact group to the database.

CContactDatabase::CommitContactL

Parameters

CContactGroup & aGroup
TBool aImmediateNotify = EFalseSend notification to observers immediately. NOTE: send immediately will result in observers (MPbkContactDbObserver) receiving the event twice!

CommitContactL(CPbkContactItem &, TBool)

IMPORT_C voidCommitContactL(CPbkContactItem &aContact,
TBoolaImmediateNotify = EFalse
)

Commit changes to a previously opened contact item into the contact database.

CContactDatabase::CommitContactL

Parameters

CPbkContactItem & aContactContact item to be updated in the database.
TBool aImmediateNotify = EFalseSend notification to observers immediately. NOTE: send immediately will result in observers (MPbkContactDbObserver) receiving the event twice!

CompressL()

IMPORT_C voidCompressL()

ConnectFsL(RFs *)

voidConnectFsL(RFs *aRfs)[private, inline]

Parameters

RFs * aRfs

Constants()

IMPORT_C CPbkConstants *Constants()

ConstructL(const TDesC *, TBool, RFs *)

voidConstructL(const TDesC *aFileName,
TBoolaReplace,
RFs *aFs
)[private]

Parameters

const TDesC * aFileName
TBool aReplace
RFs * aFs

ContactNameFormat()

IMPORT_C MPbkContactNameFormat &ContactNameFormat()const

CreateContactChangeNotifierL(MPbkContactDbObserver *)

IMPORT_C CPbkContactChangeNotifier *CreateContactChangeNotifierL(MPbkContactDbObserver *aObserver)

Creates and returns a new CPbkContactChangeNotifier for the default contact database. The returned object attaches aObserver to this engine instance as long as the object exists.

CPbkContactChangeNotifier MPbkContactDbObserver

Parameters

MPbkContactDbObserver * aObserverObserver to attach to this object.

CreateContactGroupL(const TDesC &, TBool)

IMPORT_C CContactGroup *CreateContactGroupL(const TDesC &aGroupLabel,
TBoolaInTransaction = EFalse
)

Creates a new contact group.

CContactDatabase::CreateContactGroupL

Parameters

const TDesC & aGroupLabelGroup name.
TBool aInTransaction = EFalseSee Symbian Contacts Model documentation for CContactDatabase::CreateContactGroupL documentation.

CreateContactIteratorLC(TBool)

IMPORT_C CPbkContactIter *CreateContactIteratorLC(TBoolaUseMinimalRead = EFalse)

Returns a Phonebook contact iterator. CPbkContactIter::NewL. CContactDatabase::ReadMinimalContactL

Parameters

TBool aUseMinimalRead = EFalseIf ETrue the iterator will use the Symbian Contacts model CContactDatabase::ReadMinimalContactL, EFalse will read all the contact fields. Default behaviour is to read all fields.

CreateDbConnectionL(const TDesC *, TBool, TInt &, TBool)

voidCreateDbConnectionL(const TDesC *aFileName,
TBoolaReplace,
TInt &aDbOpenError,
TBoolaSettingsVisible
)[private, inline]

Parameters

const TDesC * aFileName
TBool aReplace
TInt & aDbOpenError
TBool aSettingsVisible

CreateEmptyContactL()

IMPORT_C CPbkContactItem *CreateEmptyContactL()

Returns a new contact card with default fields.

Database()

IMPORT_C CContactDatabase &Database()

Returns the underlying CContactDatabase object. Use only if this class's API is not enough for your purposes.

CContactDatabase

DeleteContactGroupL(TContactItemId, TBool)

IMPORT_C voidDeleteContactGroupL(TContactItemIdaContactId,
TBoolaImmediateNotify = EFalse
)

Deletes a contact group from the database. CContactDatabase::DeleteContactL

Parameters

TContactItemId aContactIdContact group to be deleted.
TBool aImmediateNotify = EFalseSend notification to observers immediately. NOTE: send immediately will result in observers (MPbkContactDbObserver) receiving the event twice!

DeleteContactL(TContactItemId, TBool)

IMPORT_C voidDeleteContactL(TContactItemIdaContactId,
TBoolaImmediateNotify = EFalse
)

Deletes a contact item from the database. CContactDatabase::DeleteContactL

Parameters

TContactItemId aContactIdContact item to be deleted.
TBool aImmediateNotify = EFalseSend notification to observers immediately. NOTE: send immediately will result in observers (MPbkContactDbObserver) receiving the event twice!

DeleteContactsL(const CContactIdArray &, TBool)

IMPORT_C voidDeleteContactsL(const CContactIdArray &aContactIds,
TBoolaImmediateNotify = EFalse
)

Deletes multiple contact items from the database. CContactDatabase::DeleteContactsL

Parameters

const CContactIdArray & aContactIdsContact items to be deleted.
TBool aImmediateNotify = EFalseSend notification to observers immediately. NOTE: send immediately will result in observers (MPbkContactDbObserver) receiving the event twice!

DeleteContactsOnBackgroundL(const CContactIdArray &)

IMPORT_C voidDeleteContactsOnBackgroundL(const CContactIdArray &aContactIds)

Deletes multiple contacts from the database in an active object -driven asynchronous background process.

Parameters

const CContactIdArray & aContactIdsContacts to delete.

DuplicateContactL(TContactItemId, TBool)

IMPORT_C TContactItemIdDuplicateContactL(TContactItemIdaId,
TBoolaImmediateNotify = EFalse
)

Duplicates a contact in the database.

Parameters

TContactItemId aIdId of the contact to duplicate.
TBool aImmediateNotify = EFalseSend notification to observers immediately. NOTE: send immediately will result in observers (MPbkContactDbObserver) receiving the event twice!

FieldsInfo()

IMPORT_C const CPbkFieldsInfo &FieldsInfo()

Returns the field type info array. CPbkFieldsInfo

FilteredContactsViewL(TInt)

IMPORT_C CContactViewBase &FilteredContactsViewL(TIntaFilter)

Returns a contact view object containing all the contacts in the database that match a filter.

CContactViewBase

Parameters

TInt aFilterUse CContactDatabase::TContactViewFilter.

FindAsyncL(const TDesC &, const CPbkFieldIdArray *, MIdleFindObserver *)

IMPORT_C CPbkIdleFinder *FindAsyncL(const TDesC &aText,
const CPbkFieldIdArray *aFieldTypes = NULL,
MIdleFindObserver *aObserver = NULL
)

Searches all contacts in the database for aText asynchronously.

CContactDatabase::FindAsyncL. CPbkIdleFinder

Parameters

const TDesC & aTextText to search.
const CPbkFieldIdArray * aFieldTypes = NULLPhonebook fields types to at least include in the search. If NULL searches all fields. PLEASE NOTE: The find matches in most cases also other fields than those specified in aFieldTypes. Always loop through the returned contacts to check match in the required fields.
MIdleFindObserver * aObserver = NULLObserver for this operation.

FindLC(const TDesC &, const CPbkFieldIdArray *)

IMPORT_C CContactIdArray *FindLC(const TDesC &aText,
const CPbkFieldIdArray *aFieldTypes = NULL
)

Searches all contacts in the database for aText.

CContactDatabase::FindLC.

Parameters

const TDesC & aTextText to search.
const CPbkFieldIdArray * aFieldTypes = NULLPhonebook fields types to at least include in the search. If NULL searches all fields. PLEASE NOTE: The find matches in most cases also other fields than those specified in aFieldTypes. Always loop through the returned contacts to check match in the required fields.

FsSession()

IMPORT_C RFs &FsSession()const

Returns an open file server session.

GetContactTitleL(const CPbkContactItem &)

IMPORT_C HBufC *GetContactTitleL(const CPbkContactItem &aItem)const

Gets a title text for a contact or localised text for unnamed contact if contact contains no title.

Parameters

const CPbkContactItem & aItemContact item for which to make the title.

GetContactTitleOrNullL(const MPbkFieldDataArray &)

IMPORT_C HBufC *GetContactTitleOrNullL(const MPbkFieldDataArray &aContactData)

Similar to GetContactTitleL but returns NULL if contact contains no title. Uses the MPbkFieldDataArray interface to access the field content. CPbkContactEngine::GetContactTitleL

Parameters

const MPbkFieldDataArray & aContactDataThe contact field data array.

GetSpeedDialFieldL(TInt, TDes &)

IMPORT_C TContactItemIdGetSpeedDialFieldL(TIntaSpeedDialPosition,
TDes &aPhoneNumber
)const

Returns a speed dial contact.

CContactDatabase::GetSpeedDialFieldL.

Parameters

TInt aSpeedDialPositionSpeed dial position number.
TDes & aPhoneNumberPhone number

HandleDatabaseEventL(TContactDbObserverEvent)

voidHandleDatabaseEventL(TContactDbObserverEventaEvent)[private]

Distributes CContactDatabase observer events in Phonebook.

Parameters

TContactDbObserverEvent aEvent

IsSpeedDialAssigned(const CPbkContactItem &, TInt)

IMPORT_C TBoolIsSpeedDialAssigned(const CPbkContactItem &aItem,
TIntaFieldIndex
)const

Returns ETrue if this field has been assigned a speed dial position.

Parameters

const CPbkContactItem & aItemcontact Item to check for speed dial.
TInt aFieldIndexIndex of the field to check. This is an index into aItem.CardFields().

IsTitleField(TPbkFieldId)

IMPORT_C TBoolIsTitleField(TPbkFieldIdaFieldId)const

Returns ETrue if field is one of the fields used in building the contact title.

GetContactTitleL GetContactTitleOrNullL

Parameters

TPbkFieldId aFieldIdThe id of the field.

MatchPhoneNumberL(const TDesC &, const TInt)

IMPORT_C CContactIdArray *MatchPhoneNumberL(const TDesC &aNumber,
const TIntaMatchLengthFromRight
)

Call-through for new Phone number matching function in 6.2 version of class CContactDatabase. If you don't need any other functionality from CPbkContactEngine than this consider using the CContactDatabase API directly. See Symbian Contacts Model documentation for CContactDatabase::MatchPhoneNumberL use.

CContactDatabase::MatchPhoneNumberL(const TDesC&,const TInt)

Parameters

const TDesC & aNumber
const TInt aMatchLengthFromRight

NameDisplayOrderL()

IMPORT_C TPbkNameOrderNameDisplayOrderL()

NameSeparator()

IMPORT_C TCharNameSeparator()const

NewL(RFs *)

IMPORT_C CPbkContactEngine *NewL(RFs *aFs = NULL)[static]

Creates a new Phonebook engine object and connects to the default contact database. If the default database does not exist it is created.

Exceptions
KErrCorrupt

if the database is corrupted.

Parameters

RFs * aFs = NULLAn open file server connection. If !=NULL aFs is used instead of a locally created RFs connection. aFs must remain connected for the lifetime of the returned object.

NewL(const TDesC &, TBool, RFs *)

IMPORT_C CPbkContactEngine *NewL(const TDesC &aFileName,
TBoolaReplace = EFalse,
RFs *aFs = NULL
)[static]

Parameters

const TDesC & aFileName
TBool aReplace = EFalse
RFs * aFs = NULL

OpenContactGroupL(TContactItemId)

IMPORT_C CContactGroup *OpenContactGroupL(TContactItemIdaId)

Opens a Contact group for modification.

CContactDatabase::OpenContactL

Parameters

TContactItemId aIdGroups id

OpenContactGroupLCX(TContactItemId)

IMPORT_C CContactGroup *OpenContactGroupLCX(TContactItemIdaId)

Opens a Contact group for modification. Pushes the returned contact group object and a lock item on the cleanup stack.

CContactDatabase::OpenContactLX

Parameters

TContactItemId aIdGroups id

OpenContactL(TContactItemId)

IMPORT_C CPbkContactItem *OpenContactL(TContactItemIdaContactId)

Opens a contact and returns a phonebook contact item. CContactDatabase::OpenContactL

Parameters

TContactItemId aContactIdContact item id to be opened.

OpenContactLCX(TContactItemId)

IMPORT_C CPbkContactItem *OpenContactLCX(TContactItemIdaContactId)

Same as OpenContactL, but leaves a lock record AND the opened contact object on the cleanup stack. Use CleanupStack::PopAndDestroy(2) to close the contact and destroy the returned object. First pop pops the contact object and second the lock object. CContactDatabase::OpenContactLX

Parameters

TContactItemId aContactIdContact item id to open.

ReadContactGroupL(TContactItemId)

IMPORT_C CContactGroup *ReadContactGroupL(TContactItemIdaId)

Reads a Contact group.

CContactDatabase::ReadContactL

Parameters

TContactItemId aIdGroup id.

ReadContactL(TContactItemId, const CPbkFieldIdArray *)

IMPORT_C CPbkContactItem *ReadContactL(TContactItemIdaContactId,
const CPbkFieldIdArray *aFieldTypes = NULL
)

Reads a contact and returns a phonebook contact item.

CContactDatabase::ReadContactL

Parameters

TContactItemId aContactIdContact item id to be read.
const CPbkFieldIdArray * aFieldTypes = NULLArray of types of fields to read in, all fields are read if NULL (which is default). NOTE: when using this parameter ReadContactL may return more fields than expected; for example if aFieldTypes contains any phonenumber the method may return all phone number fields of the contact.

ReadContactLC(TContactItemId, const CPbkFieldIdArray *)

IMPORT_C CPbkContactItem *ReadContactLC(TContactItemIdaContactId,
const CPbkFieldIdArray *aFieldTypes = NULL
)

Same as ReadContactL, but leaves the returned contact item on the cleanup stack.

Parameters

TContactItemId aContactIdContact item id to be read.
const CPbkFieldIdArray * aFieldTypes = NULLArray of types of fields to read in, all fields are read if NULL (which is default). NOTE: when using this parameter ReadContactL may return more fields than expected; for example if aFieldTypes contains any phonenumber the method may return all phone number fields of the contact.

ReadMinimalContactLC(TContactItemId)

IMPORT_C CPbkContactItem *ReadMinimalContactLC(TContactItemIdaContactId)

Same as ReadContactLC but reads only minimal information. See Symbian Contacts Model documentation for definition of "minimal" in this case.

CContactDatabase::ReadMinimalContactL

Parameters

TContactItemId aContactIdContact item id to be read.

ReadResourcesL(TBool &)

voidReadResourcesL(TBool &aSettingsVisibility)[private, inline]

Parameters

TBool & aSettingsVisibility

RemoveContactFromGroupL(TContactItemId, TContactItemId)

IMPORT_C voidRemoveContactFromGroupL(TContactItemIdaItemId,
TContactItemIdaGroupId
)

Removes a contact from a group

CContactDatabase::RemoveContactFromGroupL

Parameters

TContactItemId aItemIdContact to be removed from group.
TContactItemId aGroupIdGroup where the contact will be removed from.

RemoveObserver(MPbkContactDbObserver *)

voidRemoveObserver(MPbkContactDbObserver *aObserver)[private]

Parameters

MPbkContactDbObserver * aObserver

RemoveSpeedDialFieldL(TContactItemId, TInt)

IMPORT_C voidRemoveSpeedDialFieldL(TContactItemIdaContactId,
TIntaSpeedDialPosition
)

Removes a speed dial from a contact.

CContactDatabase::RemoveSpeedDialFieldL.

Parameters

TContactItemId aContactIdContact item to remove the speed dial from.
TInt aSpeedDialPositionSpeed dial position number to remove.

ReplaceL(RFs *)

IMPORT_C CPbkContactEngine *ReplaceL(RFs *aFs = NULL)[static]

Replaces the default contact database and connects to it. See Symbian Contacs model documentation for CContactDatabase::ReplaceL for possible leave codes. PLEASE NOTE: all data in the existing database will be lost!

CContactDatabase::ReplaceL

Parameters

RFs * aFs = NULLAn open file server connection. If !=NULL aFs is used instead of a locally created RFs connection. aFs must remain connected for the lifetime of the returned object.

SendEventToAllObservers(const TContactDbObserverEvent &)

voidSendEventToAllObservers(const TContactDbObserverEvent &aEvent)[private]

Parameters

const TContactDbObserverEvent & aEvent

SendImmidiateEventToAllObservers(TContactDbObserverEventType, TContactItemId, TBool)

voidSendImmidiateEventToAllObservers(TContactDbObserverEventTypeaEventType,
TContactItemIdaContactId,
TBoolaSendEvent
)[private]

Parameters

TContactDbObserverEventType aEventType
TContactItemId aContactId
TBool aSendEvent

SetCompressUi(MPbkCompressUi *)

IMPORT_C voidSetCompressUi(MPbkCompressUi *aCompressiUi)

Parameters

MPbkCompressUi * aCompressiUi

SetFieldAsSpeedDialL(CPbkContactItem &, TInt, TInt)

IMPORT_C voidSetFieldAsSpeedDialL(CPbkContactItem &aItem,
TIntaFieldIndex,
TIntaSpeedDialPosition
)

Sets a speed dial to a contact field.

CContactDatabase::SetFieldAsSpeedDialL

Parameters

CPbkContactItem & aItemContact item to add speed dial to.
TInt aFieldIndexField index to add Speed dial to.
TInt aSpeedDialPositionSpeed dial position number to set to the field.

SetNameDisplayOrderL(TPbkNameOrder)

IMPORT_C voidSetNameDisplayOrderL(TPbkNameOrderaNameOrder)

Parameters

TPbkNameOrder aNameOrder

SetNameSeparatorL(TChar)

IMPORT_C voidSetNameSeparatorL(TCharaSeparator)

Parameters

TChar aSeparator

SortOrderManager()

const CPbkSortOrderManager &SortOrderManager()const

Static()

IMPORT_C CPbkContactEngine *Static()[static]

Returns the global Phonebook engine instance, NULL if no instance created yet. Note1: Uses thread local storage (TLS), which is slow. Cache the returned pointer if it is used more than one time! Note2: Only the first engine instance created in calling thread can be accessed with this function.

UnnamedTitle()

IMPORT_C const TDesC &UnnamedTitle()const

Returns the localised title text to use for unnamed contacts.

doDeleteContactL(TContactItemId)

voiddoDeleteContactL(TContactItemIdaContactId)[private]

Parameters

TContactItemId aContactId

Member Enumerations Documentation

Enum TPbkNameOrder

Enumerators

EPbkNameOrderLastNameFirstName = 0
EPbkNameOrderFirstNameLastName
EPbkNameOrderNotDefined

undefined name order

Member Data Documentation

CContactDbConnection * iDbConnection

CContactDbConnection *iDbConnection[private]

TUid iDtorIDKey

TUid iDtorIDKey[private]

CPbkEngineExtension * iExtension

CPbkEngineExtension *iExtension[private]

TInt iFreeSpaceRequiredToDelete

TInt iFreeSpaceRequiredToDelete[private]

RFs iFs

RFs iFs[private]

CArrayPtr< MPbkContactDbObserver > * iObservers

CArrayPtr< MPbkContactDbObserver > *iObservers[private]

RFs iOwnFs

RFs iOwnFs[private]

CPbkConstants * iPbkConstants

CPbkConstants *iPbkConstants[private]

CPbkFieldsInfo * iPbkFieldsInfo

CPbkFieldsInfo *iPbkFieldsInfo[private]

CPbkSINDHandlerInterface * iSINDHandler

CPbkSINDHandlerInterface *iSINDHandler[private]

TChar iSeparator

TChar iSeparator[private]

RSharedDataClient * iSharedDataClient

RSharedDataClient *iSharedDataClient[private]

TBool iUseSeparator

TBool iUseSeparator[private]