From: Andrew B. <an...@cs...> - 2006-02-28 03:01:19
|
Hi, I'm writing a plugin to sync my mobile phone's calendar. Unfortunately, the= =20 phone is fairly primitive and doesn't have any way to store UIDs on events,= =20 just some of the event data itself: summary, time, duration, alarm time, an= d=20 (a simple) recurrence type. Events are stored in slots 1-500, and once an=20 event is stored in a slot its slot doesn't change when it is modified. Ther= e=20 is the possibility that an event could be deleted and another recreated in= =20 the same slot; there is no way (other than heuristics) to distinguish this= =20 from a modification, but I was going to ignore that problem for now. I was hoping someone could give me suggestions on the best way to map slot= =20 numbers to UIDs. From reading SynchronizationOverview in the wiki, it seems= =20 that opensync allows a device to use its own UIDs and remembers the mapping= =20 between the UIDs on all the different devices. Is that correct? In that cas= e,=20 could I generate a UID that is basically just the slot number, and opensync= =20 will take care of the rest? If so, when I get a new event ADDED to the phone, how can I inform opensync= =20 what UID it has received on the device? Just overwrite the uid field on the= =20 change object before reporting success? Thanks, Andrew |