class CVPbkContactStoreUriArray : public CBase |
Virtual Phonebook contact store URI array. Responsible for implementing a container for contact store URI's. In addition to common container behaviour the class can internalize and externalize store URI's from and to descriptors.
Public Member Functions | |
---|---|
~CVPbkContactStoreUriArray() | |
IMPORT_C void | AppendAllL(const CVPbkContactStoreUriArray &) |
IMPORT_C void | AppendL(const TVPbkContactStoreUriPtr &) |
IMPORT_C TInt | Count() |
IMPORT_C TBool | IsIncluded(const TVPbkContactStoreUriPtr &) |
IMPORT_C CVPbkContactStoreUriArray * | NewL() |
IMPORT_C CVPbkContactStoreUriArray * | NewLC() |
IMPORT_C CVPbkContactStoreUriArray * | NewLC(const TDesC8 &) |
IMPORT_C HBufC8 * | PackLC() |
IMPORT_C void | Remove(const TVPbkContactStoreUriPtr &) |
IMPORT_C TVPbkContactStoreUriPtr | operator[](TInt) |
Private Member Functions | |
---|---|
CVPbkContactStoreUriArray() | |
TInt | CalculateExternalizedSize() |
void | ConstructL() |
void | ConstructL(const TDesC8 &) |
Private Attributes | |
---|---|
RPointerArray< CVPbkContactStoreUri > | iUris |
IMPORT_C void | AppendAllL | ( | const CVPbkContactStoreUriArray & | aUriArray | ) |
Appends array of StoreUriPtr to this array.
const CVPbkContactStoreUriArray & aUriArray | Array of Store URIs to add array. |
IMPORT_C void | AppendL | ( | const TVPbkContactStoreUriPtr & | aStoreUri | ) |
Appends StoreUriPtr to this array.
const TVPbkContactStoreUriPtr & aStoreUri | Store URI to add array. |
void | ConstructL | ( | const TDesC8 & | aPackedUris | ) | [private] |
const TDesC8 & aPackedUris |
IMPORT_C TInt | Count | ( | ) | const |
Returns the count of Store URIs in this array.
Count of Store URIs in array.
IMPORT_C TBool | IsIncluded | ( | const TVPbkContactStoreUriPtr & | aStoreUri | ) | const |
Checks whether the given URI is already in this array.
ETrue if Store URI is in this array, EFalse if not.
const TVPbkContactStoreUriPtr & aStoreUri | Store URI to check. |
IMPORT_C CVPbkContactStoreUriArray * | NewL | ( | ) | [static] |
Creates a new instance of this class. Newly created instance of this class.
IMPORT_C CVPbkContactStoreUriArray * | NewLC | ( | ) | [static] |
Creates a new instance of this class. Leaves the instance to the cleanup stack. Newly created instance of this class.
IMPORT_C CVPbkContactStoreUriArray * | NewLC | ( | const TDesC8 & | aPackedUris | ) | [static] |
Creates a new instance of this class internalizing the contents of the descriptor. Newly created instance of this class.
const TDesC8 & aPackedUris | Packed URIs created by using the PackLC functionality of this class. |
IMPORT_C HBufC8 * | PackLC | ( | ) | const |
Packs this URI array to a heap descriptor.
Packed URI array in a heap descriptor.
IMPORT_C void | Remove | ( | const TVPbkContactStoreUriPtr & | aStoreUri | ) |
Removes StoreUriPtr from this array.
const TVPbkContactStoreUriPtr & aStoreUri | Store Uri to add array. |
IMPORT_C TVPbkContactStoreUriPtr | operator[] | ( | TInt | aIndex | ) | const |
Gets the URI pointer descriptor from this array at the given index.
URI pointer descriptor.
TInt aIndex | Index which URI Ptr is needed |