TPbkContactEntry Class Reference

class TPbkContactEntry

Constructor & Destructor Documentation

TPbkContactEntry()

TPbkContactEntry()[inline]

Default constructor.

Member Functions Documentation

ContactId()

TContactItemId ContactId()const [inline]

Returns the contact id of this entry.

Destroy()

voidDestroy()[inline]

Destroys all resources held by this object. After calling Destroy() this object is unusable.

Destroy(TAny *)

voidDestroy(TAny *aSelf)[private, static]

Parameters

TAny * aSelf

IconId()

TPbkIconId IconId()const [inline]

Returns the Phonebook icon id, EPbkNullIconId means no icon.

Name()

const TDesC &Name()const [inline]

Returns the name. iName

NameBuf()

TPtr NameBuf()[inline]

Returns a modifiable descriptor to the name buffer. Call ReserveNameMaxLengthL() first to allocate space for the buffer.

ReserveL(HBufC *, TInt)

IMPORT_C HBufC *ReserveL(HBufC *aBuf,
TIntaMaxLength
)[private, static]

Reserves space for a HBufC member.

Parameters

HBufC * aBufthe buffer member to be enlarged
TInt aMaxLengththe maximum number of characters the buffer should be able to hold. If aMaxLength==0 this function does nothing.

ReserveNameMaxLengthL(TInt)

voidReserveNameMaxLengthL(TIntaMaxLength)[inline]

Reserves space for the name. Does not change existing name text.

Parameters

TInt aMaxLength

Reset()

voidReset()[inline]

Resets the contents of this entry.

ResetHBufC(HBufC *)

voidResetHBufC(HBufC *aBuf)[private, static, inline]

Resets member aBuf to empty text. ToTDesC(aBuf).Length()==0

Parameters

HBufC * aBuf

ResetName()

voidResetName()[inline]

Resets the name of this entry.

Name().Length()==0

SetContactItemId(TContactItemId)

voidSetContactItemId(TContactItemIdaContactId)[inline]

Sets the contact item id.

Parameters

TContactItemId aContactId

SetIconId(TPbkIconId)

voidSetIconId(TPbkIconIdaIconId)[inline]

Sets the icon id.

Parameters

TPbkIconId aIconId

ToTDesC(HBufC *)

const TDesC &ToTDesC(HBufC *aBuf)[private, static, inline]

Returns contents of aBuf as a const TDesC& or KNullDesC if !aBuf.

Parameters

HBufC * aBuf

Member Data Documentation

TContactItemId iContactId

TContactItemId iContactId[private]

TPbkIconId iIconId

TPbkIconId iIconId[private]

HBufC * iName

HBufC *iName[private]