CPbkFieldInfo Class Reference

class CPbkFieldInfo : public CBase

Phonebook constant field type information. Loaded from resources into CPbkFieldsInfo array. The corresponding resource structure is PHONEBOOK_FIELD in PbkFieldInfo.rh.

CPbkFieldsInfo PHONEBOOK_FIELD FIELD

Inherits from

Nested Classes and Structures

Public Member Functions
IMPORT_C TUintAddFlags()
IMPORT_C TPbkAddItemOrderingAddItemOrdering()
IMPORT_C const TDesC &AddItemText()
IMPORT_C voidAddToFieldDefL(CContactItemFieldDef &)
IMPORT_C voidAddToViewDefL(CContactItemViewDef &)
IMPORT_C TIntCategory()
IMPORT_C TIntCompareOrdering(const CPbkFieldInfo &)
IMPORT_C const CContentType &ContentType()
IMPORT_C CContactItemField *CreateFieldL()
IMPORT_C TPbkFieldCtrlTypeCtrlType()
IMPORT_C TPbkFieldDefaultCaseDefaultCase()
IMPORT_C TBoolDoSynchronize()
IMPORT_C TPbkFieldEditModeEditMode()
IMPORT_C TPbkFieldIdFieldId()
IMPORT_C const TDesC &FieldName()
IMPORT_C TStorageTypeFieldStorageType()
IMPORT_C TUintFlags()
IMPORT_C const CPbkFieldInfoGroup *Group()
IMPORT_C TPbkIconIdIconId()
IMPORT_C TBoolIsDisabled()
IMPORT_C TBoolIsEditable()
IMPORT_C TBoolIsEmailField()
IMPORT_C TBoolIsEmailOverSmsField()
TBool IsEqualLabel(const CContactItemField &)
IMPORT_C TBoolIsEqualTo(const CContactItemField &)
TBool IsEqualType(const CContactItemField &)
IMPORT_C TBoolIsHidden()
IMPORT_C TBoolIsImageField()
IMPORT_C TBoolIsMmsField()
IMPORT_C TBoolIsPhoneNumberField()
IMPORT_C TBoolIsPocField()
IMPORT_C TBoolIsReadOnly()
IMPORT_C TBoolIsReadingField()
IMPORT_C TBoolIsSame(const CPbkFieldInfo &)
IMPORT_C TBoolIsVoipField()
IMPORT_C TPbkFieldLocationLocation()
IMPORT_C TBoolMatch(TPbkFieldId)
TBool Match(const TPbkContactItemFieldType &)
TBool Match(const TPbkContactItemFieldType &, const TPbkMatchPriorityLevel &)
TBool Match(const TPbkVcardFieldType &, const TPbkMatchPriorityLevel &)
IMPORT_C TBoolMatch(const CContactItemField &)
IMPORT_C TIntMaxLength()
IMPORT_C TPbkFieldMultiplicityMultiplicity()
IMPORT_C TBoolNameField()
IMPORT_C TBoolNumericField()
IMPORT_C TBoolTemplateField()
IMPORT_C TBoolUserCanAddField()
IMPORT_C TPbkVersitStorageTypeVersitStorageType()
Private Member Functions
CPbkFieldInfo()
~CPbkFieldInfo()
voidCalculateTypeSignatures(const CPbkUidMap &)
voidConstructFromResourceL(TResourceReader &, TResourceReader &, TPbkFieldInfoParams &)
TInt ImportPropertyCount()
TBool IsEqualFlags(const CContactItemField &)
CPbkFieldInfo *NewLC(TResourceReader &, TResourceReader &, TPbkFieldInfoParams &)
voidReadAdditionalFieldsL(TResourceReader &, TPbkFieldInfoParams &)
voidReadCntModelFieldsL(TResourceReader &)
voidReadImportPropertiesL(TResourceReader &)
voidUpdateTypeUidMapL(CPbkUidMap &)
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 Attributes
const CPbkFieldInfoGroup *iGroup
TPbkFieldGroupId iGroupId
Private Attributes
TUint iAddFlags
TInt8 iAddItemOrdering
HBufC *iAddItemText
TInt iCategory
CContentType *iContentType
TInt8 iCtrlType
TInt8 iDefaultCase
TInt8 iEditMode
TInt8 iFieldId
HBufC *iFieldName
TStorageType iFieldStorageType
TUint iFlags
union CPbkFieldInfo::@68iGroupLink
TInt8 iIconId
CPbkFieldImportType *iImportType
TInt8 iLocation
TInt16 iMaxLength
TInt8 iMultiplicity
TInt8 iOrderingGroup
TInt8 iOrderingItem
TInt8 iVersitStorageType

