CPbk2StorePropertyArray Class Reference

class CPbk2StorePropertyArray : public CBase

Phonebook 2 contact store property array. Collection of Phonebook 2 store property objects.

Inherits from

  • CPbk2StorePropertyArray

Constructor & Destructor Documentation

CPbk2StorePropertyArray()

CPbk2StorePropertyArray()[private]

~CPbk2StorePropertyArray()

~CPbk2StorePropertyArray()

Destructor

Member Functions Documentation

AppendFromArrayL(CPbk2StorePropertyArray &)

IMPORT_C voidAppendFromArrayL(CPbk2StorePropertyArray &aPropertyArray)

Appends new store properties from an existing array If this array already contains a property for the URI the old one is removed.

Parameters

CPbk2StorePropertyArray & aPropertyArrayA property array that is copied into this property array.

AppendFromResourceL(TResourceReader &)

IMPORT_C voidAppendFromResourceL(TResourceReader &aReader)

Appends new store properties from the resources. If this array already contains a property for the URI the old one is removed.

Parameters

TResourceReader & aReaderResource reader pointed to a PHONEBOOK2_STORE_PROPERTY_ARRAY resource.

AppendL(CPbk2StoreProperty *)

IMPORT_C voidAppendL(CPbk2StoreProperty *aProperty)

Appends a new property to the array.

Parameters

CPbk2StoreProperty * aPropertyThe new property to append. Ownership changes. Client must release the ownership after the call.

At(TInt)

IMPORT_C const CPbk2StoreProperty &At(TIntaIndex)const

Returns the property at a given position.

Parameters

TInt aIndexThe position to investigate.

ConstructFromResourceL(TResourceReader &)

voidConstructFromResourceL(TResourceReader &aReader)[private]

Parameters

TResourceReader & aReader

ConstructL()

voidConstructL()[private]

Count()

IMPORT_C TIntCount()const

Returns the number of properties in the array.

DeleteProperty(const TVPbkContactStoreUriPtr &)

IMPORT_C voidDeleteProperty(const TVPbkContactStoreUriPtr &aUriPtr)

Deletes a property from the array. Safe to call even if there is no property for the URI in the array.

Parameters

const TVPbkContactStoreUriPtr & aUriPtrThe URI of the store that identifies the property to be removed.

FindProperty(const TVPbkContactStoreUriPtr &)

IMPORT_C const CPbk2StoreProperty *FindProperty(const TVPbkContactStoreUriPtr &aUriPtr)const

Finds a property from the array.

Parameters

const TVPbkContactStoreUriPtr & aUriPtrThe URI of the store to investigate.

FindPropertyIndex(const TVPbkContactStoreUriPtr &)

TInt FindPropertyIndex(const TVPbkContactStoreUriPtr &aUriPtr)[private]

Parameters

const TVPbkContactStoreUriPtr & aUriPtr

NewL(TResourceReader &)

IMPORT_C CPbk2StorePropertyArray *NewL(TResourceReader &aReader)[static]

Creates a new instance of this class.

PHONEBOOK2_STORE_PROPERTY_ARRAY

Parameters

TResourceReader & aReaderResource reader pointed to a PHONEBOOK2_STORE_PROPERTY_ARRAY resource.

NewL()

IMPORT_C CPbk2StorePropertyArray *NewL()[static]

Creates a new instance of this class. Constructs the core Phonebook 2 store property array.

RemoveDuplicates(CPbk2StoreProperty &)

voidRemoveDuplicates(CPbk2StoreProperty &aProperty)[private]

Parameters

CPbk2StoreProperty & aProperty

Member Data Documentation

RPointerArray< CPbk2StoreProperty > iStoreProperties

RPointerArray< CPbk2StoreProperty >iStoreProperties[private]