#include <app/CVPbkContactLinkArray.h>
class CVPbkContactLinkArray : public CBase |
Public Member Functions | |
---|---|
~CVPbkContactLinkArray() | |
IMPORT_C void | AppendL(MVPbkContactLink *) |
const MVPbkContactLink & | At(TInt) |
TInt | Count() |
IMPORT_C void | Delete(TInt) |
TInt | Find(const MVPbkContactLink &) |
IMPORT_C void | InsertL(MVPbkContactLink *, TInt) |
IMPORT_C CVPbkContactLinkArray * | NewL() |
IMPORT_C CVPbkContactLinkArray * | NewLC() |
IMPORT_C CVPbkContactLinkArray * | NewLC(const TDesC8 &, const MVPbkContactStoreList &) |
IMPORT_C CVPbkContactLinkArray * | NewLC(RReadStream &, const MVPbkContactStoreList &) |
CVPbkContactLinkArray * | NewLC(RReadStream &, MVPbkContactStoreLoader &) |
HBufC8 * | PackLC() |
IMPORT_C TInt | PackedBufferSize() |
IMPORT_C void | Remove(TInt) |
IMPORT_C void | Reset() |
IMPORT_C void | ResetAndDestroy() |
const MVPbkStreamable * | Streamable() |
A read-only array of contact links.
IMPORT_C void | AppendL | ( | MVPbkContactLink * | aLink | ) |
Appends a link to this array.
Parameter | Description |
---|---|
aLink | the link object to append. This array takes ownership of the link if append is succesful. |
IMPORT_C void | InsertL | ( | MVPbkContactLink * | aLink, |
TInt | aIndex | |||
) |
Inserts a link to this array.
KErrNoMemory |
if out of memory. |
aIndex >= 0 && aIndex <= Count()
Parameter | Description |
---|---|
aLink | the link object to insert. This array takes ownership of the link if insertion is succesful. |
aIndex | position where to insert the link. |
IMPORT_C CVPbkContactLinkArray * | NewL | ( | ) | [static] |
Creates an empty link array.
Returns: A new instance of this class
IMPORT_C CVPbkContactLinkArray * | NewLC | ( | ) | [static] |
Creates an empty link array. Leaves the created array object on the cleanup stack.
Returns: A new instance of this class
IMPORT_C CVPbkContactLinkArray * | NewLC | ( | const TDesC8 & | aPackedLinks, |
const MVPbkContactStoreList & | aStoreList | |||
) | [static] |
Creates a link array from a packed descriptor of links.
Parameter | Description |
---|---|
aPackedLinks | a buffer that was created using PackLC of MVPbkContactLinkArray or MVPbkContactLink |
aStoreList | the list of stores that contain the stores that links belong. |
Returns: A new instance of this class
IMPORT_C CVPbkContactLinkArray * | NewLC | ( | RReadStream & | aStream, |
const MVPbkContactStoreList & | aStoreList | |||
) | [static] |
Creates a link array from a stream of links.
Parameter | Description |
---|---|
aStream | a stream of contact link that was created using MVPbkStreamable interface of MVPbkContactLink |
aStoreList | the list of stores that contain the stores that links belong. |
Returns: A new instance of this class
CVPbkContactLinkArray * | NewLC | ( | RReadStream & | aStream, |
MVPbkContactStoreLoader & | aLoader | |||
) | [static] |
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.
Parameter | Description |
---|---|
aStream | a stream of contact link that was created using MVPbkStreamable interface of MVPbkContactLink |
aLoader | the contact store loader for internalization. |
Returns: A new instance of this class
IMPORT_C void | Reset | ( | ) |
Resets this array but doesn't destroy links