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
Nested Classes and Structures
Constructor & Destructor Documentation
CPbkFieldInfo()
CPbkFieldInfo | ( | ) | [private, inline] |
~CPbkFieldInfo()
~CPbkFieldInfo | ( | ) | [private] |
Member Functions Documentation
AddFlags()
IMPORT_C TUint | AddFlags | ( | ) | const |
Returns additional flags of this field type.
AddItemOrdering()
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 &)
Add this field's type information to a contact item field definition.
AddToViewDefL(CContactItemViewDef &)
Add this field's type information to a contact item view definition.
CalculateTypeSignatures(const CPbkUidMap &)
void | CalculateTypeSignatures | ( | const CPbkUidMap & | aTypeUidMap | ) | [private] |
Parameters
const CPbkUidMap & aTypeUidMap | |
Category()
IMPORT_C TInt | Category | ( | ) | const |
Returns the category of this field type.
CompareOrdering(const CPbkFieldInfo &)
Compares the field ordering of this and aOther.
Parameters
const CPbkFieldInfo & aOther | The other object this is compared against. |
ConstructFromResourceL(TResourceReader &, TResourceReader &, TPbkFieldInfoParams &)
Second phase constructor. Initializes this field info object from resources.
CreateFieldL()
Creates a Symbian Contacts model field of this field type. Ownership of the field is passed to the client.
CtrlType()
Returns the UI control type required to edit this field.
DefaultCase()
Returns the default character case for this field type.
DoSynchronize()
IMPORT_C TBool | DoSynchronize | ( | ) | const |
Returns ETrue if this field is synchronized.
EditMode()
Returns the default editing mode for this field type.
FieldId()
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()
Returns the storage type of this field type.
Flags()
IMPORT_C TUint | Flags | ( | ) | const |
Returns Symbian Contacts Model field flags of this field type.
Group()
Returns the field info group this field info belongs to or NULL.
IconId()
Returns the icon id for this field type.
ImportPropertyCount()
TInt
| ImportPropertyCount | ( | ) | const [private] |
IsDisabled()
IMPORT_C TBool | IsDisabled | ( | ) | const |
Returns ETrue if this field is disabled.
IsEditable()
IMPORT_C TBool | IsEditable | ( | ) | const |
Returns ETrue if the field type can be edited in Phonebook's contact editor.
IsEmailField()
IMPORT_C TBool | IsEmailField | ( | ) | const |
Returns ETrue if this is an Email address field type.
IsEmailOverSmsField()
IMPORT_C TBool | IsEmailOverSmsField | ( | ) | const |
Returns ETrue if this is an EmailOverSms address field type.
IsEqualFlags(const CContactItemField &)
Returns ETrue if aField's flags are equal with this field info object.
IsEqualLabel(const CContactItemField &)
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 & aField | Symbian Contacts model field to compare to this field types label. |
IsEqualTo(const CContactItemField &)
Returns ETrue if aField's type and labels are equal to this field info object.
IsEqualType(const CContactItemField &)
Returns ETrue if aField's type is equal to this field info object.
IsHidden()
IMPORT_C TBool | IsHidden | ( | ) | const |
Returns ETrue if this field is hidden.
IsImageField()
IMPORT_C TBool | IsImageField | ( | ) | const |
Returns ETrue if this is an image field type.
IsMmsField()
IMPORT_C TBool | IsMmsField | ( | ) | const |
Returns ETrue if this is a MMS address field type.
IsPhoneNumberField()
IMPORT_C TBool | IsPhoneNumberField | ( | ) | const |
Returns ETrue if this is a phone number field type.
IsPocField()
IMPORT_C TBool | IsPocField | ( | ) | const |
Returns ETrue if this is a POC address field type.
IsReadOnly()
IMPORT_C TBool | IsReadOnly | ( | ) | const |
Returns ETrue if this field is read only.
IsReadingField()
IMPORT_C TBool | IsReadingField | ( | ) | const |
Returns ETrue if this field is a reading field type (japanese).
IsSame(const CPbkFieldInfo &)
Returns ETrue if aFieldInfo is same as this.
Parameters
const CPbkFieldInfo & aFieldInfo | Field info to compare to this field type. |
IsVoipField()
IMPORT_C TBool | IsVoipField | ( | ) | const |
Returns ETrue if this is a VOIP address field type.
Location()
Returns the location information of the field.
Match(TPbkFieldId)
Returns ETrue if this field info matches aFieldId.
Parameters
TPbkFieldId aFieldId | The 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 & aFieldType | Field type to match to this field type. |
Match(const TPbkContactItemFieldType &, const TPbkMatchPriorityLevel &)
Returns ETrue if this field info matches aFieldType at import type priority level defined by aMatchPriority.
Parameters
const TPbkContactItemFieldType & aFieldType | Field type to compare. |
const TPbkMatchPriorityLevel & aMatchPriority | Matching priority. |
Match(const TPbkVcardFieldType &, const TPbkMatchPriorityLevel &)
Returns ETrue if this field info matches aVcardType at import type priority level defined by aMatchPriority.
Parameters
const TPbkVcardFieldType & aVcardType | vCard field type to match to this field type. |
const TPbkMatchPriorityLevel & aMatchPriority | Matching priority. |
Match(const CContactItemField &)
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 & aField | Symbian Contacts model contact item to match to this field type. Returns ETrue if this field info matches aField. |
MaxLength()
IMPORT_C TInt | MaxLength | ( | ) | const |
Returns the maximum data length that Phonebook UI spec specifies for this field type.
Multiplicity()
Returns the multiplicity allowed for this field type.
NameField()
IMPORT_C TBool | NameField | ( | ) | const |
Returns ETrue if this is a name field type.
NewLC(TResourceReader &, TResourceReader &, TPbkFieldInfoParams &)
Creates a new instance of this class. The created object is left on the cleanup stack.
Parameters
TResourceReader & aReaderStd | resource reader initialised to the start of a STRUCT FIELD. |
TResourceReader & aReaderAdd | resource reader initialised to the start of a STRUCT PHONEBOOK_FIELD. |
TPbkFieldInfoParams & aPbkFieldInfoParams | parameters for initialisation |
NumericField()
IMPORT_C TBool | NumericField | ( | ) | const |
Returns ETrue if this is a numeric field type.
ReadAdditionalFieldsL(TResourceReader &, TPbkFieldInfoParams &)
ReadCntModelFieldsL(TResourceReader &)
ReadImportPropertiesL(TResourceReader &)
TemplateField()
IMPORT_C TBool | TemplateField | ( | ) | const |
Returns ETrue if this field type is part of the default template.
UpdateTypeUidMapL(CPbkUidMap &)
void | UpdateTypeUidMapL | ( | CPbkUidMap & | aTypeUidMap | ) | const [private] |
UserCanAddField()
IMPORT_C TBool | UserCanAddField | ( | ) | const |
Returns ETrue if this field type can be added by the user.
VersitStorageType()
Returns the versit storage type of the field.
Member Data Documentation
TInt8
iAddItemOrdering
TInt8
| iAddItemOrdering | [private] |
HBufC * iAddItemText
HBufC * | iAddItemText | [private] |
Additional attributes Attributes in resource struct PHONEBOOK_FIELD
CContentType * iContentType
TInt8
iDefaultCase
TInt8
| iDefaultCase | [private] |
HBufC * iFieldName
HBufC * | iFieldName | [private] |
TStorageType
iFieldStorageType
Contacts Model attributes Attribute in resource struct FIELD
const CPbkFieldInfoGroup * iGroup
TPbkFieldGroupId
iGroupId
union CPbkFieldInfo::@68 iGroupLink
union CPbkFieldInfo::@68 | iGroupLink | [private] |
CPbkFieldImportType * iImportType
CPbkFieldImportType * | iImportType | [private] |
TInt8
iMultiplicity
TInt8
| iMultiplicity | [private] |
TInt8
iOrderingGroup
TInt8
| iOrderingGroup | [private] |
TInt8
iOrderingItem
TInt8
| iOrderingItem | [private] |
TInt8
iVersitStorageType
TInt8
| iVersitStorageType | [private] |
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.