class CContactFindView : public CContactViewBase |
Provides a view of an existing CContactViewBase-derived object, populated using search criteria.
The find view only contains contact items from the underlying view that match the search criteria.
The find view observes its underlying view so that it is kept up to date if the contents of the underlying view change.
The search criteria (one or more words) are held in an MDesCArray object. The fields involved in the search are those that have been used to sort the underlying view.
Public Member Functions | |
---|---|
~CContactFindView() | |
HBufC * | AllFieldsLC(TInt, const TDesC &) |
TContactItemId | AtL(TInt) |
TAny * | CContactViewBase_Reserved_1(TFunction, TAny *) |
const CViewContact & | ContactAtL(TInt) |
TContactViewPreferences | ContactViewPreferences() |
TInt | CountL() |
TInt | FindL(TContactItemId) |
IMPORT_C CContactFindView * | NewL(const CContactDatabase &, CContactViewBase &, MContactViewObserver &, MDesCArray *) |
IMPORT_C CContactFindView * | NewL(const CContactDatabase &, CContactViewBase &, MContactViewObserver &, MDesCArray *, TSearchType) |
IMPORT_C CContactFindView * | NewL(CContactViewBase &, const CContactDatabase &, MContactViewObserver &, MDesCArray *) |
IMPORT_C CContactFindView * | NewL(CContactViewBase &, const CContactDatabase &, MContactViewObserver &, MDesCArray *, TSearchType) |
IMPORT_C void | RefineFindViewL(MDesCArray *) |
const RContactViewSortOrder & | SortOrderL() |
Protected Member Functions | |
---|---|
IMPORT_C void | UpdateFindViewL() |
Private Member Functions | |
---|---|
CContactFindView(const CContactDatabase &, CContactViewBase &, TSearchType) | |
void | ConstructL(MContactViewObserver &, MDesCArray *) |
void | CopyNewFindWordsL(MDesCArray *) |
void | DeleteFindContacts() |
void | DestroyFindWordsArray() |
void | HandleAddEventL(TContactViewEvent &) |
void | HandleContactViewEvent(const CContactViewBase &, const TContactViewEvent &) |
void | HandleRemoveEventL(TContactViewEvent &) |
TInt | InsertContact(const CViewContact *) |
void | TightenFindViewCriteriaL() |
Inherited Enumerations | |
---|---|
CContactViewBase:TFunction | |
CContactViewBase:TSearchType | |
CContactViewBase:TState |
Private Attributes | |
---|---|
TUint | iClassVersion |
RPointerArray< CViewContact > | iFindContacts |
CPtrCArray * | iFindWords |
const TSearchType | iSearchType |
CContactViewBase & | iView |
Inherited Attributes | |
---|---|
CContactViewBase::iDb | |
CContactViewBase::iExtension | |
CContactViewBase::iState |
CContactFindView | ( | const CContactDatabase & | aDb, |
CContactViewBase & | aView, | ||
TSearchType | aSearchType | ||
) | [private] |
const CContactDatabase & aDb | |
CContactViewBase & aView | |
TSearchType aSearchType |
HBufC * | AllFieldsLC | ( | TInt | aIndex, |
const TDesC & | aSeparator | |||
) | const [virtual] |
Returns a descriptor containing the contents of all fields for an item in the view.
The field separator is used to separate the contents of each field. It is not appended to the last field.
capability
ReadUserData
Pointer to the contact item descriptor.
TContactItemId | AtL | ( | TInt | aIndex | ) | const [virtual] |
Returns the contact item ID at the specified index into the view.
capability
ReadUserData
The contact item ID.
TInt aIndex | Index of the contact item ID into the view. |
TAny * | CContactViewBase_Reserved_1 | ( | TFunction | aFunction, |
TAny * | aParams | |||
) | [virtual] |
void | ConstructL | ( | MContactViewObserver & | aObserver, |
MDesCArray * | aFindWords | |||
) | [private] |
MContactViewObserver & aObserver | |
MDesCArray * aFindWords |
const CViewContact & | ContactAtL | ( | TInt | aIndex | ) | const [virtual] |
Returns the contact item at the specified index into the view.
capability
ReadUserData
The contact item.
TInt aIndex | Index of the contact item into the view. |
TContactViewPreferences | ContactViewPreferences | ( | ) | [virtual] |
Gets the view preferences.
capability
ReadUserData
The view preferences.
void | CopyNewFindWordsL | ( | MDesCArray * | aFindWords | ) | [private] |
MDesCArray * aFindWords |
TInt | CountL | ( | ) | const [virtual] |
Returns the number of contact items in the view.
capability
ReadUserData
The number of contact items in the view.
TInt | FindL | ( | TContactItemId | aId | ) | const [virtual] |
Returns the index into the view of the specified contact item.
capability
ReadUserData
The index into the view of the contact item ID, or KErrNotFound if no matching ID can be found.
TContactItemId aId | The contact item ID to search for. |
void | HandleAddEventL | ( | TContactViewEvent & | aEvent | ) | [private] |
TContactViewEvent & aEvent |
void | HandleContactViewEvent | ( | const CContactViewBase & | aView, |
const TContactViewEvent & | aEvent | |||
) | [private, virtual] |
const CContactViewBase & aView | |
const TContactViewEvent & aEvent |
void | HandleRemoveEventL | ( | TContactViewEvent & | aEvent | ) | [private] |
TContactViewEvent & aEvent |
TInt | InsertContact | ( | const CViewContact * | aNewContact | ) | [private] |
const CViewContact * aNewContact |
IMPORT_C CContactFindView * | NewL | ( | const CContactDatabase & | aDb, |
CContactViewBase & | aView, | |||
MContactViewObserver & | aObserver, | |||
MDesCArray * | aFindWords | |||
) | [static] |
const CContactDatabase & aDb | |
CContactViewBase & aView | |
MContactViewObserver & aObserver | |
MDesCArray * aFindWords |
IMPORT_C CContactFindView * | NewL | ( | const CContactDatabase & | aDb, |
CContactViewBase & | aView, | |||
MContactViewObserver & | aObserver, | |||
MDesCArray * | aFindWords, | |||
TSearchType | aSearchType | |||
) | [static] |
const CContactDatabase & aDb | |
CContactViewBase & aView | |
MContactViewObserver & aObserver | |
MDesCArray * aFindWords | |
TSearchType aSearchType |
IMPORT_C CContactFindView * | NewL | ( | CContactViewBase & | aView, |
const CContactDatabase & | aDb, | |||
MContactViewObserver & | aObserver, | |||
MDesCArray * | aFindWords | |||
) | [static] |
CContactViewBase & aView | |
const CContactDatabase & aDb | |
MContactViewObserver & aObserver | |
MDesCArray * aFindWords |
IMPORT_C CContactFindView * | NewL | ( | CContactViewBase & | aView, |
const CContactDatabase & | aDb, | |||
MContactViewObserver & | aObserver, | |||
MDesCArray * | aFindWords, | |||
TSearchType | aSearchType | |||
) | [static] |
CContactViewBase & aView | |
const CContactDatabase & aDb | |
MContactViewObserver & aObserver | |
MDesCArray * aFindWords | |
TSearchType aSearchType |
IMPORT_C void | RefineFindViewL | ( | MDesCArray * | aFindWords | ) |
MDesCArray * aFindWords |
const RContactViewSortOrder & | SortOrderL | ( | ) | const [virtual] |
Gets the view's sort order.
capability
ReadUserData
The sort order.