class CContactLocalView : public CContactViewBase |
An instantiable base class for contact views.
The data associated with a local view is allocated within the client's memory space; CContactRemoteView should be used in preference if the view is likely to be shared between multiple clients. It is kept up to date by receiving change events from the underlying CContactDatabase object which it observes. The view preferences and sort order are specified on construction.
Public Member Functions | |
---|---|
HBufC * | AllFieldsLC(TInt, const TDesC &) |
TContactItemId | AtL(TInt) |
IMPORT_C TAny * | CContactViewBase_Reserved_1(TFunction, TAny *) |
const CViewContact & | ContactAtL(TInt) |
TContactViewPreferences | ContactViewPreferences() |
TInt | CountL() |
TInt | FindL(TContactItemId) |
IMPORT_C CContactLocalView * | NewL(MContactViewObserver &, const CContactDatabase &, const RContactViewSortOrder &, TContactViewPreferences) |
IMPORT_C CContactLocalView * | NewL(MContactViewObserver &, const CContactDatabase &, const RContactViewSortOrder &, TContactViewPreferences, const TDesC8 &) |
IMPORT_C CContactLocalView * | NewL(MContactViewObserver &, const CContactDatabase &, const RContactViewSortOrder &, TContactViewPreferences, MLplPersistenceLayerFactory *, const TDesC8 &) |
void | NotifySortError(TInt) |
IMPORT_C const RContactViewSortOrder & | SortOrder() |
const RContactViewSortOrder & | SortOrderL() |
Protected Member Functions | |
---|---|
CContactLocalView(const CContactDatabase &, TContactViewPreferences) | |
CContactLocalView(const CContactDatabase &, TContactViewPreferences, MLplPersistenceLayerFactory *) | |
~CContactLocalView() | |
IMPORT_C void | ConstructL(MContactViewObserver &, const RContactViewSortOrder &) |
void | ConstructL(MContactViewObserver &, const RContactViewSortOrder &, const TBool, const TDesC8 &) |
IMPORT_C TInt | InsertL(TContactItemId) |
IMPORT_C TInt | RemoveL(TContactItemId) |
void | SetState(TState) |
IMPORT_C void | SortL(const RContactViewSortOrder &) |
Private Member Functions | |
---|---|
IMPORT_C void | CContactLocalView_Reserved_1() |
IMPORT_C void | CContactLocalView_Reserved_2() |
void | HandleDatabaseEventL(TContactDbObserverEvent) |
void | HandleOutstandingEventL() |
void | HandleOutstandingEvents() |
void | SafeResort() |
void | SetSortOrderL(const RContactViewSortOrder &) |
void | SortComplete(TInt) |
void | SortL() |
Inherited Enumerations | |
---|---|
CContactViewBase:TFunction | |
CContactViewBase:TSearchType | |
CContactViewBase:TState |
Protected Attributes | |
---|---|
RContactViewSortOrder | iSortOrder |
Private Attributes | |
---|---|
CIdleContactSorter * | iAsyncSorter |
RPointerArray< CViewContact > | iContacts |
MLplPersistenceLayerFactory * | iFactory |
RArray< TContactDbObserverEvent > | iOutstandingEvents |
TInt | iSpare |
TBool | iSpare0 |
CContactTextDef * | iTextDef |
RPointerArray< CViewContact > | iUnSortedContacts |
CViewContactManager * | iViewCntMgr |
TContactViewPreferences | iViewPreferences |
Inherited Attributes | |
---|---|
CContactViewBase::iDb | |
CContactViewBase::iExtension | |
CContactViewBase::iState |
IMPORT_C | CContactLocalView | ( | const CContactDatabase & | aDb, |
TContactViewPreferences | aContactTypes | |||
) | [protected] |
const CContactDatabase & aDb | |
TContactViewPreferences aContactTypes |
CContactLocalView | ( | const CContactDatabase & | aDb, |
TContactViewPreferences | aContactTypes, | ||
MLplPersistenceLayerFactory * | aIterFactory | ||
) | [protected] |
const CContactDatabase & aDb | |
TContactViewPreferences aContactTypes | |
MLplPersistenceLayerFactory * aIterFactory |
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. |
IMPORT_C TAny * | CContactViewBase_Reserved_1 | ( | TFunction | aFunction, |
TAny * | aParams | |||
) | [virtual] |
IMPORT_C void | ConstructL | ( | MContactViewObserver & | aObserver, |
const RContactViewSortOrder & | aSortOrder | |||
) | [protected] |
MContactViewObserver & aObserver | |
const RContactViewSortOrder & aSortOrder |
void | ConstructL | ( | MContactViewObserver & | aObserver, |
const RContactViewSortOrder & | aSortOrder, | |||
const TBool | aUseNamedPlugin, | |||
const TDesC8 & | aSortPluginName | |||
) | [protected] |
MContactViewObserver & aObserver | |
const RContactViewSortOrder & aSortOrder | |
const TBool aUseNamedPlugin | |
const TDesC8 & aSortPluginName |
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.
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 | HandleDatabaseEventL | ( | TContactDbObserverEvent | aEvent | ) | [private, virtual] |
TContactDbObserverEvent aEvent |
IMPORT_C TInt | InsertL | ( | TContactItemId | aId | ) | [protected, virtual] |
TContactItemId aId |
IMPORT_C CContactLocalView * | NewL | ( | MContactViewObserver & | aObserver, |
const CContactDatabase & | aDb, | |||
const RContactViewSortOrder & | aSortOrder, | |||
TContactViewPreferences | aContactTypes | |||
) | [static] |
MContactViewObserver & aObserver | |
const CContactDatabase & aDb | |
const RContactViewSortOrder & aSortOrder | |
TContactViewPreferences aContactTypes |
IMPORT_C CContactLocalView * | NewL | ( | MContactViewObserver & | aObserver, |
const CContactDatabase & | aDb, | |||
const RContactViewSortOrder & | aSortOrder, | |||
TContactViewPreferences | aContactTypes, | |||
const TDesC8 & | aSortPluginName | |||
) | [static] |
MContactViewObserver & aObserver | |
const CContactDatabase & aDb | |
const RContactViewSortOrder & aSortOrder | |
TContactViewPreferences aContactTypes | |
const TDesC8 & aSortPluginName |
IMPORT_C CContactLocalView * | NewL | ( | MContactViewObserver & | aObserver, |
const CContactDatabase & | aDb, | |||
const RContactViewSortOrder & | aSortOrder, | |||
TContactViewPreferences | aContactTypes, | |||
MLplPersistenceLayerFactory * | aFactory, | |||
const TDesC8 & | aSortPluginName | |||
) | [static] |
MContactViewObserver & aObserver | |
const CContactDatabase & aDb | |
const RContactViewSortOrder & aSortOrder | |
TContactViewPreferences aContactTypes | |
MLplPersistenceLayerFactory * aFactory | |
const TDesC8 & aSortPluginName |
IMPORT_C TInt | RemoveL | ( | TContactItemId | aId | ) | [protected, virtual] |
TContactItemId aId |
void | SetSortOrderL | ( | const RContactViewSortOrder & | aSortOrder | ) | [private] |
const RContactViewSortOrder & aSortOrder |
IMPORT_C void | SortL | ( | const RContactViewSortOrder & | aSortOrder | ) | [protected, virtual] |
const RContactViewSortOrder & aSortOrder |
const RContactViewSortOrder & | SortOrderL | ( | ) | const [virtual] |
Gets the view's sort order.
capability
ReadUserData
The sort order.
RArray< TContactDbObserverEvent > | iOutstandingEvents | [private] |
RContactViewSortOrder | iSortOrder | [protected] |
The sort order. This is set during construction or when SortL() is called.
RPointerArray< CViewContact > | iUnSortedContacts | [private] |