From kde-pim Sat Jan 26 15:21:39 2002 From: Adriaan de Groot Date: Sat, 26 Jan 2002 15:21:39 +0000 To: kde-pim Subject: Re: [Kde-pim] RFC:KitchenSync Are you ready for syncing? X-MARC-Message: https://marc.info/?l=kde-pim&m=101212613007397 On Saturday 26 January 2002 11:53, Cornelius Schumacher wrote: > On Friday 25 January 2002 00:08, Holger Freyther wrote: > > Am Donnerstag, 24. Januar 2002 22:56 schrieb Cornelius Schumacher: > > > KSyncee represents a set of entries. You need it and you also need > > > the log files to detect, which entries have been updated, which > > > have been added and which have been removed. That's much more than > > > an iterator. > > > > why would we need it( do we want to make it private? or chat in > > #kitchensync?) > > You need this for conflict resolution. E.g. if you have two addresses > which are different on your Palm and in your KAddressbook, you can't > tell which one should be taken. You can ask the user, but if you know > that the address on the Palm hasn't changed since the last sync, but > the address on the desktop has, you know that the desktop address is > the more recent one, without needing to ask the user. For added or > deleted addresses it's similar. Y'all know I'm a one-device kinda guy, right? So take the following in a Palm Pilot context: *Before* just designing something out of thin air, I'd suggest you go to the library and take a look at O'Reilly's "Palm Programming". Page 322, in the chapter on Conduits. There's other places in the book where conduits and the required infrastructure are detailed. Cornelius is absolutely right. You need at least: 1) the data on the device itself 2) an image of the data on the device itself from the last time it was synced 3) the data you are syncing with By calculating 1-2 and 3-2, you can find all changed entries and sync them. You can't just rely on the "RecordChanged" bit in the device, since one device may sync against several PC's. _______________________________________________ kde-pim mailing list kde-pim@mail.kde.org http://mail.kde.org/mailman/listinfo/kde-pim kde-pim home page at http://pim.kde.org/