From: Armin B. <arm...@de...> - 2005-08-20 13:03:10
|
Danny Backx wrote: > Hmm, I don't understand the 2 groups issue fully. > > Some other plugins (e.g. evolution2) have multiple parts in their > configuration, for addresses, calendar entries, and tasks. > > Are you saying it is not workable to extend MirKuZ's SynCE plugin, > with those three but also a fourth entry (one in which we say which > directory a computer should synchronize the filesystem of my PDA) ? no, im saying that you should extend mirkuz plugin to allow synchronization of files. This is by far the most easy and best approach. > > Or is this because most plugins have address/calendar/tasks triplets > and it would make configuration easier if filesystem were separate ? > Imagine the following situation: You have the synce device which can synchronize either contacts (as vcards) or files. The other side is the file-sync plugin. Now lets assume that there is one file in the directory of the file-sync plugin which contains a vcard. Either you want to synchronize this vcard in the file to the addressbook of the device or you want to synchronize the whole file into a directory of the device. Both are equal and there is no way for opensync to decide which synchronization would be correct. Since i could not find a way to solve this dilemma, i decided that it would be best to not allow such a synchronization at all. But you can of course still sync all PIM data (notes, contacts, calendar, tasks, email etc) in a single group. Hope this helps :) > Thanks, > > Danny > > On Fri, 2005-08-19 at 21:36 +0200, Armin Bauer wrote: > >>Danny Backx wrote: >> >>>Question on how to proceed with this. >>> >>>I'd like to use SynCE and OpenSync to back up my PDA. Not only the PIM >>>data (the agenda, contacts, tasks), but also some of the file structures >>>in its memory, or on the memory card. >>> >>>What's the best way to do this ? One end is probably the file plugin >>>to opensync, I'm wondering about the other end. Should that be an >>>extension to the 0.01 synce plugin by MirKuZ (i.e. extend it to do not >>>only tasks, agenda, .. but also files); or should it be a separate >>>plugin like MirKuZ's that just deals with files ? >>> >> >>Hi, >> >>the best and easiest approach would be to extend mirkuz plugin to allow >>the synchronization of files. You just tell opensync that you are able >>to synchronize files in the get_info function and implement the >>necessary functions to handle this. The rest will be handled by opensync. >> >>Note: you cannot however synchronize files and PIM data in the same sync >>group, you need 2 groups for this. The reason is that opensync would >>never know if you wanted to synchronize a vcard it gets from the >>file-sync plugin to the file storage of the device or to the addressbook. >> >> >>>Thanks for the advice, >>> >>> Danny |