RContactRemoteView Class Reference

class RContactRemoteView : public RSubSessionBase

This class is used internally by remote contact views as the handle to the server side view object.

CContactRemoteViewBase

Inherits from

Public Member Functions
HBufC *AllFieldsLC(TInt, const TDesC &)
TContactItemId AtL(TInt)
TInt CancelRequestViewEvent()
voidChangeSortOrderL(const RContactViewSortOrder &)
voidClose()
CViewContact *ContactAtL(TInt)
TContactViewPreferences ContactViewPreferencesL()
voidContactsMatchingCriteriaL(const MDesCArray &, RPointerArray< CViewContact > &, TBool, TUid)
TInt CountL()
TInt FindL(TContactItemId)
voidGetContactIdsL(const CArrayFix< TInt > &, CContactIdArray &)
voidGetContactsMatchingFilterL(TInt, RArray< TContactIdWithMapping > &)
voidGetSortOrderL(RContactViewSortOrder &)
TUid GetViewSortPluginImplUidL()
voidOpenL(const CContactDatabase &, const RContactViewSortOrder &, TContactViewPreferences, const TUid &, const TDesC8 &)
voidOpenL(const CContactDatabase &, const TDesC &, const RContactViewSortOrder &, TContactViewPreferences, const TUid &, const TDesC8 &)
voidRequestViewEvent(TPckgBuf< TContactViewEvent > &, TRequestStatus &)
const RContactViewSortOrder &SortOrderL()
Private Member Functions
HBufC8 *PackageSortOrderAndPluginDetailsLC(const RContactViewSortOrder &, TContactViewPreferences, const TUid &, const TDesC8 &)
HBufC8 *PackageSortOrderLC(const RContactViewSortOrder &, TContactViewPreferences)
Inherited Functions
RSubSessionBase::CloseSubSession(TInt)
RSubSessionBase::CreateAutoCloseSubSession(RSessionBase &,TInt,const TIpcArgs &)
RSubSessionBase::CreateSubSession(const RSessionBase &,TInt)
RSubSessionBase::CreateSubSession(const RSessionBase &,TInt,const TIpcArgs &)
RSubSessionBase::RSubSessionBase()
RSubSessionBase::Send(TInt)const
RSubSessionBase::Send(TInt,const TIpcArgs &)const
RSubSessionBase::SendReceive(TInt)const
RSubSessionBase::SendReceive(TInt,TRequestStatus &)const
RSubSessionBase::SendReceive(TInt,const TIpcArgs &)const
RSubSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
RSubSessionBase::Session()const
RSubSessionBase::SubSessionHandle()const
Private Attributes
CViewContact *iContact
RContactViewSortOrder iSortOrder

Member Functions Documentation

AllFieldsLC(TInt, const TDesC &)

HBufC *AllFieldsLC(TIntaIndex,
const TDesC &aSeparator
)const
capability
ReadUserData

Parameters

TInt aIndex
const TDesC & aSeparator

AtL(TInt)

TContactItemId AtL(TIntaIndex)const
capability
ReadUserData

Parameters

TInt aIndex

CancelRequestViewEvent()

TInt CancelRequestViewEvent()
capability
None

ChangeSortOrderL(const RContactViewSortOrder &)

voidChangeSortOrderL(const RContactViewSortOrder &aSortOrder)
capability
ReadUserData

Parameters

const RContactViewSortOrder & aSortOrder

Close()

voidClose()
capability
None

ContactAtL(TInt)

CViewContact *ContactAtL(TIntaIndex)
Returns the contact item at the specified index into the view.
capability
ReadUserData

Parameters

TInt aIndexIndex

ContactViewPreferencesL()

TContactViewPreferences ContactViewPreferencesL()
capability
ReadUserData

ContactsMatchingCriteriaL(const MDesCArray &, RPointerArray< CViewContact > &, TBool, TUid)

voidContactsMatchingCriteriaL(const MDesCArray &aFindWords,
RPointerArray< CViewContact > &aMatchedContacts,
TBoolaPrefixSearch,
TUidaUid
)

Searches all contact items in the view for fields that contain the search strings specified.

capability
ReadUserData

Parameters

const MDesCArray & aFindWordsA descriptor array containing one or more search strings
RPointerArray< CViewContact > & aMatchedContactsOn return, an array of matching contact items
TBool aPrefixSearch
TUid aUid

