CViewContact Class Reference

class CViewContact : public CBase

The representation of a contact item used in contact views.

It stores the contact item ID and other information. This includes a buffer holding the contents of all the item's fields, an array of indexes into the buffer indicating the start position of each field and a hint bit field (a combination of CContactDatabase::TContactViewFilter values) which is used in filtered views.

The fields are defined by the view's sort order (RContactViewSortOrder).

Inherits from

Public Member Functions
CViewContact(TContactItemId)
~CViewContact()
IMPORT_C voidAddFieldL(const TDesC &)
IMPORT_C voidChangeToLightweightObject()
IMPORT_C TIntContactHint()
IMPORT_C TBoolContactMatchesFilter(TInt)
TViewContactType ContactType()
IMPORT_C TUidContactTypeUid()
voidCopyL(const CViewContact &)
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C TIntExternalizedSize()
IMPORT_C TPtrCField(TInt)
IMPORT_C TIntFieldCount()
TPtrC FindFirstPopulatedField(TInt, TInt &)
TBool HintFieldMatchesFilter(TInt, TInt)
TContactItemId Id()
IMPORT_C voidInternalizeL(RReadStream &)
TBool IsLightweightObject()
IMPORT_C TBoolIsSortable()
IMPORT_C CViewContact *NewL(const CViewContact &)
IMPORT_C CViewContact *NewL(TContactItemId, TInt)
IMPORT_C CViewContact *NewLC(TContactItemId)
CViewContact *NewLC(RReadStream &)
IMPORT_C voidReset()
IMPORT_C voidSetContactHint(TInt)
voidSetContactType(CViewContact::TViewContactType)
IMPORT_C voidSetContactTypeUid(TUid)
IMPORT_C voidSetFirstFieldForBlankContactL(const TDesC &)
voidSetId(TContactItemId)
Private Member Functions
voidConstructL(TInt)
voidConstructL(const CViewContact &)
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 Member Enumerations
enumTViewContactType { EContactItem, EGroup }
Private Attributes
TViewContactType iContactType
CViewContactExtension *iExtension
TContactItemId iId
RArray< TInt >iTextIndexes

Constructor & Destructor Documentation

CViewContact(TContactItemId)

IMPORT_CCViewContact(TContactItemIdaId)

Parameters

TContactItemId aId

~CViewContact()

IMPORT_C~CViewContact()

Member Functions Documentation

AddFieldL(const TDesC &)

IMPORT_C voidAddFieldL(const TDesC &aField)

Parameters

const TDesC & aField

ChangeToLightweightObject()

IMPORT_C voidChangeToLightweightObject()

ConstructL(TInt)

voidConstructL(TIntaLength = 0)[private]

Parameters

TInt aLength = 0

ConstructL(const CViewContact &)

voidConstructL(const CViewContact &aContact)[private]

Parameters

const CViewContact & aContact

ContactHint()

IMPORT_C TIntContactHint()const

ContactMatchesFilter(TInt)

IMPORT_C TBoolContactMatchesFilter(TIntaFilter)const

Parameters

TInt aFilter

ContactType()

TViewContactType ContactType()const [inline]

Gets the view item's type.

The view item's type.

ContactTypeUid()

IMPORT_C TUidContactTypeUid()const

CopyL(const CViewContact &)

voidCopyL(const CViewContact &aContact)

Parameters

const CViewContact & aContact

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

ExternalizedSize()

IMPORT_C TIntExternalizedSize()const

Field(TInt)

IMPORT_C TPtrCField(TIntaPosition)const

Parameters

TInt aPosition

FieldCount()

IMPORT_C TIntFieldCount()const

FindFirstPopulatedField(TInt, TInt &)

TPtrC FindFirstPopulatedField(TIntaOffset,
TInt &aFoundPosition
)const

Parameters

TInt aOffset
TInt & aFoundPosition

HintFieldMatchesFilter(TInt, TInt)

TBool HintFieldMatchesFilter(TIntaHintField,
TIntaFilter
)[static]

Parameters

TInt aHintField
TInt aFilter

Id()

TContactItemId Id()const [inline]

Gets the view item's ID.

The view item's ID.

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

IsLightweightObject()

TBool IsLightweightObject()const

IsSortable()

IMPORT_C TBoolIsSortable()const

NewL(const CViewContact &)

IMPORT_C CViewContact *NewL(const CViewContact &aContact)[static]

Parameters

const CViewContact & aContact

NewL(TContactItemId, TInt)

IMPORT_C CViewContact *NewL(TContactItemIdaId,
TIntaLength
)[static]

Parameters

TContactItemId aId
TInt aLength

NewLC(TContactItemId)

IMPORT_C CViewContact *NewLC(TContactItemIdaId)[static]

Parameters

TContactItemId aId

NewLC(RReadStream &)

CViewContact *NewLC(RReadStream &aStream)[static]

Parameters

RReadStream & aStream

Reset()

IMPORT_C voidReset()

SetContactHint(TInt)

IMPORT_C voidSetContactHint(TIntaHint)

Parameters

TInt aHint

SetContactType(CViewContact::TViewContactType)

voidSetContactType(CViewContact::TViewContactTypeaContactType)[inline]

Sets the view item's type.

Parameters

CViewContact::TViewContactType aContactTypeThe view item's type.

SetContactTypeUid(TUid)

IMPORT_C voidSetContactTypeUid(TUidaUid)

Parameters

TUid aUid

SetFirstFieldForBlankContactL(const TDesC &)

IMPORT_C voidSetFirstFieldForBlankContactL(const TDesC &aFirstField)

Parameters

const TDesC & aFirstField

SetId(TContactItemId)

voidSetId(TContactItemIdaId)[inline]

Sets the view item's ID.

Parameters

TContactItemId aIdThe contact item ID.

Member Enumerations Documentation

Enum TViewContactType

Defines whether the contact view item is a contact group.

Enumerators

EContactItem

The contact view item is not a contact group.

EGroup

The contact view item is a contact group (CContactGroup).

Member Data Documentation

TViewContactType iContactType

TViewContactType iContactType[private]

CViewContactExtension * iExtension

CViewContactExtension *iExtension[private]

TContactItemId iId

TContactItemId iId[private]

RArray< TInt > iTextIndexes

RArray< TInt >iTextIndexes[private]