Constructor & Destructor Documentation

CPbkFieldInfo()

CPbkFieldInfo()[private, inline]

C++ constructor

~CPbkFieldInfo()

~CPbkFieldInfo()[private]

Destructor.

Member Functions Documentation

AddFlags()

IMPORT_C TUintAddFlags()const

Returns additional flags of this field type.

AddItemOrdering()

IMPORT_C TPbkAddItemOrderingAddItemOrdering()const

This function is no longer supported.

Returns the UI ordering for adding a field.

AddItemText()

IMPORT_C const TDesC &AddItemText()const

Returns the Add item label text of the field.

AddToFieldDefL(CContactItemFieldDef &)

IMPORT_C voidAddToFieldDefL(CContactItemFieldDef &aFieldDef)const

Add this field's type information to a contact item field definition.

Parameters

CContactItemFieldDef & aFieldDefField definition to add types to.

AddToViewDefL(CContactItemViewDef &)

IMPORT_C voidAddToViewDefL(CContactItemViewDef &aViewDef)const

Add this field's type information to a contact item view definition.

Parameters

CContactItemViewDef & aViewDefView definition to add types to.

CalculateTypeSignatures(const CPbkUidMap &)

voidCalculateTypeSignatures(const CPbkUidMap &aTypeUidMap)[private]

Parameters

const CPbkUidMap & aTypeUidMap

Category()

IMPORT_C TIntCategory()const

Returns the category of this field type.

CompareOrdering(const CPbkFieldInfo &)

IMPORT_C TIntCompareOrdering(const CPbkFieldInfo &aOther)const

Compares the field ordering of this and aOther.

Parameters

const CPbkFieldInfo & aOtherThe other object this is compared against.

ConstructFromResourceL(TResourceReader &, TResourceReader &, TPbkFieldInfoParams &)

voidConstructFromResourceL(TResourceReader &aReaderStd,
TResourceReader &aReaderAdd,
TPbkFieldInfoParams &aPbkFieldInfoParams
)[private]

Second phase constructor. Initializes this field info object from resources.

Parameters

TResourceReader & aReaderStd
TResourceReader & aReaderAdd
TPbkFieldInfoParams & aPbkFieldInfoParams

ContentType()

IMPORT_C const CContentType &ContentType()const

Returns the content type of this field type. CContentType

CreateFieldL()

IMPORT_C CContactItemField *CreateFieldL()const

Creates a Symbian Contacts model field of this field type. Ownership of the field is passed to the client.

CtrlType()

IMPORT_C TPbkFieldCtrlTypeCtrlType()const

Returns the UI control type required to edit this field.

DefaultCase()

IMPORT_C TPbkFieldDefaultCaseDefaultCase()const

Returns the default character case for this field type.

DoSynchronize()

IMPORT_C TBoolDoSynchronize()const

Returns ETrue if this field is synchronized.

EditMode()

IMPORT_C TPbkFieldEditModeEditMode()const

Returns the default editing mode for this field type.

FieldId()

IMPORT_C TPbkFieldIdFieldId()const

Returns the unique Phonebook field id for this field type.

FieldName()

IMPORT_C const TDesC &FieldName()const

Returns this field type's default label.

FieldStorageType()

IMPORT_C TStorageTypeFieldStorageType()const

Returns the storage type of this field type.

Flags()

IMPORT_C TUintFlags()const

Returns Symbian Contacts Model field flags of this field type.

Group()

IMPORT_C const CPbkFieldInfoGroup *Group()const

Returns the field info group this field info belongs to or NULL.

IconId()

IMPORT_C TPbkIconIdIconId()const

Returns the icon id for this field type.

ImportPropertyCount()

TInt ImportPropertyCount()const [private]

IsDisabled()

IMPORT_C TBoolIsDisabled()const

Returns ETrue if this field is disabled.

IsEditable()

IMPORT_C TBoolIsEditable()const

Returns ETrue if the field type can be edited in Phonebook's contact editor.

IsEmailField()

IMPORT_C TBoolIsEmailField()const

Returns ETrue if this is an Email address field type.

