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()

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

CreateIndexL()

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

CreateTableL()

void CreateTableL ( ) [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 ( TUint aHandle ) 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 > &)

void GetReferencesL ( TUint aHandle,
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 ( TUint aHandle ) 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()

void IncTranOpsNumL ( ) [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 & aFromHandle The 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)

void RemoveReferencesL ( TUint aHandle )
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 &)

void RemoveReferencesL ( 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 & aSuid The object SUID.

SetReferenceL(const TDesC &, const TDesC &)

void SetReferenceL ( 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 & aFromSuid The 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)

void SetReferenceL ( TUint aHandle,
TUint aToHandles
) [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 &)

void SetReferencesL ( 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 & aToSuids The reference target MTP object SUID array.

SetReferencesL(const TMTPTypeUint32 &, const CMTPTypeArray &)

void SetReferencesL ( 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 & aFromHandle The handle of the source object from which the references originate.
const CMTPTypeArray & aToHandles The reference target object handle array.

SetReferencesL(TUint, const RArray< TUint > &)

void SetReferencesL ( TUint aHandle,
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]