Well I wrote my database plugin in copying the example of SDK_demodb, because for whatever reason I couldn't get the SDK_textdb example to work. So now I have a plugin written in C for a client. Now the the libsynthesis engine calls this plugin for example with an InsertItem(), I get data in the aa:bb<CRLF> format. However I have no why of interpreting that data and I need it in vcard format without rewriting code to convert it based on the configuration xml file. I was hoping not to do that.
I notice that SyncEvolution use a CPP version of the database plugin. Instead of InsertItem() being called, InsertItembyKey() is called by the engine. This passes in a KeyH for the data instead, does this data contain vcard format so you don't have to deal with the aa:bb<CRLF> format. Thanks for you help and comments. On Mon, Mar 15, 2010 at 1:31 AM, Patrick Ohly <[email protected]>wrote: > On Di, 2010-03-09 at 22:28 +0000, paul wrote: > > > LibSynthesis uses an internal data structure formatted as multiline > > aa:bb<CRLF>... > > The internal representation is the field list. This aa:bb<CRLF> format > is an external format for it, as far as I remember. I'm not entirely > sure where exactly it is used. I never had to use it in SyncEvolution. > > > Is there any API available in LibSynthesis to convert that to vCard > > format? I see a function recently added DataConversion, but I'm not > > sure if that is just used for testing or if it will work. > > It won't work. The DataConversion() function will convert from one > format into another. The format is defined by a datatype in the XML > configuration. The aa:bb<CRLF> format is not such a datatype. > > Can you describe what you are trying to accomplish? Perhaps there are > other ways to do it, or it is useful enough to add something. > > -- > Best Regards, Patrick Ohly > > The content of this message is my personal opinion only and although > I am an employee of Intel, the statements I make here in no way > represent Intel's position on the issue, nor am I authorized to speak > on behalf of Intel on this matter. > > >
_______________________________________________ os-libsynthesis mailing list [email protected] http://lists.synthesis.ch/mailman/listinfo/os-libsynthesis