IsEmailOverSmsField()

IMPORT_C TBoolIsEmailOverSmsField()const

Returns ETrue if this is an EmailOverSms address field type.

IsEqualFlags(const CContactItemField &)

TBool IsEqualFlags(const CContactItemField &aField)const [private, inline]

Returns ETrue if aField's flags are equal with this field info object.

Parameters

const CContactItemField & aField

IsEqualLabel(const CContactItemField &)

TBool IsEqualLabel(const CContactItemField &aField)const

Returns ETrue if aField's label is equal to this field info objects. Returns ETrue if aField's label is equal with this field info object.

Parameters

const CContactItemField & aFieldSymbian Contacts model field to compare to this field types label.

IsEqualTo(const CContactItemField &)

IMPORT_C TBoolIsEqualTo(const CContactItemField &aField)const

Returns ETrue if aField's type and labels are equal to this field info object.

Parameters

const CContactItemField & aFieldSymbian Contacts model field to compare

IsEqualType(const CContactItemField &)

TBool IsEqualType(const CContactItemField &aField)const

Returns ETrue if aField's type is equal to this field info object.

Parameters

const CContactItemField & aFieldSymbian Contacts model field to compare.

IsHidden()

IMPORT_C TBoolIsHidden()const

Returns ETrue if this field is hidden.

IsImageField()

IMPORT_C TBoolIsImageField()const

Returns ETrue if this is an image field type.

IsMmsField()

IMPORT_C TBoolIsMmsField()const

Returns ETrue if this is a MMS address field type.

IsPhoneNumberField()

IMPORT_C TBoolIsPhoneNumberField()const

Returns ETrue if this is a phone number field type.

IsPocField()

IMPORT_C TBoolIsPocField()const

Returns ETrue if this is a POC address field type.

IsReadOnly()

IMPORT_C TBoolIsReadOnly()const

Returns ETrue if this field is read only.

IsReadingField()

IMPORT_C TBoolIsReadingField()const

Returns ETrue if this field is a reading field type (japanese).

IsSame(const CPbkFieldInfo &)

IMPORT_C TBoolIsSame(const CPbkFieldInfo &aFieldInfo)const

Returns ETrue if aFieldInfo is same as this.

Parameters

const CPbkFieldInfo & aFieldInfoField info to compare to this field type.

IsVoipField()

IMPORT_C TBoolIsVoipField()const

Returns ETrue if this is a VOIP address field type.

Location()

IMPORT_C TPbkFieldLocationLocation()const

Returns the location information of the field.

Match(TPbkFieldId)

IMPORT_C TBoolMatch(TPbkFieldIdaFieldId)const

Returns ETrue if this field info matches aFieldId.

Parameters

TPbkFieldId aFieldIdThe field type id to compare to this field type.

Match(const TPbkContactItemFieldType &)

TBool Match(const TPbkContactItemFieldType &aFieldType)const

Returns ETrue if this field info matches aFieldType at any import type priority level.

Parameters

const TPbkContactItemFieldType & aFieldTypeField type to match to this field type.

Match(const TPbkContactItemFieldType &, const TPbkMatchPriorityLevel &)

TBool Match(const TPbkContactItemFieldType &aFieldType,
const TPbkMatchPriorityLevel &aMatchPriority
)const

Returns ETrue if this field info matches aFieldType at import type priority level defined by aMatchPriority.

Parameters

const TPbkContactItemFieldType & aFieldTypeField type to compare.
const TPbkMatchPriorityLevel & aMatchPriorityMatching priority.

Match(const TPbkVcardFieldType &, const TPbkMatchPriorityLevel &)

TBool Match(const TPbkVcardFieldType &aVcardType,
const TPbkMatchPriorityLevel &aMatchPriority
)const

Returns ETrue if this field info matches aVcardType at import type priority level defined by aMatchPriority.

Parameters

const TPbkVcardFieldType & aVcardTypevCard field type to match to this field type.
const TPbkMatchPriorityLevel & aMatchPriorityMatching priority.

Match(const CContactItemField &)

IMPORT_C TBoolMatch(const CContactItemField &aField)const

This function is no longer supported. If you want to find the CPbkFieldInfo instance matching a CContactItemField use CPbkFieldsInfo::Match(const CContactItemField&) const. That function works correctly and uses <it>a lot</it> faster algorithm than this function.

Parameters

