#include <app/cntview.h>
Link against: cntview.lib
class CContactSubView : public CContactViewBase, public MContactViewObserver, public CContactViewBase, public MContactViewObserver |
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 CContactSubView * | NewL(MContactViewObserver &, const CContactDatabase &, CContactViewBase &, const TDesC &) |
IMPORT_C CContactSubView * | NewL(MContactViewObserver &, const CContactDatabase &, CContactViewBase &, const TDesC &, const TDesC &) |
IMPORT_C CContactSubView * | NewL(CContactViewBase &, const CContactDatabase &, MContactViewObserver &, const TDesC &) |
IMPORT_C CContactSubView * | NewL(CContactViewBase &, const CContactDatabase &, MContactViewObserver &, const TDesC &, const TDesC &) |
virtual const RContactViewSortOrder & | SortOrderL() |
Inherited Attributes | |
---|---|
CContactViewBase::iDb | |
CContactViewBase::iExtension | |
CContactViewBase::iState |
Inherited Enumerations | |
---|---|
CContactViewBase:TFunction | |
CContactViewBase:TSearchType | |
CContactViewBase:TState |
Provides a view of a range of contact items from a potentially larger underlying view (another CContactViewBase-derived object).
All contact items between a lower and upper boundary in the underlying view are included in the sub view. For example, the sub view might contain all items whose name begins with a character between 'd' and 'f'.
The sub view observes its underlying view so that as the underlying view changes, the sub view is kept up to date.
Reimplemented from CContactViewBase::AllFieldsLC(TInt,const TDesC &)const
Returns a descriptor containing the contents of all fields for an item in the sub view.
NULL is returned if the sub view's upper and lower boundaries have not been set (in debug builds, a panic occurs).
Parameters | |
---|---|
aIndex | The index into the sub view of the contact item. |
aSeparator | The string to use to separate the fields. |
TContactItemId | AtL | ( | TInt | aIndex | ) | const [virtual] |
Reimplemented from CContactViewBase::AtL(TInt)const
Gets the contact item ID at the specified index into the sub view.
In release builds, zero is returned if the sub view's upper and lower boundaries have not been set, (in debug builds, a panic occurs).
Parameters | |
---|---|
aIndex | Index into the sub view of a contact item ID. |
Leave Codes | |
---|---|
KErrNotFound | aIndex is outside the bounds of the sub view's array. |
Reimplemented from CContactViewBase::CContactViewBase_Reserved_1(TFunction,TAny *)
This is a reserved virtual exported function that is used for BC proofing against present and future additions of new exported virtual functions.
const CViewContact & | ContactAtL | ( | TInt | aIndex | ) | const [virtual] |
Reimplemented from CContactViewBase::ContactAtL(TInt)const
Gets the contact item at the specified index into the sub view.
A NULL contact item is returned if the sub view's upper and lower boundaries have not been set (in debug builds, a panic occurs).
Parameters | |
---|---|
aIndex | Index into the sub view of the required item. |
Leave Codes | |
---|---|
KErrNotFound | aIndex is outside the bounds of the sub view's array. |
TContactViewPreferences | ContactViewPreferences | ( | ) | [virtual] |
Reimplemented from CContactViewBase::ContactViewPreferences()
Gets the underlying view's view preferences.
TInt | CountL | ( | ) | const [virtual] |
Reimplemented from CContactViewBase::CountL()const
Gets the number of contact item IDs in the sub view.
Zero is returned if the sub view's upper and lower boundaries have not been set.
TInt | FindL | ( | TContactItemId | aId | ) | const [virtual] |
Reimplemented from CContactViewBase::FindL(TContactItemId)const
Finds the index into the sub view of the specified contact item.
Parameters | |
---|---|
aId | The contact item ID to search for. |
IMPORT_C CContactSubView * | NewL | ( | MContactViewObserver & | aObserver, |
const CContactDatabase & | aDb, | |||
CContactViewBase & | aView, | |||
const TDesC & | aBoundary | |||
) | [static] |
Allocates and constructs a new CContactSubView version 1 object, specifying the sub view's criteria.
When adding/deleting contacts in the view, MContactViewObserver observer will receive TContactViewEvent events with iInt parameter set to KErrNone.
Parameters | |
---|---|
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 containing the contact items. |
aView | The underlying view. |
aBoundary | A string containing the sub view criteria. Possible values are: <, >, <=, or >=, followed by a character. |
IMPORT_C CContactSubView * | NewL | ( | MContactViewObserver & | aObserver, |
const CContactDatabase & | aDb, | |||
CContactViewBase & | aView, | |||
const TDesC & | aLowBoundary, | |||
const TDesC & | aHighBoundary | |||
) | [static] |
Allocates and constructs a new CContactSubView version 1 object, specifying the sub view's upper and lower boundary criteria.
When adding/deleting contacts in the view, MContactViewObserver observer will receive TContactViewEvent events with iInt parameter set to KErrNone.
Parameters | |
---|---|
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 containing the contact items. |
aView | The underlying view. |
aLowBoundary | A string containing the sub view's lower boundary criteria. Possible values are: > or >=, followed by a character. |
aHighBoundary | A string containing the sub view's upper boundary criteria. Possible values are: < or <=, followed by a character. |
IMPORT_C CContactSubView * | NewL | ( | CContactViewBase & | aView, |
const CContactDatabase & | aDb, | |||
MContactViewObserver & | aObserver, | |||
const TDesC & | aBoundary | |||
) | [static] |
Allocates and constructs a new CContactSubView version 2 object, specifying the sub view's criteria.
When adding/deleting contacts in the view, MContactViewObserver observer will receive TContactViewEvent events with iInt parameter set to index into the observed view of the added/deleted item
Parameters | |
---|---|
aView | The underlying view. |
aDb | The database containing the contact items. |
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. |
aBoundary | A string containing the sub view criteria. Possible values are: <, >, <=, or >=, followed by a character. |
IMPORT_C CContactSubView * | NewL | ( | CContactViewBase & | aView, |
const CContactDatabase & | aDb, | |||
MContactViewObserver & | aObserver, | |||
const TDesC & | aLowBoundary, | |||
const TDesC & | aHighBoundary | |||
) | [static] |
Allocates and constructs a new CContactSubView version 2 object, specifying the sub view's upper and lower boundary criteria.
When adding/deleting contacts in the view, MContactViewObserver observer will receive TContactViewEvent events with iInt parameter set to index into the observed view of the added/deleted item
Parameters | |
---|---|
aView | The underlying view. |
aDb | The database containing the contact items. |
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. |
aLowBoundary | A string containing the sub view's lower boundary criteria. Possible values are: > or >=, followed by a character. |
aHighBoundary | A string containing the sub view's upper boundary criteria. Possible values are: < or <=, followed by a character. |
const RContactViewSortOrder & | SortOrderL | ( | ) | const [virtual] |
Reimplemented from CContactViewBase::SortOrderL()const
Gets the underlying view's sort order.