Location:
cntdef.h
Link against: cntmodel.lib
CContactIdArray
Supported from 5.0
Array of contact item IDs (TContactItemId
s). Instances
of this class are passed to several contact database functions, for instance
CContactDatabase::DeleteContactsL()
.
|
Defined in CContactIdArray
:
AddL()
, Count()
, ExternalizeL()
, Find()
, InsertL()
, InternalizeL()
, MoveL()
, NewL()
, NewLC()
, Remove()
, Reset()
, ReverseOrder()
, operator[]
, ~CContactIdArray()
Inherited from CBase
:
operator new()
static CContactIdArray* NewL();
static CContactIdArray* NewL(const CContactIdArray* aArray);
Allocates and constructs a new contact ID array — overloaded function. The contents of the array may be copied from another array.
|
|
static CContactIdArray* NewLC();
static CContactIdArray* NewLC(const CContactIdArray* aArray);
Allocates and constructs a new contact ID array — overloaded function. The contents of the array may be copied from another array. The pointer to the object is left on the cleanup stack.
|
|
~CContactIdArray();
The destructor frees all resources owned by the array, prior to its destruction.
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.
|
|
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.
|
|
TContactItemId& operator[](TInt aIndex);
const TContactItemId& operator[](TInt aIndex) const;
Gets the indexed TContactItemId
. The compiler chooses the
appropriate operator variant depending on the context of the
call.
|
|
void AddL(TContactItemId aId);
Appends a contact ID to the array.
|
void Remove(TInt aIndex);
Removes the indexed contact ID from the array.
Note:
The index value must not be negative and must not be greater than the number of elements currently in the array, otherwise the function raises a panic.
|
void Remove(TInt aIndex,TInt aCount);
Removes a block of contact IDs from the array.
Notes:
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
|
void InsertL(TInt aIndex,TContactItemId aId);
Inserts a contact ID into the array.
Note:
The index must be valid or a panic occurs.
|
|
TInt Find(TContactItemId aId) const;
Finds the index of the specified contact ID within the array.
|
|
void MoveL(TInt aOldIndex,TInt aNewIndex);
Moves a contact ID within the array.
Note:
Both indexes must be valid or a panic occurs.
|
TInt Count() const;
Gets the number of contact IDs in the array.
|