const CContactItemField & aFieldSymbian Contacts model contact item to match to this field type. Returns ETrue if this field info matches aField.

MaxLength()

IMPORT_C TIntMaxLength()const

Returns the maximum data length that Phonebook UI spec specifies for this field type.

Multiplicity()

IMPORT_C TPbkFieldMultiplicityMultiplicity()const

Returns the multiplicity allowed for this field type.

NameField()

IMPORT_C TBoolNameField()const

Returns ETrue if this is a name field type.

NewLC(TResourceReader &, TResourceReader &, TPbkFieldInfoParams &)

CPbkFieldInfo *NewLC(TResourceReader &aReaderStd,
TResourceReader &aReaderAdd,
TPbkFieldInfoParams &aPbkFieldInfoParams
)[private, static]

Creates a new instance of this class. The created object is left on the cleanup stack.

Parameters

TResourceReader & aReaderStdresource reader initialised to the start of a STRUCT FIELD.
TResourceReader & aReaderAddresource reader initialised to the start of a STRUCT PHONEBOOK_FIELD.
TPbkFieldInfoParams & aPbkFieldInfoParamsparameters for initialisation

NumericField()

IMPORT_C TBoolNumericField()const

Returns ETrue if this is a numeric field type.

ReadAdditionalFieldsL(TResourceReader &, TPbkFieldInfoParams &)

voidReadAdditionalFieldsL(TResourceReader &aReaderAdd,
TPbkFieldInfoParams &aPbkFieldInfoParams
)[private, inline]

Parameters

TResourceReader & aReaderAdd
TPbkFieldInfoParams & aPbkFieldInfoParams

ReadCntModelFieldsL(TResourceReader &)

voidReadCntModelFieldsL(TResourceReader &aReaderStd)[private, inline]

Parameters

TResourceReader & aReaderStd

ReadImportPropertiesL(TResourceReader &)

voidReadImportPropertiesL(TResourceReader &aReaderAdd)[private]

Parameters

TResourceReader & aReaderAdd

TemplateField()

IMPORT_C TBoolTemplateField()const

Returns ETrue if this field type is part of the default template.

UpdateTypeUidMapL(CPbkUidMap &)

voidUpdateTypeUidMapL(CPbkUidMap &aTypeUidMap)const [private]

Parameters

CPbkUidMap & aTypeUidMap

UserCanAddField()

IMPORT_C TBoolUserCanAddField()const

Returns ETrue if this field type can be added by the user.

VersitStorageType()

IMPORT_C TPbkVersitStorageTypeVersitStorageType()const

Returns the versit storage type of the field.

Member Data Documentation

TUint iAddFlags

TUint iAddFlags[private]

TInt8 iAddItemOrdering

TInt8 iAddItemOrdering[private]

HBufC * iAddItemText

HBufC *iAddItemText[private]

Additional attributes Attributes in resource struct PHONEBOOK_FIELD

TInt iCategory

TInt iCategory[private]

CContentType * iContentType

CContentType *iContentType[private]

TInt8 iCtrlType

TInt8 iCtrlType[private]

TInt8 iDefaultCase

TInt8 iDefaultCase[private]

TInt8 iEditMode

TInt8 iEditMode[private]

TInt8 iFieldId

TInt8 iFieldId[private]

HBufC * iFieldName

HBufC *iFieldName[private]

TStorageType iFieldStorageType

TStorageType iFieldStorageType[private]

Contacts Model attributes Attribute in resource struct FIELD

TUint iFlags

TUint iFlags[private]

const CPbkFieldInfoGroup * iGroup

const CPbkFieldInfoGroup *iGroup

TPbkFieldGroupId iGroupId

TPbkFieldGroupId iGroupId

union CPbkFieldInfo::@68 iGroupLink

union CPbkFieldInfo::@68iGroupLink[private]

TInt8 iIconId

TInt8 iIconId[private]

CPbkFieldImportType * iImportType

CPbkFieldImportType *iImportType[private]

TInt8 iLocation

TInt8 iLocation[private]

TInt16 iMaxLength

TInt16 iMaxLength[private]

TInt8 iMultiplicity

TInt8 iMultiplicity[private]

TInt8 iOrderingGroup

TInt8 iOrderingGroup[private]

TInt8 iOrderingItem

TInt8 iOrderingItem[private]

TInt8 iVersitStorageType

TInt8 iVersitStorageType[private]