|
||
class CContactIdArray : public CBase;
Array of contact item IDs (TContactItemIds).
Instances of this class are used in several contact database functions, for instance CContactDatabase::DeleteContactsL()
.
CBase
- Base class for all classes to be instantiated on the heap
CContactIdArray
- Array of contact item IDs (TContactItemIds)
Defined in CContactIdArray
:
AddL()
Appends a contact ID to the arrayCount()
Gets the number of contact IDs in the arrayExternalizeL()
Externalises a CContactIdArray object to a write streamFind()
Finds the index of the specified contact ID within the arrayInsertL()
Inserts a contact ID into the arrayInternalizeL()
Internalises a CContactIdArray object from a read streamMoveL()
Moves a contact ID within the arrayNewL()
Allocates and constructs a new contact ID arrayNewL()
Allocates and constructs a new contact ID array and then copies the contents of aArray into itNewLC()
Allocates and constructs a new contact ID arrayNewLC()
Allocates and constructs a new contact ID array and then copies the contents of aArray into itRemove()
Removes the indexed contact ID from the arrayRemove()
Removes a block of contact IDs from the arrayReset()
Removes all contact IDs from the arrayReverseOrder()
Reverses the order of the whole arrayoperator[]()
Gets the indexed TContactItemIdoperator[]()
Gets the indexed TContactItemId~CContactIdArray()
The destructor frees all resources owned by the array, prior to its destructionInherited from CBase
:
Delete()
Deletes the specified objectExtension_()
Extension functionoperator new()
Initialises the object to binary zeroesstatic IMPORT_C CContactIdArray *NewL();
Allocates and constructs a new contact ID array.
|
static IMPORT_C CContactIdArray *NewLC();
Allocates and constructs a new contact ID array.
The pointer to the object is left on the cleanup stack.
|
static IMPORT_C CContactIdArray *NewL(const CContactIdArray *aArray);
Allocates and constructs a new contact ID array and then copies the contents of aArray into it.
|
|
static IMPORT_C CContactIdArray *NewLC(const CContactIdArray *aArray);
Allocates and constructs a new contact ID array and then copies the contents of aArray into it.
The pointer to the object is left on the cleanup stack.
|
|
IMPORT_C ~CContactIdArray();
The destructor frees all resources owned by the array, prior to its destruction.
inline const TContactItemId &operator[](TInt aIndex) const;
Gets the indexed TContactItemId.
|
|
inline TContactItemId &operator[](TInt aIndex);
Gets the indexed TContactItemId.
|
|
inline TInt Count() const;
Gets the number of contact IDs in the array.
|
IMPORT_C TInt Find(TContactItemId aId) const;
Finds the index of the specified contact ID within the array.
|
|
IMPORT_C void AddL(TContactItemId aId);
Appends a contact ID to the array.
|
inline void Remove(TInt aIndex);
Removes the indexed contact ID from the array.
The index value must not be negative and must not be greater than the number of elements in the array, otherwise the function raises a panic.
|
inline void Remove(TInt aIndex, TInt aCount);
Removes a block of contact IDs from the array.
This function raises a panic if any of the following are true:-
aCount is negative
aIndex is negative or is greater than the number of elements currently in the array
the sum of aIndex and aCount is greater than the number of elements currently in the array
|
inline void InsertL(TInt aIndex, TContactItemId aId);
Inserts a contact ID into the array.
The index must be valid or a panic occurs.
The function may attempt to expand the array buffer. If there is insufficient memory available, the function leaves. The leave code is one of the system error codes. If the function leaves, the array is left in the state it was in before the call.
|
IMPORT_C void MoveL(TInt aOldIndex, TInt aNewIndex);
Moves a contact ID within the array.
Note: both indexes must be valid or a panic occurs.
|
IMPORT_C void InternalizeL(RReadStream &aStream);
Internalises a CContactIdArray object from a read stream. The presence of this function means that the standard templated
operator>>()
(defined in s32strm.h
) is available to internalise objects of this class.
|
IMPORT_C void ExternalizeL(RWriteStream &aStream) const;
Externalises a CContactIdArray object to a write stream. The presence of this function means that the standard templated operator<<()
(defined in s32strm.h
) is available to externalise objects of this class.
|