CContactIdArray Class Reference
class CContactIdArray : public CBase |
Constructor & Destructor Documentation
CContactIdArray()
CContactIdArray | ( | ) | [private] |
~CContactIdArray()
IMPORT_C | ~CContactIdArray | ( | ) | |
The destructor frees all resources owned by the array, prior to its destruction.
Member Functions Documentation
AddL(TContactItemId)
Appends a contact ID to the array.
CloneL(const CContactIdArray *)
ConstructL()
void | ConstructL | ( | ) | [private] |
Count()
TInt
| Count | ( | ) | const [inline] |
Gets the number of contact IDs in the array.
ExternalizeL(RWriteStream &)
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.
Parameters
RWriteStream & aStream | Stream to which the object should be externalised. |
Find(TContactItemId)
Finds the index of the specified contact ID within the array.
InsertL(TInt, TContactItemId)
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.
Parameters
TInt aIndex | The index at which to insert the contact ID. |
TContactItemId aId | The contact ID to insert. |
InternalizeL(RReadStream &)
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.
Parameters
RReadStream & aStream | Stream from which the object should be internalised. |
MoveL(TInt, TInt)
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.
Parameters
TInt aOldIndex | The index of the ID to move. |
TInt aNewIndex | The new index for the contact ID. |
NewL()
Allocates and constructs a new contact ID array.
NewL(const CContactIdArray *)
Allocates and constructs a new contact ID array and then copies the contents of aArray into it.
NewLC()
Allocates and constructs a new contact ID array.
The pointer to the object is left on the cleanup stack.
NewLC(const CContactIdArray *)
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.
NewLC(RReadStream &)
Allocates and constructs a new contact ID array based on a RReadStream.
The pointer to the object is left on the cleanup stack.
Parameters
RReadStream & aStream | RReadStream containing object to internalize. |
Remove(TInt)
void | Remove | ( | TInt | aIndex | ) | [inline] |
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.
Parameters
TInt aIndex | The index of the contact ID to remove. |
Remove(TInt, TInt)
void | Remove | ( | TInt | aIndex, |
| TInt | aCount |
| ) | [inline] |
Removes a block of contact IDs from the array.
This function raises a panic if any of the following are true:-
Parameters
TInt aIndex | The index of the first contact ID to remove. |
TInt aCount | The number of contiguous contact IDs to delete from the array. If this is not specified, a value of one is assumed. |
Reset()
Removes all contact IDs from the array.
ReverseOrder()
IMPORT_C void | ReverseOrder | ( | ) | |
Reverses the order of the whole array.
operator[](TInt)
Gets the indexed TContactItemId.
Parameters
TInt aIndex | The position of the contact ID within the array, relative to zero. This must be non-negative and less than the number of objects in the array otherwise the operator raises a panic. |
operator[](TInt)
Gets the indexed TContactItemId.
Parameters
TInt aIndex | The position of the contact ID within the array, relative to zero. This must be non-negative and less than the number of objects in the array otherwise the operator raises a panic. |
Member Data Documentation
CArrayFixFlat< TContactItemId > * iIds
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.