| class CNSmlChangeFinder : public CBase |
nsmlchangefinder.lib
| Public Member Functions | |
|---|---|
| ~CNSmlChangeFinder() | |
| IMPORT_C void | CloseL() |
| IMPORT_C void | CommitChangesL() |
| IMPORT_C void | CommitChangesL(const MSmlDataItemUidSet &) |
| IMPORT_C TInt64 | DataStoreUid() |
| IMPORT_C void | FindChangedItemsL(CNSmlDataItemUidSet &) |
| IMPORT_C void | FindDeletedItemsL(CNSmlDataItemUidSet &) |
| IMPORT_C void | FindMovedItemsL(CNSmlDataItemUidSet &) |
| IMPORT_C void | FindNewItemsL(CNSmlDataItemUidSet &) |
| IMPORT_C void | FindSoftDeletedItemsL(CNSmlDataItemUidSet &) |
| IMPORT_C void | ItemAddedL(const TNSmlSnapshotItem &) |
| IMPORT_C void | ItemDeleted(const TNSmlSnapshotItem &) |
| IMPORT_C void | ItemMovedL(const TNSmlSnapshotItem &) |
| IMPORT_C void | ItemSoftDeletedL(const TNSmlSnapshotItem &) |
| IMPORT_C void | ItemUpdatedL(const TNSmlSnapshotItem &) |
| IMPORT_C CNSmlChangeFinder * | NewL(MSmlSyncRelationship &, TKeyArrayFix, TBool &, TInt) |
| IMPORT_C void | ResetL() |
| IMPORT_C void | SetDataStoreUid(TInt64) |
| IMPORT_C void | SetNewSnapshot(CArrayFixSeg< TNSmlSnapshotItem > *) |
| Protected Member Functions | |
|---|---|
| CNSmlChangeFinder(MSmlSyncRelationship &, TKeyArrayFix, TInt) | |
| void | ConstructL(TBool &) |
| CNSmlChangeFinder | ( | MSmlSyncRelationship & | aSyncRelationship, |
| TKeyArrayFix | aKey, | ||
| TInt | aStreamUid | ||
| ) | [protected] | ||
| MSmlSyncRelationship & aSyncRelationship | |
| TKeyArrayFix aKey | |
| TInt aStreamUid |
| IMPORT_C void | CommitChangesL | ( | const MSmlDataItemUidSet & | aUids | ) |
Update snapshot for all items that are synchronized correctly..
| const MSmlDataItemUidSet & aUids | UIDs that are synchronized correctly. |
| IMPORT_C TInt64 | DataStoreUid | ( | ) | const |
Gets old UID of DataStore. Return TInt. Old UID of DataStore. Returns -1 (KErrNotFound) if UID of DataStore is not set.
| IMPORT_C void | FindChangedItemsL | ( | CNSmlDataItemUidSet & | aChangedUids | ) |
Returns changed items. Item is changed, not soft deleted currently or not only moved
| CNSmlDataItemUidSet & aChangedUids | On return contains changed items. |
| IMPORT_C void | FindDeletedItemsL | ( | CNSmlDataItemUidSet & | aDeletedUids | ) |
Returns deleted items. Item is deleted permanently
| CNSmlDataItemUidSet & aDeletedUids | On return contains deleted items. |
| IMPORT_C void | FindMovedItemsL | ( | CNSmlDataItemUidSet & | aMovedUids | ) |
Returns moved items. Item is moved, not changed.
| CNSmlDataItemUidSet & aMovedUids | On return contains moved items. |
| IMPORT_C void | FindNewItemsL | ( | CNSmlDataItemUidSet & | aNewUids | ) |
Returns new items.
| CNSmlDataItemUidSet & aNewUids | On return contains new items. |
| IMPORT_C void | FindSoftDeletedItemsL | ( | CNSmlDataItemUidSet & | aSoftDeletedUids | ) |
Returns soft deleted items. Item is soft deleted, it can be also modified or moved.
| CNSmlDataItemUidSet & aSoftDeletedUids |
| IMPORT_C void | ItemAddedL | ( | const TNSmlSnapshotItem & | aItem | ) |
Update snapshot for added item.
| const TNSmlSnapshotItem & aItem | Item that needs update. |
| IMPORT_C void | ItemDeleted | ( | const TNSmlSnapshotItem & | aItem | ) |
Update snapshot for deleted item.
| const TNSmlSnapshotItem & aItem | Item that needs update. |
| IMPORT_C void | ItemMovedL | ( | const TNSmlSnapshotItem & | aItem | ) |
Update snapshot for moved item.
| const TNSmlSnapshotItem & aItem | Item that needs update. |
| IMPORT_C void | ItemSoftDeletedL | ( | const TNSmlSnapshotItem & | aItem | ) |
Update snapshot for soft deleted item.
| const TNSmlSnapshotItem & aItem | Item that needs update. |
| IMPORT_C void | ItemUpdatedL | ( | const TNSmlSnapshotItem & | aItem | ) |
Update snapshot for updated item.
| const TNSmlSnapshotItem & aItem | Item that needs update. |
| IMPORT_C CNSmlChangeFinder * | NewL | ( | MSmlSyncRelationship & | aSyncRelationship, |
| TKeyArrayFix | aKey, | |||
| TBool & | aHasHistory, | |||
| TInt | aStreamUid = KNSmlDefaultSnapshotStreamUID | |||
| ) | [static] | |||
Two-phase constructor for CNSmlChangeFinder class.
| MSmlSyncRelationship & aSyncRelationship | Reference to MSmlSyncRelationship interface. |
| TKeyArrayFix aKey | Key that is used in sorting snapshot. |
| TBool & aHasHistory | Boolean that is true if change finder has history for current uid. |
| TInt aStreamUid = KNSmlDefaultSnapshotStreamUID | Snapshot stream UID. |
| IMPORT_C void | SetDataStoreUid | ( | TInt64 | aUid | ) |
Sets new UID of DataStore.
| TInt64 aUid |
| IMPORT_C void | SetNewSnapshot | ( | CArrayFixSeg< TNSmlSnapshotItem > * | aNewSnapshot | ) |
Sets new (current) snapshot.
| CArrayFixSeg< TNSmlSnapshotItem > * aNewSnapshot | New snapshot. |
| CArrayFixSeg< TNSmlSnapshotItem > * | iCurrentSnapshot | [private] |
| CArrayFixSeg< TNSmlSnapshotItem > * | iOldSnapshot | [private] |
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.