CMTPReferenceMgr Class Reference

class CMTPReferenceMgr : public CBase

Implements the MTP reference manager interface.

Inherits from

Constructor & Destructor Documentation

CMTPReferenceMgr(CMTPObjectStore &)

CMTPReferenceMgr(CMTPObjectStore &aObjectStore)[private]

Constructor/.

Parameters

CMTPObjectStore & aObjectStore

~CMTPReferenceMgr()

~CMTPReferenceMgr()

Destructor

Member Functions Documentation

ConstructL()

voidConstructL()[private]
second-phase construction
leave
One of the system wide error codes, if a processing failure occurs.

CreateIndexL()

voidCreateIndexL()[private]
Create the index in the reference table
leave
One of the system wide error codes, if a processing failure occurs.

CreateTableL()

voidCreateTableL()[private]
Create the reference table in the database
leave
One of the system wide error codes, if a processing failure occurs.

GetReferencesInDesLC(TUint)

CDesCArray *GetReferencesInDesLC(TUintaHandle)const [private]
Get reference on the object identified by aIdentifier
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TUint aHandle

GetReferencesL(TUint, RArray< TUint > &)

voidGetReferencesL(TUintaHandle,
RArray< TUint > &aToHandles
)const [private]
Get references on the object identified by aIdentifier
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TUint aHandle
RArray< TUint > & aToHandles

GetReferencesLC(TUint)

CMTPTypeArray *GetReferencesLC(TUintaHandle)const [private]
Get reference on the object identified by aIdentifier
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TUint aHandle

IncTranOpsNumL()

voidIncTranOpsNumL()[private]

NewL(CMTPObjectStore &)

CMTPReferenceMgr *NewL(CMTPObjectStore &aObjectStore)[static]

Two phase construction

Parameters

CMTPObjectStore & aObjectStore

ReferencesLC(const TMTPTypeUint32 &)

CMTPTypeArray *ReferencesLC(const TMTPTypeUint32 &aFromHandle)const
Provides an MTP array of the target object handles which are referenced by the specified source object handle. A pointer to the MTP array is placed on the cleanup stack.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

const TMTPTypeUint32 & aFromHandleThe MTP object handle of the source object from which the references originate.

ReferencesLC(const TDesC &)

CDesCArray *ReferencesLC(const TDesC &aParentSuid)const
Provides an SUID array of the target object SUIDs which are referenced by the specified source object SUID. A pointer to the SUID array is placed on the cleanup stack.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

const TDesC & aParentSuid

RemoveReferencesL(TUint)

voidRemoveReferencesL(TUintaHandle)
Remove reference on the object identified by aIdentifier
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TUint aHandle

RemoveReferencesL(const TDesC &)

voidRemoveReferencesL(const TDesC &aSuid)
Removes all object reference links in which the specified SUID represents either the source or target reference object.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

const TDesC & aSuidThe object SUID.

SetReferenceL(const TDesC &, const TDesC &)

voidSetReferenceL(const TDesC &aFromSuid,
const TDesC &aToSuid
)
Creates an abstract reference linkage between the specified source and target object SUIDs.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

const TDesC & aFromSuidThe SUID of the source object from which the reference originates. param aToSuid The SUID of the target object to which the reference is made.
const TDesC & aToSuid

SetReferenceL(TUint, TUint)

voidSetReferenceL(TUintaHandle,
TUintaToHandles
)[private]
Set reference on the object identified by aFromIdentifier
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TUint aHandle
TUint aToHandles

SetReferencesL(const TDesC &, const CDesCArray &)

voidSetReferencesL(const TDesC &aParentSuid,
const CDesCArray &aToSuids
)
Replaces the abstract reference links originating from the specified source object handle with the specified set of target object SUIDs.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

const TDesC & aParentSuid
const CDesCArray & aToSuidsThe reference target MTP object SUID array.

SetReferencesL(const TMTPTypeUint32 &, const CMTPTypeArray &)

voidSetReferencesL(const TMTPTypeUint32 &aFromHandle,
const CMTPTypeArray &aToHandles
)
Replaces the abstract reference links originating from the specified source object handle with the specified set of target object handles.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

const TMTPTypeUint32 & aFromHandleThe handle of the source object from which the references originate.
const CMTPTypeArray & aToHandlesThe reference target object handle array.

SetReferencesL(TUint, const RArray< TUint > &)

voidSetReferencesL(TUintaHandle,
const RArray< TUint > &aToHandles
)[private]
Set references on the object identified by aFromIdentifier
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TUint aHandle
const RArray< TUint > & aToHandles

Member Data Documentation

RDbTable iBatched

RDbTable iBatched[private]

RDbDatabase * iDatabase

RDbDatabase *iDatabase[private]

CMTPObjectStore & iObjectStore

CMTPObjectStore &iObjectStore[private]

TBuf< KMTPMaxSqlStatementLen > iSqlStatement

TBuf< KMTPMaxSqlStatementLen >iSqlStatement[private]