On Do, 2011-08-25 at 19:51 +1000, Roger KeIrad wrote:
> Hello,
> 
> i will try to add sqlite calendar management with the same manner than
> the addressbook one.

Which "addressbook one"?
 
> i have a question here, when using ical or vcal synchronization, the
> getSynthesisAPI()->getValue() function always return the ical
> representation data .

I assume you talk about getValue("itemdata") here. That is the mechanism
used to convert the internal field list into a string again for the
backend and make it available.

The content is produced by:
        itemdata = MAKETEXTWITHPROFILE(" << info.m_profile << ", \"" << 
info.m_backendRule << "\");\n"
in SyncSourceBase::getDatastoreXML().

The MAKETEXTWITHPROFILE() takes a mode parameter which allows choosing
between legacy vCalendar 1.0 and current iCalendar 2.0.

This can be set as part of the info.m_profile value. Instead of
"\"vCalendar\", 2" use "\"vCalendar\", 1".
        
> Can this function return the vcalendar representation data when
> synchronizing using vcalendar type ? 
> How can i manage the specific fields between vcalendar and icalendar ?

They are mapped via the shared field list as defined in the profile.

-- 
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

Reply via email to