CPbk2StorePropertyArray Class Reference

class CPbk2StorePropertyArray : public CBase

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

Inherits from

Constructor & Destructor Documentation

CPbk2StorePropertyArray()

CPbk2StorePropertyArray ( ) [private]

~CPbk2StorePropertyArray()

~CPbk2StorePropertyArray ( )

Destructor

Member Functions Documentation

AppendFromArrayL(CPbk2StorePropertyArray &)

IMPORT_C void AppendFromArrayL ( 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 & aPropertyArray A property array that is copied into this property array.

AppendFromResourceL(TResourceReader &)

IMPORT_C void AppendFromResourceL ( 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 & aReader Resource reader pointed to a PHONEBOOK2_STORE_PROPERTY_ARRAY resource.

AppendL(CPbk2StoreProperty *)

IMPORT_C void AppendL ( CPbk2StoreProperty * aProperty )

Appends a new property to the array.

Parameters

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

At(TInt)

IMPORT_C const CPbk2StoreProperty & At ( TInt aIndex ) const

Returns the property at a given position.

Parameters

TInt aIndex The position to investigate.

ConstructFromResourceL(TResourceReader &)

void ConstructFromResourceL ( TResourceReader & aReader ) [private]

Parameters

TResourceReader & aReader

ConstructL()

void ConstructL ( ) [private]

Count()

IMPORT_C TInt Count ( ) const

Returns the number of properties in the array.

DeleteProperty(const TVPbkContactStoreUriPtr &)

IMPORT_C void DeleteProperty ( 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 & aUriPtr The 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 & aUriPtr The 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 & aReader Resource 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 &)

void RemoveDuplicates ( CPbk2StoreProperty & aProperty ) [private]

Parameters

CPbk2StoreProperty & aProperty

Member Data Documentation

RPointerArray< CPbk2StoreProperty > iStoreProperties

RPointerArray < CPbk2StoreProperty > iStoreProperties [private]