The record with the latest timestamp always wins. More...
Public Member Functions | |
| virtual void | resolveConflict (DataSyncRecord *a_localRecord, DataSyncRecord *a_remoteRecord, DataSyncRecord *&a_resolvedRecord) |
| resolveConflict | |
The record with the latest timestamp always wins.
| void Tonido::DataSync::LatestWinsSyncStrategy::resolveConflict | ( | DataSyncRecord * | a_localRecord, |
| DataSyncRecord * | a_remoteRecord, | ||
| DataSyncRecord *& | a_resolvedRecord | ||
| ) | [virtual] |
resolveConflict
Resolves the given conflict between 2 records. The winning record is set in the resolved record variable. If not resolved, an empty DataSyncRecord is set in the resolved record.
Implements Tonido::DataSync::DataSyncStrategy.