class CVPbkContactLinkArray : public CBase |
A read-only array of contact links. VPbkEng.lib
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() |
Private Member Functions | |
---|---|
CVPbkContactLinkArray() | |
void | ConstructL() |
void | ConstructL(const TDesC8 &, const MVPbkContactStoreList &) |
void | ConstructL(RReadStream &, const MVPbkContactStoreList &) |
TInt | DoCalculatePackedBufferSizeV2() |
void | DoFillPackedBufferV2L(RWriteStream &) |
void | DoInternalizeFromBufferL(RReadStream &, const MVPbkContactStoreList &) |
void | DoInternalizeFromBufferV2L(RReadStream &, const MVPbkContactStoreList &) |
void | InternalizeFromBufferL(RReadStream &, const MVPbkContactStoreList &) |
Private Attributes | |
---|---|
RPointerArray< MVPbkContactLink > | iLinks |
MVPbkContactStoreLoader * | iStoreLoader |
CStoreUris * | iStoreUris |
IMPORT_C void | AppendL | ( | MVPbkContactLink * | aLink | ) |
Appends a link to this array.
aLink != NULL
Array count is increased by one and the link is in the last element of the array.
MVPbkContactLink * aLink | the link object to append. This array takes ownership of the link if append is succesful. |
void | ConstructL | ( | const TDesC8 & | aPackedLinks, |
const MVPbkContactStoreList & | aOperations | |||
) | [private] |
const TDesC8 & aPackedLinks | |
const MVPbkContactStoreList & aOperations |
void | ConstructL | ( | RReadStream & | aStream, |
const MVPbkContactStoreList & | aOperations | |||
) | [private] |
RReadStream & aStream | |
const MVPbkContactStoreList & aOperations |
IMPORT_C void | Delete | ( | TInt | aIndex | ) |
Removes and deletes a link at aIndex from this array.
aIndex >= 0 && aIndex <= Count()
The array count is decreased by one.
TInt aIndex |
void | DoFillPackedBufferV2L | ( | RWriteStream & | aWriteStream | ) | const [private] |
RWriteStream & aWriteStream |
void | DoInternalizeFromBufferL | ( | RReadStream & | aReadStream, |
const MVPbkContactStoreList & | aStoreList | |||
) | [private] |
RReadStream & aReadStream | |
const MVPbkContactStoreList & aStoreList |
void | DoInternalizeFromBufferV2L | ( | RReadStream & | aReadStream, |
const MVPbkContactStoreList & | aStoreList | |||
) | [private] |
RReadStream & aReadStream | |
const MVPbkContactStoreList & aStoreList |
TInt | Find | ( | const MVPbkContactLink & | aLink | ) | const |
const MVPbkContactLink & aLink |
IMPORT_C void | InsertL | ( | MVPbkContactLink * | aLink, |
TInt | aIndex | |||
) |
Inserts a link to this array.
aLink != NULL
aIndex >= 0 && aIndex <= Count()
Array count is increased by one and the link is in the position marked by the aIndex element of the array.
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. |
void | InternalizeFromBufferL | ( | RReadStream & | aReadStream, |
const MVPbkContactStoreList & | aStoreList | |||
) | [private] |
RReadStream & aReadStream | |
const MVPbkContactStoreList & aStoreList |
IMPORT_C CVPbkContactLinkArray * | NewL | ( | ) | [static] |
Creates an empty link array.
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.
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.
A new instance of this class
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. |
IMPORT_C CVPbkContactLinkArray * | NewLC | ( | RReadStream & | aStream, |
const MVPbkContactStoreList & | aStoreList | |||
) | [static] |
Creates a link array from a stream of links.
A new instance of this class
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. |
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.
A new instance of this class
RReadStream & aStream | a stream of contact link that was created using MVPbkStreamable interface of MVPbkContactLink |
MVPbkContactStoreLoader & aLoader | the contact store loader for internalization. |
IMPORT_C void | Remove | ( | TInt | aIndex | ) |
Removes a link at aIndex from this array.
aIndex >= 0 && aIndex <= Count()
The array count is decreased by one.
TInt aIndex |