CMtpDeltaDataMgr Class Reference
class CMtpDeltaDataMgr : public CBase |
Public Member Functions |
---|
| ~CMtpDeltaDataMgr() |
IMPORT_C void | CreateAnchorIdTableL() |
IMPORT_C void | CreateDeltaDataTableL() |
IMPORT_C TInt | GetAddedPuidsL(TInt, TInt &, CMTPTypeArray &) |
IMPORT_C TInt | GetAnchorIdL(TInt) |
IMPORT_C TInt | GetChangedPuidsL(TInt, TInt &, CMTPTypeArray &, CMTPTypeArray &) |
IMPORT_C TInt | GetDeletedPuidsL(TInt, TInt &, CMTPTypeArray &) |
IMPORT_C TInt | GetModifiedPuidsL(TInt, TInt &, CMTPTypeArray &) |
IMPORT_C TInt | GetPersistentIndexL(TInt) |
IMPORT_C void | InsertAnchorIdL(TInt, TInt) |
CMtpDeltaDataMgr * | NewL(RDbDatabase &) |
IMPORT_C void | ResetMTPDeltaDataTableL() |
IMPORT_C void | UpdateAnchorIdL(TInt, TInt) |
void | UpdateDeltaDataTableL(TInt64, TOpCode) |
IMPORT_C void | UpdatePersistentIndexL(TInt, TInt) |
Constructor & Destructor Documentation
CMtpDeltaDataMgr(RDbDatabase &)
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 &)
-
leave
- One of the system wide error codes, if a processing failure occurs.
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 &)
-
leave
- One of the system wide error codes, if a processing failure occurs.
GetDeletedPuidsL(TInt, TInt &, CMTPTypeArray &)
-
leave
- One of the system wide error codes, if a processing failure occurs.
GetModifiedPuidsL(TInt, TInt &, CMTPTypeArray &)
-
leave
- One of the system wide error codes, if a processing failure occurs.
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.
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 &)
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)
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.
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
iDeltaTableBatched
TBool
iNeedToSendMore
TBool
| iNeedToSendMore | [private] |
TBuf< KMTPMaxSqlStatementLen > iSqlStatement
RArray< TMTPTypeUint128 > iSuidIdArray
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.