CVPbkContactLinkArray Class Reference
class CVPbkContactLinkArray : public CBase |
A read-only array of contact links. VPbkEng.lib
Constructor & Destructor Documentation
CVPbkContactLinkArray()
CVPbkContactLinkArray | ( | ) | [private, inline] |
Member Functions Documentation
AppendL(MVPbkContactLink *)
Appends a link to this array.
- Pre-condition
- aLink != NULL
- Post-condition
- Array count is increased by one and the link is in the last element of the array.
Parameters
MVPbkContactLink * aLink | the link object to append. This array takes ownership of the link if append is succesful. |
ConstructL()
void | ConstructL | ( | ) | [private, inline] |
ConstructL(const TDesC8 &, const MVPbkContactStoreList &)
ConstructL(RReadStream &, const MVPbkContactStoreList &)
Delete(TInt)
IMPORT_C void | Delete | ( | TInt | aIndex | ) | |
Removes and deletes a link at aIndex from this array.
- Pre-condition
- aIndex >= 0 && aIndex <= Count()
- Post-condition
- The array count is decreased by one.
DoCalculatePackedBufferSizeV2()
TInt
| DoCalculatePackedBufferSizeV2 | ( | ) | const [private] |
DoFillPackedBufferV2L(RWriteStream &)
void | DoFillPackedBufferV2L | ( | RWriteStream & | aWriteStream | ) | const [private] |
DoInternalizeFromBufferL(RReadStream &, const MVPbkContactStoreList &)
DoInternalizeFromBufferV2L(RReadStream &, const MVPbkContactStoreList &)
Find(const MVPbkContactLink &)
InsertL(MVPbkContactLink *, TInt)
Inserts a link to this array.
- Exceptions
-
KErrNoMemory |
if out of memory.
|
- Pre-condition
- aLink != NULL
- aIndex >= 0 && aIndex <= Count()
- Post-condition
- Array count is increased by one and the link is in the position marked by the aIndex element of the array.
Parameters
MVPbkContactLink * aLink | the link object to insert. This array takes ownership of the link if insertion is succesful. |
TInt aIndex | position where to insert the link. |
InternalizeFromBufferL(RReadStream &, const MVPbkContactStoreList &)
NewL()
Creates an empty link array.
NewLC()
Creates an empty link array. Leaves the created array object on the cleanup stack.
NewLC(const TDesC8 &, const MVPbkContactStoreList &)
Creates a link array from a packed descriptor of links.
Parameters
const TDesC8 & aPackedLinks | a buffer that was created using PackLC of MVPbkContactLinkArray or MVPbkContactLink |
const MVPbkContactStoreList & aStoreList | the list of stores that contain the stores that links belong. |
NewLC(RReadStream &, const MVPbkContactStoreList &)
Creates a link array from a stream of links.
Parameters
RReadStream & aStream | a stream of contact link that was created using MVPbkStreamable interface of MVPbkContactLink |
const MVPbkContactStoreList & aStoreList | the list of stores that contain the stores that links belong. |
NewLC(RReadStream &, MVPbkContactStoreLoader &)
Creates a link array from a stream of links. Uses aLoader to find and load stores. aLoader must exist the life time of this object.
Parameters
RReadStream & aStream | a stream of contact link that was created using MVPbkStreamable interface of MVPbkContactLink |
MVPbkContactStoreLoader & aLoader | the contact store loader for internalization. |
PackedBufferSize()
IMPORT_C TInt | PackedBufferSize | ( | ) | const |
Returns the size of the packed link array
Remove(TInt)
IMPORT_C void | Remove | ( | TInt | aIndex | ) | |
Removes a link at aIndex from this array.
- Pre-condition
- aIndex >= 0 && aIndex <= Count()
- Post-condition
- The array count is decreased by one.
Reset()
Resets this array but doesn't destroy links
ResetAndDestroy()
IMPORT_C void | ResetAndDestroy | ( | ) | |
Resets the array and destroys the links
Member Data Documentation
RPointerArray< MVPbkContactLink > iLinks
MVPbkContactStoreLoader * iStoreLoader
CStoreUris * iStoreUris
CStoreUris * | iStoreUris | [private] |
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.