On Thu, 11 Mar 2004, Stefan Huber wrote: > Hi everybody, > > i have a few questions on how to getting started writing plugins for > multisync. > > 1.) Is there only the document "plugin-API.c" which maybe could help me in > coding a plugin, or is there more stuff anywhere?
This is pretty much it. > > 2.) Where can I get more information about the process of synchronisation, > so that I can code easier? > > 3.) I have tried to understand the synchronisation process between the > plugins Ximian Evolution and Backup. Now I want to code another plugin for > another organizer application (like Evolution, KOrganizer etc.). But it is very > hard to me to understand the whole synchronization process between the > two plugins. Where ends the functionality of the one plugin, and where starts > the other? How do they exchange their data resp. where stores for example the > Evolution plugin the adress data, that the backup plugin can save it to > file? This is somewhat explained in the comments in plugin-API.c. For a slightly higher level you can think of your plugin as only having to interact with the sync engine. Don't worry about any other plugins. The sync engine will call the API methods in you plugin. The lifecycle consists of (assuming a plugin that requires a reconnect each time): sync_connect() get_changes() syncobj_modify() and syncobj_delete() as required sync_done() sync_disconnect() This omits a few details, but that is the general idea. The most important part is that you tell the sync engine what has changed since the last sync from your plugin's point of view in get_changes() and then make the changes requested by syncobj_modify() and syncobj_delete(). Hopefully this makes things more clear. > 4.) Do you use Glade 2.01 for developing the plugins? We do use glade2 for doing the GUI. What application are you thinking of writing a plugin for? Tom ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Multisync-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/multisync-devel