CPhoneBookEntry Class Reference

class CPhoneBookEntry : public CBase

Inherits from

Constructor & Destructor Documentation

CPhoneBookEntry()

CPhoneBookEntry()[private]

First phase construction

~CPhoneBookEntry()

~CPhoneBookEntry()

Destruction

Member Functions Documentation

AddAdditionalNumber(const TDesC &)

IMPORT_C TIntAddAdditionalNumber(const TDesC &aAdditionalNumber)

Parameters

const TDesC & aAdditionalNumberAn additional number to be added to the entries list.

AddEmailAddress(const TDesC &)

IMPORT_C TIntAddEmailAddress(const TDesC &aEmailAddress)

Parameters

const TDesC & aEmailAddressAn email address to be added to the entries list.

AddSecondName(const TDesC &)

IMPORT_C TIntAddSecondName(const TDesC &aSecondName)

Parameters

const TDesC & aSecondNameAn secondname to be added to the entries list.

ConstructL()

voidConstructL()[private]

Second phase construction

DesSize(TInt &, const TDesC &)

voidDesSize(TInt &aSize,
const TDesC &aDes
)const [private]

Helper function

Parameters

TInt & aSizeThe size to be updated.
const TDesC & aDesThe descriptor being added.

ExternalizeToTlvEntry(CPhoneBookBuffer &)

IMPORT_C TIntExternalizeToTlvEntry(CPhoneBookBuffer &aPhoneBookBuffer)const

Writes the entry to a CPhoneBookBuffer in the TLV format.

Parameters

CPhoneBookBuffer & aPhoneBookBufferThe buffer to write the entry to.

GetAdditionalNumbers()

IMPORT_C const RArray< RBuf > &GetAdditionalNumbers()const

GetDiallingNumber()

IMPORT_C const TDesC &GetDiallingNumber()const

GetEmailAddresss()

IMPORT_C const RArray< RBuf > &GetEmailAddresss()const

GetFirstName()

IMPORT_C const TDesC &GetFirstName()const

GetIndex()

IMPORT_C TIntGetIndex()const

GetSecondNames()

IMPORT_C const RArray< RBuf > &GetSecondNames()const

GetText(TPtrC16 &, CPhoneBookBuffer::TPhBkTagType, CPhoneBookBuffer &)

TInt GetText(TPtrC16 &text,
CPhoneBookBuffer::TPhBkTagTypeaTagType,
CPhoneBookBuffer &aPhoneBookBuffer
)const [private]

Helper function

Gets a the next TPtrC16

Parameters

TPtrC16 & textA TPtrC to the next text entry
CPhoneBookBuffer::TPhBkTagType aTagType
CPhoneBookBuffer & aPhoneBookBufferThe phonebook buffer to read from

InternalizeFromTlvEntry(CPhoneBookBuffer &, TBool)

IMPORT_C TIntInternalizeFromTlvEntry(CPhoneBookBuffer &aPhoneBookBuffer,
TBoolaNewEntryTagRead = EFalse
)

Reads an entry from a CPhoneBookBuffer, this does not reset the object first.

Parameters

CPhoneBookBuffer & aPhoneBookBufferThe buffer to read from.
TBool aNewEntryTagRead = EFalseIf the TLV being read has a new entry tag or not.

NewL()

IMPORT_C CPhoneBookEntry *NewL()[static]

Factory function

NewLC()

IMPORT_C CPhoneBookEntry *NewLC()[static]

Factory function

Reset()

IMPORT_C voidReset()

Resets the object to its initial state.

SetDiallingNumber(const TDesC &)

IMPORT_C TIntSetDiallingNumber(const TDesC &aDiallingNumber)

Parameters

const TDesC & aDiallingNumber

SetFirstName(const TDesC &)

IMPORT_C TIntSetFirstName(const TDesC &aFirstName)

Parameters

const TDesC & aFirstNameThe firstname to be set.

SetIndex(TInt)

IMPORT_C voidSetIndex(TIntaIndex)

Parameters

TInt aIndexThe index to set.

TlvLength()

IMPORT_C TIntTlvLength()const

operator==(const CPhoneBookEntry &)

IMPORT_C TBooloperator==(const CPhoneBookEntry &aPhoneBookEntry)const

Parameters

const CPhoneBookEntry & aPhoneBookEntry

Member Data Documentation

RArray< RBuf > iAdditionalNumbers

RArray< RBuf >iAdditionalNumbers[private]

RBuf iDiallingNumber

RBuf iDiallingNumber[private]

RArray< RBuf > iEmailAddresss

RArray< RBuf >iEmailAddresss[private]

RBuf iFirstName

RBuf iFirstName[private]

TInt iIndex

TInt iIndex[private]

TBool iIndexSet

TBool iIndexSet[private]

RArray< RBuf > iSecondNames

RArray< RBuf >iSecondNames[private]