CountL()

TInt CountL()const
capability
ReadUserData

FindL(TContactItemId)

TInt FindL(TContactItemIdaId)const
capability
ReadUserData

Parameters

TContactItemId aId

GetContactIdsL(const CArrayFix< TInt > &, CContactIdArray &)

voidGetContactIdsL(const CArrayFix< TInt > &aIndexes,
CContactIdArray &aContactIds
)
Convert between view indexes and contact ids. This method makes the request to the server.
capability
ReadUserData

Parameters

const CArrayFix< TInt > & aIndexes
CContactIdArray & aContactIds

GetContactsMatchingFilterL(TInt, RArray< TContactIdWithMapping > &)

voidGetContactsMatchingFilterL(TIntaFilter,
RArray< TContactIdWithMapping > &aMatchingContacts
)

Requests an array of contact IDs from the server-side view which match the filter provided by the client.

capability
ReadUserData

Parameters

TInt aFilterFilter supplied by client
RArray< TContactIdWithMapping > & aMatchingContactsArray of contacts which match the filter

GetSortOrderL(RContactViewSortOrder &)

voidGetSortOrderL(RContactViewSortOrder &aSortOrder)
capability
ReadUserData

Parameters

RContactViewSortOrder & aSortOrder

GetViewSortPluginImplUidL()

TUid GetViewSortPluginImplUidL()const

OpenL(const CContactDatabase &, const RContactViewSortOrder &, TContactViewPreferences, const TUid &, const TDesC8 &)

voidOpenL(const CContactDatabase &aDb,
const RContactViewSortOrder &aSortOrder,
TContactViewPreferencesaContactTypes,
const TUid &aSortPluginImplUid,
const TDesC8 &aSortPluginName
)
capability
ReadUserData

Parameters

const CContactDatabase & aDb
const RContactViewSortOrder & aSortOrder
TContactViewPreferences aContactTypes
const TUid & aSortPluginImplUid
const TDesC8 & aSortPluginName

OpenL(const CContactDatabase &, const TDesC &, const RContactViewSortOrder &, TContactViewPreferences, const TUid &, const TDesC8 &)

voidOpenL(const CContactDatabase &aDb,
const TDesC &aName,
const RContactViewSortOrder &aSortOrder,
TContactViewPreferencesaContactTypes,
const TUid &aSortPluginImplUid,
const TDesC8 &aSortPluginName
)
capability
ReadUserData

Parameters

const CContactDatabase & aDb
const TDesC & aName
const RContactViewSortOrder & aSortOrder
TContactViewPreferences aContactTypes
const TUid & aSortPluginImplUid
const TDesC8 & aSortPluginName

PackageSortOrderAndPluginDetailsLC(const RContactViewSortOrder &, TContactViewPreferences, const TUid &, const TDesC8 &)

HBufC8 *PackageSortOrderAndPluginDetailsLC(const RContactViewSortOrder &aSortOrder,
TContactViewPreferencesaContactTypes,
const TUid &aSortPluginImplUid,
const TDesC8 &aSortPluginName
)const [private]

Parameters

const RContactViewSortOrder & aSortOrder
TContactViewPreferences aContactTypes
const TUid & aSortPluginImplUid
const TDesC8 & aSortPluginName

PackageSortOrderLC(const RContactViewSortOrder &, TContactViewPreferences)

HBufC8 *PackageSortOrderLC(const RContactViewSortOrder &aSortOrder,
TContactViewPreferencesaContactTypes
)const [private]

Parameters

const RContactViewSortOrder & aSortOrder
TContactViewPreferences aContactTypes

RequestViewEvent(TPckgBuf< TContactViewEvent > &, TRequestStatus &)

voidRequestViewEvent(TPckgBuf< TContactViewEvent > &aEvent,
TRequestStatus &aStatus
)
capability
ReadUserData

Parameters

TPckgBuf< TContactViewEvent > & aEvent
TRequestStatus & aStatus

SortOrderL()

const RContactViewSortOrder &SortOrderL()
capability
ReadUserData

Member Data Documentation

CViewContact * iContact

CViewContact *iContact[private]

RContactViewSortOrder iSortOrder

RContactViewSortOrder iSortOrder[private]