#include <app/cntview.h>
class CContactConcatenatedView : public CContactViewBase |
Public Member Functions | |
---|---|
virtual HBufC * | AllFieldsLC(TInt, const TDesC &) |
virtual TContactItemId | AtL(TInt) |
virtual TAny * | CContactViewBase_Reserved_1(TFunction, TAny *) |
virtual const CViewContact & | ContactAtL(TInt) |
virtual TContactViewPreferences | ContactViewPreferences() |
virtual TInt | CountL() |
virtual TInt | FindL(TContactItemId) |
IMPORT_C CContactConcatenatedView * | NewL(MContactViewObserver &, const CContactDatabase &, RPointerArray< CContactViewBase > &) |
virtual const RContactViewSortOrder & | SortOrderL() |
Inherited Attributes | |
---|---|
CContactViewBase::iDb | |
CContactViewBase::iExtension | |
CContactViewBase::iState |
Inherited Enumerations | |
---|---|
CContactViewBase:TFunction | |
CContactViewBase:TSearchType | |
CContactViewBase:TState |
Concatenates multiple contact views into a single contiguous view.
The component views are ordered according to their order in the array passed into the NewL().
Reimplemented from CContactViewBase::AllFieldsLC(TInt,const TDesC &)const
Returns a descriptor containing the contents of all fields in an item in the view.
The fields are separated by aSeparator.
Parameter | Description |
---|---|
aIndex | The index into the view of the contact item. |
aSeparator | The string to use to separate the fields. |
Returns: Pointer to the contact item descriptor.
TContactItemId | AtL | ( | TInt | aIndex | ) | const [virtual] |
Reimplemented from CContactViewBase::AtL(TInt)const
Gets the contact item ID at the specified index into the concatenated view.
Parameter | Description |
---|---|
aIndex | Index into the concatenated view. |
Returns: The contact item ID.
Reimplemented from CContactViewBase::CContactViewBase_Reserved_1(TFunction,TAny *)
const CViewContact & | ContactAtL | ( | TInt | aIndex | ) | const [virtual] |
Reimplemented from CContactViewBase::ContactAtL(TInt)const
Gets the contact item at the specified index into the view.
Parameter | Description |
---|---|
aIndex | Index into the view. |
Returns: The contact item.
TContactViewPreferences | ContactViewPreferences | ( | ) | [virtual] |
Reimplemented from CContactViewBase::ContactViewPreferences()
Gets the view preferences for the first component view.
Returns: The view preferences.
TInt | CountL | ( | ) | const [virtual] |
Reimplemented from CContactViewBase::CountL()const
Gets the number of contact items in the concatenated view.
Returns: The number of items in the concatenated view.
TInt | FindL | ( | TContactItemId | aId | ) | const [virtual] |
Reimplemented from CContactViewBase::FindL(TContactItemId)const
Finds the index into the concatenated view of the specified contact item.
Parameter | Description |
---|---|
aId | The contact item ID to search for. |
Returns: The index of the first matching item in the concatenated view or KErrNotFound if no matching item can be found.
IMPORT_C CContactConcatenatedView * | NewL | ( | MContactViewObserver & | aObserver, |
const CContactDatabase & | aDb, | |||
RPointerArray< CContactViewBase > & | aComponentViews | |||
) | [static] |
Allocates and constructs a new CContactConcatenatedView object,
Parameter | Description |
---|---|
aObserver | An observer that receives notifications when this view is ready for use and when changes take place in it. The observer receives a TContactViewEvent::EReady event when the view is ready. An attempt to use the view before this notification causes a panic. |
aDb | The database that contains the contact items. |
aComponentViews | An array of pointers to the component views to append to this view. The concatenated view creates its own copy of this array and sets itself to be the observer of each of the component views, unless an error occurs, in which case the function leaves. |
Returns: The newly constructed concatenated view object.
const RContactViewSortOrder & | SortOrderL | ( | ) | const [virtual] |
Reimplemented from CContactViewBase::SortOrderL()const
Gets the sort order for the first component view.
Returns: The sort order.