class CContactRemoteViewBase : public CContactViewBase |
Base class for all remote contact view classes.
It implements all the pure virtual functions in CContactViewBase and additionally it handles remote view notifications. The data associated with remote views is allocated within the memory space of the contacts server. This means that multiple clients can share the same server side view object, thereby reducing the overhead associated with initial sorting of the view data and keeping it in sync with the underlying data. Remote views should therefore be used when the same view is likely to be needed by more than one client.
Public Member Functions | |
---|---|
HBufC * | AllFieldsLC(TInt, const TDesC &) |
TContactItemId | AtL(TInt) |
TAny * | CContactViewBase_Reserved_1(TFunction, TAny *) |
const CViewContact & | ContactAtL(TInt) |
TContactViewPreferences | ContactViewPreferences() |
void | ContactsMatchingCriteriaL(const MDesCArray &, RPointerArray< CViewContact > &) |
void | ContactsMatchingPrefixL(const MDesCArray &, RPointerArray< CViewContact > &) |
TInt | CountL() |
TInt | FindL(TContactItemId) |
void | GetContactIdsL(const CArrayFix< TInt > &, CContactIdArray &) |
void | GetContactsMatchingFilterL(TInt, RArray< TContactIdWithMapping > &) |
const RContactViewSortOrder & | SortOrderL() |
Protected Member Functions | |
---|---|
CContactRemoteViewBase(const CContactDatabase &) | |
~CContactRemoteViewBase() | |
void | ConstructL(MContactViewObserver &) |
Private Member Functions | |
---|---|
void | HandleContactViewEvent(const TContactViewEvent &) |
TInt | NotifierCallBack(TAny *) |
Inherited Enumerations | |
---|---|
CContactViewBase:TFunction | |
CContactViewBase:TSearchType | |
CContactViewBase:TState |
Protected Attributes | |
---|---|
RContactRemoteView | iView |
Private Attributes | |
---|---|
TInt | iCount |
CContactRemoteViewNotifier * | iNotifier |
Inherited Attributes | |
---|---|
CContactViewBase::iDb | |
CContactViewBase::iExtension | |
CContactViewBase::iState |
CContactRemoteViewBase | ( | const CContactDatabase & | aDb | ) | [protected] |
const CContactDatabase & aDb |
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 | ) | [protected] |
MContactViewObserver & aObserver |
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 | ContactsMatchingCriteriaL | ( | const MDesCArray & | aFindWords, |
RPointerArray< CViewContact > & | aMatchedContacts | |||
) | [virtual] |
const MDesCArray & aFindWords | |
RPointerArray< CViewContact > & aMatchedContacts |
void | ContactsMatchingPrefixL | ( | const MDesCArray & | aFindWords, |
RPointerArray< CViewContact > & | aMatchedContacts | |||
) | [virtual] |
const MDesCArray & aFindWords | |
RPointerArray< CViewContact > & aMatchedContacts |
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 | GetContactIdsL | ( | const CArrayFix< TInt > & | aIndexes, |
CContactIdArray & | aContactIds | |||
) | [virtual] |
const CArrayFix< TInt > & aIndexes | |
CContactIdArray & aContactIds |
void | GetContactsMatchingFilterL | ( | TInt | aFilter, |
RArray< TContactIdWithMapping > & | aMatchingContacts | |||
) |
TInt aFilter | |
RArray< TContactIdWithMapping > & aMatchingContacts |
void | HandleContactViewEvent | ( | const TContactViewEvent & | aEvent | ) | [private] |
const TContactViewEvent & aEvent |
const RContactViewSortOrder & | SortOrderL | ( | ) | const [virtual] |
Gets the view's sort order.
capability
ReadUserData
The sort order.
TInt | iCount | [private] |
Cached copy of the count of the local view in the contacts server. If this is KCachedItemCountInvalid then next time CountL is called the current count is retrieved from the contacts server.