API published in: S60 1st Ed
API deprecated in: S60 5th Ed
Link against: pbkeng.lib
Required Capabilities
ReadUserData WriteUserData
#include <tpbkcontactitemfield.h>
Inherits MPbkFieldData.
This class extends Symbian Contacts model CContactItemField class capabilities to better suit Phonebook's needs.
Public Member Functions |
|
IMPORT_C | TPbkContactItemField () |
C++ default constructor. |
|
IMPORT_C | TPbkContactItemField (CContactItemField *aField, CPbkFieldInfo *aFieldInfo) |
C++ constructor. |
|
IMPORT_C void | Set (CContactItemField *aField, CPbkFieldInfo *aFieldInfo) |
Sets the contents of this object after construction. |
|
IMPORT_C TPbkIconId | IconId () const |
Returns an Phonebook icon id for this field. |
|
IMPORT_C CPbkFieldInfo & | FieldInfo () const |
Returns the Phonebook field info object of this field. |
|
IMPORT_C TPtrC | Text () const |
Returns this field's textual content. |
|
IMPORT_C TTime | Time () const |
Returns this field's date/time content. |
|
IMPORT_C void | GetTextL (TDes &aText) const |
Fills aText with field's text content. |
|
IMPORT_C TStorageType | StorageType () const |
Returns the storage type of this field. |
|
IMPORT_C CContactItemField & | ItemField () const |
Returns the embedded contact item field. |
|
IMPORT_C CContactTextField * | TextStorage () const |
Returns the text storage object of this field. |
|
IMPORT_C TPtrC | Label () const |
Returns the label text of this field. |
|
IMPORT_C void | SetLabelL (const TDesC &aLabel) |
Sets the label text of this field to aLabel. |
|
IMPORT_C void | SetHidden (TBool aHidden) |
Marks this field as hidden or unhidden. |
|
IMPORT_C TBool | IsHidden () const |
Check if field is marked hidden. |
|
IMPORT_C CContactDateField * | DateTimeStorage () const |
Returns time storage of this field. |
|
IMPORT_C TBool | IsSame (const TPbkContactItemField &aField) const |
Returns ETrue if this is the same field as aField. |
|
IMPORT_C CContactItemField & | ContactItemField () |
Converts this field to a CContactItemField. |
|
IMPORT_C const CContactItemField & | ContactItemField () const |
Converts this field to a const CContactItemField. |
|
IMPORT_C TInt | Compare (const TPbkContactItemField &aRhs) const |
Compares two items against the group ordering. |
|
IMPORT_C TInt | UniqueFieldIdentity () const |
Returns an unique id for this field. |
|
IMPORT_C TBool | IsEmpty () const |
Returns ETrue if this field's contents is empty. |
|
IMPORT_C TBool | IsEmptyOrAllSpaces () const |
Returns ETrue if this field's contents is empty or all spaces. |
|
IMPORT_C TBool | DefaultPhoneNumberField () const |
Returns ETrue is this field is a default phone number field. |
|
IMPORT_C TBool | DefaultVideoNumberField () const |
Returns ETrue if this field is a default video number field. |
|
IMPORT_C TBool | DefaultSmsField () const |
Returns ETrue is this field is a default SMS field. |
|
IMPORT_C TBool | DefaultEmailOverSmsField () const |
Returns ETrue is this field is a default SMS With Email field. |
|
IMPORT_C TBool | DefaultEmailField () const |
Returns ETrue is this field is a default email field. |
|
IMPORT_C TBool | DefaultMmsField () const |
Returns ETrue is this field is a default MMS field. |
|
IMPORT_C TBool | DefaultPocField () const |
Returns ETrue is this field is a default POC field. |
|
IMPORT_C TBool | DefaultVoipField () const |
Returns ETrue is this field is a default VOIP field. |
|
IMPORT_C CArrayFix< TInt > * | SpeedDialIndexesL () const |
Returns an array of speed dial indexes assigned to this field, NULL if none. |
|
IMPORT_C TStorageType | PbkFieldType () const |
Returns the type of this field data. |
|
IMPORT_C TPbkFieldId | PbkFieldId () const |
Returns the field id of this field data. |
|
IMPORT_C TPtrC | PbkFieldText () const |
Returns the text value of this field data. |
|
IMPORT_C TTime | PbkFieldTime () const |
Returns the Time value of this field data. |
|
Friends |
|
class | CPbkContactItem |
CPbkContactItem calls private functions of this class. |
|
IMPORT_C TBool | operator== (const TPbkContactItemField &aLeft, const TPbkContactItemField &aRight) |
Returns ETrue if aLeft has same contents as aRight. |
|
C++ default constructor. |
|
C++ constructor.
|
|
Compares two items against the group ordering.
|
|
Converts this field to a const CContactItemField.
|
|
Converts this field to a CContactItemField.
|
|
Returns time storage of this field. If the storage type is not KStorageTypeDateTime the function raises a panic.
|
|
Returns ETrue is this field is a default email field.
|
|
Returns ETrue is this field is a default SMS With Email field.
|
|
Returns ETrue is this field is a default MMS field.
|
|
Returns ETrue is this field is a default phone number field.
|
|
Returns ETrue is this field is a default POC field.
|
|
Returns ETrue is this field is a default SMS field.
|
|
Returns ETrue if this field is a default video number field.
|
|
Returns ETrue is this field is a default VOIP field.
|
|
Returns the Phonebook field info object of this field.
|
|
Fills aText with field's text content. If field is of date type formats the date as text.
|
|
Returns an Phonebook icon id for this field.
|
|
Returns ETrue if this field's contents is empty.
|
|
Returns ETrue if this field's contents is empty or all spaces.
|
|
Check if field is marked hidden.
|
|
Returns ETrue if this is the same field as aField.
|
|
Returns the embedded contact item field.
|
|
Returns the label text of this field.
|
|
Returns the field id of this field data. Implements MPbkFieldData. |
|
Returns the text value of this field data. PbkFieldType()==KStrorageTypeText. Implements MPbkFieldData. |
|
Returns the Time value of this field data. PbkFieldType()==KStoragetTypeDateTime. Implements MPbkFieldData. |
|
Returns the type of this field data.
Implements MPbkFieldData. |
|
Sets the contents of this object after construction.
|
|
Marks this field as hidden or unhidden.
|
|
Sets the label text of this field to aLabel.
|
|
Returns an array of speed dial indexes assigned to this field, NULL if none.
|
|
Returns the storage type of this field.
|
|
Returns this field's textual content.
|
|
Returns the text storage object of this field. If the storage type is not KStorageTypeText the function raises a panic.
|
|
Returns this field's date/time content.
|
|
Returns an unique id for this field. NOTE: Returned id is valid only as long as this object is in memory in other words the id is not persistent!
|
|
CPbkContactItem calls private functions of this class. |
|
Returns ETrue if aLeft has same contents as aRight. Doesn't compare everything (all field flags etc.) but all the attributes that could affect how this field looks like in the Phonebook UI. This function can be used to determine wheter to update this field in the UI. |