API published in: S60 1st Ed
API deprecated in: S60 5th Ed
Link against: pbkeng.lib
Required Capabilities
ReadUserData WriteUserData
#include <cpbkcontactitem.h>
Inherits MPbkFieldDataArray.
Contact items can be read from the contact database by using the Phonebook engine,
Public Member Functions |
|
~CPbkContactItem () | |
Destructor. |
|
IMPORT_C TContactItemId | Id () const |
Returns this contact item's id. |
|
IMPORT_C TUid | Type () const |
Returns type of this contact item. |
|
IMPORT_C CContactIdArray * | GroupsJoinedLC () const |
Gets the groups this contact belongs to. |
|
IMPORT_C CContactItem & | ContactItem () |
Converts this object to a CContactItem. |
|
IMPORT_C const CContactItem & | ContactItem () const |
Converts this object to a const CContactItem. |
|
IMPORT_C CPbkFieldArray & | CardFields () const |
Returns the field set of this contact item. |
|
IMPORT_C TPbkContactItemField & | AddFieldL (CPbkFieldInfo &aFieldInfo) |
Creates a new field based on aFieldInfo and adds it to this contact. |
|
IMPORT_C TBool | CanAcceptDataOfType (CPbkFieldInfo &aFieldInfo) const |
Returns ETrue if data of type aFieldInfo can be added to this contact. |
|
IMPORT_C TPbkContactItemField * | AddOrReturnUnusedFieldL (CPbkFieldInfo &aFieldInfo) |
Finds an unused or creates a new field based on aFieldInfo. |
|
IMPORT_C void | RemoveField (TInt aIndex) |
Deletes field at aIndex. |
|
IMPORT_C void | UpdateFieldSetL (const CPbkFieldsInfo &aFieldsInfo) |
Updates this contacts field set to match the field set of the owned CContactItem. |
|
IMPORT_C TPbkContactItemField * | FindField (TPbkFieldId aFieldId) const |
Returns first field matching aFieldId. |
|
IMPORT_C TPbkContactItemField * | FindField (TPbkFieldId aFieldId, TInt &aIndex) const |
Returns first field matching aFieldId starting from aIndex. |
|
IMPORT_C TPbkContactItemField * | FindField (const CPbkFieldInfo &aFieldInfo) const |
Returns first field matching aFieldInfo. |
|
IMPORT_C TPbkContactItemField * | FindField (const CPbkFieldInfo &aFieldInfo, TInt &aIndex) const |
Returns first field matching aFieldInfo starting from aIndex. |
|
IMPORT_C TInt | FindFieldIndex (const TPbkContactItemField &aField) const |
Returns aField's index from this contact item. |
|
IMPORT_C TInt | FindContactItemFieldIndex (const CContactItemField &aField) const |
Returns aField's index from ContactItem()'s CardFields() or KErrNotFound if not found. |
|
IMPORT_C TPbkContactItemField * | FindNextFieldWithPhoneNumber (const TDesC &aNumber, TInt aNumberOfDigits, TInt &aIndex) const |
Searches phone number fields of this contact for a match. |
|
IMPORT_C TPbkContactItemField * | FindNextFieldWithText (const TDesC &aText, TInt &aIndex) const |
Searches for a text in this contact's fields. |
|
IMPORT_C TPbkContactItemField * | FindSameField (const TPbkContactItemField &aField) const |
Returns field matching aField from this contact item's field set, NULL if not found. |
|
IMPORT_C HBufC * | GetContactTitleL () const |
Gets a title text for this contact or localized unnamed text. |
|
IMPORT_C HBufC * | GetContactTitleOrNullL () const |
Gets a title text for this contact. |
|
IMPORT_C TPbkIconId | ContactIconIdL () const |
Returns an Phonebook icon id for a contact. |
|
IMPORT_C TPbkContactItemField * | DefaultPhoneNumberField () const |
Returns the default phone number field of this contact. |
|
IMPORT_C void | SetDefaultPhoneNumberFieldL (TPbkContactItemField *aField) |
Sets this contact's default phone number field to aField. |
|
IMPORT_C void | RemoveDefaultPhoneNumberField () |
Removes phone number default from this contact. |
|
IMPORT_C TPbkContactItemField * | DefaultVideoNumberField () const |
Returns the default video number field of this contact. |
|
IMPORT_C void | SetDefaultVideoNumberFieldL (TPbkContactItemField *aField) |
Sets this contact's default video number field to aField. |
|
IMPORT_C void | RemoveDefaultVideoNumberField () |
Removes video number default from this contact. |
|
IMPORT_C TPbkContactItemField * | DefaultSmsField () const |
Returns the default SMS field of this contact. |
|
IMPORT_C void | SetDefaultSmsFieldL (TPbkContactItemField *aField) |
Sets this contact's default SMS field to aField. |
|
IMPORT_C void | RemoveDefaultSmsField () |
Removes SMS field default from this contact. |
|
IMPORT_C TPbkContactItemField * | DefaultEmailField () const |
Returns the default email field of this contact. |
|
IMPORT_C void | SetDefaultEmailFieldL (TPbkContactItemField *aField) |
Sets this contact's default email address field to aField. |
|
IMPORT_C void | RemoveDefaultEmailField () |
Removes email field default from this contact. |
|
IMPORT_C TPbkContactItemField * | DefaultMmsField () const |
Returns the default Mms field of this contact. |
|
IMPORT_C void | SetDefaultMmsFieldL (TPbkContactItemField *aField) |
Sets this contact's default MMS address field to aField. |
|
IMPORT_C void | RemoveDefaultMmsField () |
Removes MMS field default from this contact. |
|
IMPORT_C TPbkContactItemField * | DefaultPocField () const |
Returns the default Poc field of this contact. |
|
IMPORT_C void | SetDefaultPocFieldL (TPbkContactItemField *aField) |
Sets this contact's default POC address field to aField. |
|
IMPORT_C void | RemoveDefaultPocField () |
Removes POC field default from this contact. |
|
IMPORT_C TPbkContactItemField * | DefaultVoipField () const |
Returns the default VOIP field of this contact. |
|
IMPORT_C void | SetDefaultVoipFieldL (TPbkContactItemField *aField) |
Sets this contact's default VOIP address field to aField. |
|
IMPORT_C void | RemoveDefaultVoipField () |
Removes VOIP field default from this contact. |
|
IMPORT_C TPbkContactItemField * | DefaultEmailOverSmsField () const |
Returns the default EmailOverSms field of this contact. |
|
IMPORT_C void | SetDefaultEmailOverSmsFieldL (TPbkContactItemField *aField) |
Sets this contact's default Sms With Email address field to aField. |
|
IMPORT_C void | RemoveDefaultEmailOverSmsField () |
Removes EmailOverSms field default from this contact. |
|
IMPORT_C TPbkContactItemField * | VoiceTagField () const |
Returns the voice tag field of this contact. |
|
IMPORT_C void | SetVoiceTagFieldL (TPbkContactItemField *aField) |
Sets this contact's voice tag field to aField. |
|
IMPORT_C void | RemoveVoiceTagField () |
Removes any voice tag mark from this contact. |
|
TInt | PbkFieldCount () const |
Returns the number of field data objects in this array. |
|
MPbkFieldData & | PbkFieldAt (TInt aIndex) |
Returns the field data object at aIndex. |
|
const MPbkFieldData & | PbkFieldAt (TInt aIndex) const |
Returns the const field data object at aIndex. |
|
void | PrepareForSaveL () |
void | PrepareAfterLoadL () |
Static Public Member Functions |
|
static IMPORT_C CPbkContactItem * | NewL (CContactItem *aItem, const CPbkFieldsInfo &aFieldsInfo, MPbkContactNameFormat &aNameFormat) |
Creates an instance of this class. |
|
Friends |
|
IMPORT_C TBool | operator== (const CPbkContactItem &aLeft, const CPbkContactItem &aRight) |
Returns ETrue if aLeft and aRight contents are the same. |
|
Destructor. |
|
Creates a new field based on aFieldInfo and adds it to this contact.
|
|
Finds an unused or creates a new field based on aFieldInfo. An unused field is a field that is in the contact template, but doesnt contain any data, in other words it is empty. So a unused field is preferred ad the next field to add user data before adding a new field to the contact.
|
|
Returns ETrue if data of type aFieldInfo can be added to this contact.
|
|
Returns the field set of this contact item.
|
|
Returns an Phonebook icon id for a contact. This icon id is the icon of the field that is set as the default number to call.
|
|
Converts this object to a const CContactItem. Use only if this class's API is not enough.
|
|
Converts this object to a CContactItem. Use only if this class's API is not enough.
|
|
Returns the default email field of this contact.
|
|
Returns the default EmailOverSms field of this contact.
|
|
Returns the default Mms field of this contact.
|
|
Returns the default phone number field of this contact.
|
|
Returns the default Poc field of this contact.
|
|
Returns the default SMS field of this contact.
|
|
Returns the default video number field of this contact.
|
|
Returns the default VOIP field of this contact.
|
|
Returns aField's index from ContactItem()'s CardFields() or KErrNotFound if not found.
|
|
Returns first field matching aFieldInfo starting from aIndex.
|
|
Returns first field matching aFieldInfo.
|
|
Returns first field matching aFieldId starting from aIndex.
|
|
Returns first field matching aFieldId.
|
|
Returns aField's index from this contact item.
|
|
Searches phone number fields of this contact for a match. Uses PbkEngUtils::ContainSameDigits to perform the matching.
|
|
Searches for a text in this contact's fields. Uses TDesC::FindF() search the text from the fields.
|
|
Returns field matching aField from this contact item's field set, NULL if not found.
|
|
Gets a title text for this contact or localized unnamed text.
|
|
Gets a title text for this contact.
|
|
Gets the groups this contact belongs to.
|
|
Returns this contact item's id.
|
|
Creates an instance of this class.
|
|
Returns the const field data object at aIndex.
Implements MPbkFieldDataArray. |
|
Returns the field data object at aIndex.
Implements MPbkFieldDataArray. |
|
Returns the number of field data objects in this array.
Implements MPbkFieldDataArray. |
|
|
|
Removes email field default from this contact. DefaultEmailField()==NULL. |
|
Removes EmailOverSms field default from this contact. DefaultEmailOverSmsField()==NULL. |
|
Removes MMS field default from this contact. DefaultMmsField()==NULL. |
|
Removes phone number default from this contact. DefaultPhoneNumberField()==NULL. |
|
Removes POC field default from this contact. DefaultPocField()==NULL. |
|
Removes SMS field default from this contact. DefaultSmsField()==NULL. |
|
Removes video number default from this contact. DefaultVideoNumberField()==NULL. |
|
Removes VOIP field default from this contact. DefaultVoipField()==NULL. |
|
Deletes field at aIndex.
|
|
Removes any voice tag mark from this contact. VoiceTagField()==NULL. |
|
Sets this contact's default email address field to aField.
|
|
Sets this contact's default Sms With Email address field to aField.
|
|
Sets this contact's default MMS address field to aField.
|
|
Sets this contact's default phone number field to aField.
|
|
Sets this contact's default POC address field to aField.
|
|
Sets this contact's default SMS field to aField.
|
|
Sets this contact's default video number field to aField.
|
|
Sets this contact's default VOIP address field to aField.
|
|
Sets this contact's voice tag field to aField.
|
|
Returns type of this contact item. The contact types are documented in the Symbian Contacts model CContactItem::Type().
|
|
Updates this contacts field set to match the field set of the owned CContactItem. No need to call unless contact item's field set has been manipulated directly. In other words remaps the field types of this contact item from the underlying Symbian Contacts model contact item.
|
|
Returns the voice tag field of this contact. NOTE: If this function is unable to make a connection to the voice tag handling system for some reason, this function will return null.
|
|
Returns ETrue if aLeft and aRight contents are the same. |