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

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

CreateAnchorIdTableL()

IMPORT_C void CreateAnchorIdTableL ( )
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 void CreateDeltaDataTableL ( )
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 TInt GetAddedPuidsL ( TInt aMaxArraySize,
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 TInt GetAnchorIdL ( TInt aIdentifier )
Get the anchor ID with specified identifier
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TInt aIdentifier The identifier of the anchor

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

IMPORT_C TInt GetChangedPuidsL ( TInt aMaxArraySize,
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 TInt GetDeletedPuidsL ( TInt aMaxArraySize,
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 TInt GetModifiedPuidsL ( TInt aMaxArraySize,
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 TInt GetPersistentIndexL ( TInt aIdentifier )
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 void InsertAnchorIdL ( TInt aAnchorId,
TInt aIdentifier
)
Add a new anchor ID to the AnchorIdTable
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TInt aAnchorId The anchor ID
TInt aIdentifier The identifier of the anchor

NewL(RDbDatabase &)

CMtpDeltaDataMgr * NewL ( RDbDatabase & aDatabase ) [static]

Two-phase construction

Parameters

RDbDatabase & aDatabase The reference to the database object

ResetMTPDeltaDataTableL()

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

UpdateAnchorIdL(TInt, TInt)

IMPORT_C void UpdateAnchorIdL ( TInt aAnchorId,
TInt aIdentifier
)
Overwrite the anchor Id with new one
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TInt aAnchorId The new anchor ID
TInt aIdentifier The identifier of the anchor

UpdateDeltaDataTableL(TInt64, TOpCode)

void UpdateDeltaDataTableL ( TInt64 aSuidId,
TOpCode aOpCode
)

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 aSuidId The suid identifier of the object to be added
TOpCode aOpCode operation code

UpdatePersistentIndexL(TInt, TInt)

IMPORT_C void UpdatePersistentIndexL ( TInt aCurindex,
TInt aIdentifier
)
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]