TPbkContactItemField Class Reference
class TPbkContactItemField : public MPbkFieldData
|
Phonebook Contact item field class. This class extends Symbian Contacts model
CContactItemField
class capabilities to better suit Phonebook's needs.
Constructor & Destructor Documentation
TPbkContactItemField()
IMPORT_C
|
TPbkContactItemField
|
(
|
)
|
|
TPbkContactItemField(CContactItemField *, CPbkFieldInfo *)
Member Functions Documentation
Compare(const TPbkContactItemField &)
Compares two items against the group ordering.
DateTimeStorage()
Returns time storage of this field. If the storage type is not KStorageTypeDateTime the function raises a panic.
DefaultEmailField()
IMPORT_C
TBool
|
DefaultEmailField
|
(
|
)
|
const
|
DefaultEmailOverSmsField()
IMPORT_C
TBool
|
DefaultEmailOverSmsField
|
(
|
)
|
const
|
DefaultMmsField()
IMPORT_C
TBool
|
DefaultMmsField
|
(
|
)
|
const
|
DefaultPhoneNumberField()
IMPORT_C
TBool
|
DefaultPhoneNumberField
|
(
|
)
|
const
|
DefaultPocField()
IMPORT_C
TBool
|
DefaultPocField
|
(
|
)
|
const
|
DefaultSmsField()
IMPORT_C
TBool
|
DefaultSmsField
|
(
|
)
|
const
|
DefaultVideoNumberField()
IMPORT_C
TBool
|
DefaultVideoNumberField
|
(
|
)
|
const
|
DefaultVoipField()
IMPORT_C
TBool
|
DefaultVoipField
|
(
|
)
|
const
|
FieldInfo()
Returns the Phonebook field info object of this field.
GetTextL(TDes &)
IMPORT_C void
|
GetTextL
|
(
|
TDes
&
|
aText
|
)
|
const
|
Fills aText with field's text content. If field is of date type formats the date as text.
-
Exceptions
-
KErrOverflow
|
if aText is not big enough for the text. aText contents will be clipped to aText.MaxLength().
|
KErrNotSupported
|
if the field content cannot be represented as text.
|
Parameters
TDes
& aText
|
Fills parameter with field's content.
|
HasInvalidDate()
TBool
|
HasInvalidDate
|
(
|
)
|
[private]
|
IconId()
Returns an Phonebook icon id for this field.
IsEmpty()
IMPORT_C
TBool
|
IsEmpty
|
(
|
)
|
const
|
Returns ETrue if this field's contents is empty.
IsEmptyOrAllSpaces()
IMPORT_C
TBool
|
IsEmptyOrAllSpaces
|
(
|
)
|
const
|
Returns ETrue if this field's contents is empty or all spaces.
IsHidden()
IMPORT_C
TBool
|
IsHidden
|
(
|
)
|
const
|
Check if field is marked hidden.
IsSame(const TPbkContactItemField &)
Returns ETrue if this is the same field as aField.
ItemField()
Returns the embedded contact item field.
Label()
IMPORT_C
TPtrC
|
Label
|
(
|
)
|
const
|
Returns the label text of this field.
PbkFieldId()
Returns the field id of this field data.
PbkFieldText()
IMPORT_C
TPtrC
|
PbkFieldText
|
(
|
)
|
const [virtual]
|
Returns the text value of this field data.
PbkFieldType()
==KStrorageTypeText.
PbkFieldTime()
IMPORT_C
TTime
|
PbkFieldTime
|
(
|
)
|
const [virtual]
|
PbkFieldType()
Returns the type of this field data.
PrepareAfterLoadL()
void
|
PrepareAfterLoadL
|
(
|
)
|
[private]
|
PrepareForSaveL()
void
|
PrepareForSaveL
|
(
|
)
|
[private]
|
Set(CContactItemField *, CPbkFieldInfo *)
Sets the contents of this object after construction.
SetHidden(TBool)
IMPORT_C void
|
SetHidden
|
(
|
TBool
|
aHidden
|
)
|
|
Marks this field as hidden or unhidden.
Parameters
TBool
aHidden
|
ETrue marks as hidden EFalse removes the mark.
|
SetLabelL(const TDesC &)
IMPORT_C void
|
SetLabelL
|
(
|
const
TDesC
&
|
aLabel
|
)
|
|
Sets the label text of this field to aLabel.
Parameters
const
TDesC
& aLabel
|
Text to set as the label of this field.
|
SpeedDialIndexesL()
Returns an array of speed dial indexes assigned to this field, NULL if none.
StorageType()
Returns the storage type of this field.
Text()
IMPORT_C
TPtrC
|
Text
|
(
|
)
|
const
|
Returns this field's textual content.
TextStorage()
Returns the text storage object of this field. If the storage type is not KStorageTypeText the function raises a panic.
Time()
IMPORT_C
TTime
|
Time
|
(
|
)
|
const
|
Returns this field's date/time content.
UniqueFieldIdentity()
IMPORT_C
TInt
|
UniqueFieldIdentity
|
(
|
)
|
const
|
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!
Member Data Documentation
CContactItemField * iField
CPbkFieldInfo * iFieldInfo
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.