CCollectionProxy Class Reference

class CCollectionProxy : public CBase

The CCollectionProxy class is a proxy for the MLplCollection class. The proxy is used for client-side access to the required collection functions in the Persistence Layer on the server.

Internally the proxy makes the relevant IPC calls using the Contacts Model session handle from the Contacts database used to create the proxy object.

Inherits from

Constructor & Destructor Documentation

CCollectionProxy(const CContactDatabase &)

CCollectionProxy(const CContactDatabase &aDb)

CCollectionProxy first phase constructor.

Parameters

const CContactDatabase & aDbContacts database used to access Contacts Model session handle.

Member Functions Documentation

CollectionL(TLplViewType, TTime, const TDesC &)

CContactIdArray *CollectionL(TLplViewTypeaViewType,
TTimeaTime = 0,
const TDesC &aGuid =  KNullDesC
)

Proxy implementation of pure virtual method in MLplCollection.

The proxy does not access the Persistence Layer directly. Instead it uses the Contacts Model session handle to access the Persistence Layer via the server.

Parameters

TLplViewType aViewType
TTime aTime = 0
const TDesC & aGuid =  KNullDesC

ConstructBitwiseFlagsFromTextDef(TInt &, TInt &, const CContactTextDef *)

voidConstructBitwiseFlagsFromTextDef(TInt &aFindFlags,
TInt &aIdentityColumnsCount,
const CContactTextDef *aTextDef
)

Dummy method - implemented in the Persistence Layer.

Parameters

TInt & aFindFlags
TInt & aIdentityColumnsCount
const CContactTextDef * aTextDef

ContactCountL()

TInt ContactCountL()

Proxy implementation of pure virtual method in MLplCollection.

The proxy does not access the Persistence Layer directly. Instead it uses the Contacts Model session handle to access the Persistence Layer via the server.

ContactMatchesHintFieldL(TInt, TContactItemId)

TBool ContactMatchesHintFieldL(TIntaBitWiseFilter,
TContactItemIdaContactId
)

Dummy method - implemented in the Persistence Layer.

Parameters

TInt aBitWiseFilter
TContactItemId aContactId

FilterDatabaseL(CCntFilter &)

CContactIdArray *FilterDatabaseL(CCntFilter &aFilter)

Dummy method - implemented in the Persistence Layer.

Parameters

CCntFilter & aFilter

FindAsyncInitL(const TDesC &, CContactItemFieldDef *)

voidFindAsyncInitL(const TDesC &aText,
CContactItemFieldDef *aFieldDef
)

Dummy method - implemented in the Persistence Layer.

Parameters

const TDesC & aText
CContactItemFieldDef * aFieldDef

FindAsyncL(TBool &, TUint)

CContactIdArray *FindAsyncL(TBool &aMoreToGo,
TUintaSessionId
)

Dummy method - implemented in the Persistence Layer.

Parameters

TBool & aMoreToGo
TUint aSessionId

FindAsyncTextDefInitL(const CDesCArray &, CContactTextDef *)

voidFindAsyncTextDefInitL(const CDesCArray &aWords,
CContactTextDef *aTextDef
)

Dummy method - implemented in the Persistence Layer.

Parameters

const CDesCArray & aWords
CContactTextDef * aTextDef

FindL(const TDesC &, const CContactItemFieldDef *, TUint)

CContactIdArray *FindL(const TDesC &aText,
const CContactItemFieldDef *aFieldDef,
TUintaSessionId
)

Proxy implementation of pure virtual method in MLplCollection.

The proxy does not access the Persistence Layer directly. Instead it uses the Contacts Model session handle to access the Persistence Layer via the server.

This method could be a dummy implementation since only CContactDatabase calls the client session FindL() method.

Parameters

const TDesC & aText
const CContactItemFieldDef * aFieldDef
TUint aSessionId

MatchPhoneNumberL(const TDesC &, const TInt)

CContactIdArray *MatchPhoneNumberL(const TDesC &aNumber,
const TIntaMatchLengthFromRight
)

Dummy method - implemented in the Persistence Layer.

Parameters

const TDesC & aNumber
const TInt aMatchLengthFromRight

Reset()

voidReset()

Dummy method - implemented in the Persistence Layer.

SeekContactL(TContactItemId, TContactItemId &, TUid &, TBool &)

TBool SeekContactL(TContactItemIdaReqId,
TContactItemId &aId,
TUid &aContactType,
TBool &aDeleted
)

Proxy implementation of pure virtual method in MLplCollection.

The proxy does not access the Persistence Layer directly. Instead it uses the Contacts Model session handle to access the Persistence Layer via the server.

Parameters

TContactItemId aReqId
TContactItemId & aId
TUid & aContactType
TBool & aDeleted

UsesIdentityFieldsOnly(TInt)

TBool UsesIdentityFieldsOnly(TIntaFindFlags)

Dummy method - implemented in the Persistence Layer.

Parameters

TInt aFindFlags

Member Data Documentation

const CContactDatabase & iDb

const CContactDatabase &iDb[private]