CMtpDeltaDataMgr Class Reference

class CMtpDeltaDataMgr : public CBase

Inherits from

Constructor & Destructor Documentation

CMtpDeltaDataMgr(RDbDatabase &)

CMtpDeltaDataMgr(RDbDatabase &aDatabase)[private]

Standard c++ constructor

Parameters

RDbDatabase & aDatabase

~CMtpDeltaDataMgr()

~CMtpDeltaDataMgr()

Destructor

Member Functions Documentation

ConstructL()

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

CreateAnchorIdTableL()

IMPORT_C voidCreateAnchorIdTableL()
Create the Anchor Id Table anchor Id will be stored here
leave
One of the system wide error codes, if a processing failure occurs.

CreateDeltaDataTableL()

IMPORT_C voidCreateDeltaDataTableL()
Create the MTP Delta Data Table
leave
One of the system wide error codes, if a processing failure occurs.

GetAddedPuidsL(TInt, TInt &, CMTPTypeArray &)

IMPORT_C TIntGetAddedPuidsL(TIntaMaxArraySize,
TInt &aPosition,
CMTPTypeArray &aAddedPuidIdArray
)
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TInt aMaxArraySize
TInt & aPosition
CMTPTypeArray & aAddedPuidIdArray

GetAnchorIdL(TInt)

IMPORT_C TIntGetAnchorIdL(TIntaIdentifier)
Get the anchor ID with specified identifier
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TInt aIdentifierThe identifier of the anchor

GetChangedPuidsL(TInt, TInt &, CMTPTypeArray &, CMTPTypeArray &)

IMPORT_C TIntGetChangedPuidsL(TIntaMaxArraySize,
TInt &aPosition,
CMTPTypeArray &aModifiedPuidIdArray,
CMTPTypeArray &aDeletedPuidArray
)
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TInt aMaxArraySize
TInt & aPosition
CMTPTypeArray & aModifiedPuidIdArray
CMTPTypeArray & aDeletedPuidArray

GetDeletedPuidsL(TInt, TInt &, CMTPTypeArray &)

IMPORT_C TIntGetDeletedPuidsL(TIntaMaxArraySize,
TInt &aPosition,
CMTPTypeArray &aDeletedPuidIdArray
)
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TInt aMaxArraySize
TInt & aPosition
CMTPTypeArray & aDeletedPuidIdArray

GetModifiedPuidsL(TInt, TInt &, CMTPTypeArray &)

IMPORT_C TIntGetModifiedPuidsL(TIntaMaxArraySize,
TInt &aPosition,
CMTPTypeArray &aModifiedPuidIdArray
)
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TInt aMaxArraySize
TInt & aPosition
CMTPTypeArray & aModifiedPuidIdArray

GetPersistentIndexL(TInt)

IMPORT_C TIntGetPersistentIndexL(TIntaIdentifier)
returns the stored index
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TInt aIdentifier

InsertAnchorIdL(TInt, TInt)

IMPORT_C voidInsertAnchorIdL(TIntaAnchorId,
TIntaIdentifier
)
Add a new anchor ID to the AnchorIdTable
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TInt aAnchorIdThe anchor ID
TInt aIdentifierThe identifier of the anchor

NewL(RDbDatabase &)

CMtpDeltaDataMgr *NewL(RDbDatabase &aDatabase)[static]

Two-phase construction

Parameters

RDbDatabase & aDatabaseThe reference to the database object

ResetMTPDeltaDataTableL()

IMPORT_C voidResetMTPDeltaDataTableL()
leave
One of the system wide error codes, if a processing failure occurs.

UpdateAnchorIdL(TInt, TInt)

IMPORT_C voidUpdateAnchorIdL(TIntaAnchorId,
TIntaIdentifier
)
Overwrite the anchor Id with new one
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TInt aAnchorIdThe new anchor ID
TInt aIdentifierThe identifier of the anchor

UpdateDeltaDataTableL(TInt64, TOpCode)

voidUpdateDeltaDataTableL(TInt64aSuidId,
TOpCodeaOpCode
)

updates the delta data table with the params , if the suid identifier param passesd is a not found in the table a new entry will be created with opcode as EAdded.

Add the Opcode and SuidId to the MTPDeltaDataTable
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TInt64 aSuidIdThe suid identifier of the object to be added
TOpCode aOpCodeoperation code

UpdatePersistentIndexL(TInt, TInt)

IMPORT_C voidUpdatePersistentIndexL(TIntaCurindex,
TIntaIdentifier
)
Overwrite the old index with new one
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TInt aCurindex
TInt aIdentifier

Member Enumerations Documentation

Enum TOpCode

The enumeration for operations on file .

Enumerators

EAdded = 0
EDeleted = 1
EModified = 2

Member Data Documentation

__FLOG_DECLARATION_MEMBER_MUTABLE

__FLOG_DECLARATION_MEMBER_MUTABLE[private]

FLOGGER debug trace member variable.

RDbTable iAnchorTableBatched

RDbTable iAnchorTableBatched[private]

RDbDatabase & iDatabase

RDbDatabase &iDatabase[private]

RDbTable iDeltaTableBatched

RDbTable iDeltaTableBatched[private]

TBool iNeedToSendMore

TBool iNeedToSendMore[private]

TBuf< KMTPMaxSqlStatementLen > iSqlStatement

TBuf< KMTPMaxSqlStatementLen >iSqlStatement[private]

RArray< TMTPTypeUint128 > iSuidIdArray

RArray< TMTPTypeUint128 >iSuidIdArray[private]

TInt iTotalRows

TInt iTotalRows[private]

RDbView iView

RDbView iView[private]