[sync] Content types

Anthony Mills amills at gascard.net
Wed Jan 21 12:04:38 PST 2004


You can have many different types, the problem is you have to read the 
DevInf tags to tell what it supports, I don't have support for DevInf in 
  WBXML yet.  My plan was once we have support for DevInf to send a list 
of content types to the import/export methods until one works.
<code>
$content = notes/export($guid, "text/plain"));
if (!$content) {
	$content = notes/export($guid, "text/x-vnote"));
}
</code>

According to the spec, you can sync anything the client and server 
understands. I think most clients understand the minimum I wrote 
earlier.  You can also sync email, bookmarks, or any other content type.
So text/message for email could be supported, like email/export($guid, 
"text/message");

Bottom line, we can add anything we want to import and export, we just 
need to find a match for each content type.  To make things more 
interesting, I think different clients understand different content 
type.  If we allow the content type to be passed to the import and 
export methods, and use the registry, then the SyncML server will be 
generic enough to support syncing most anything.

Anthony

Jan Schneider wrote:
> Zitat von Anthony Mills <amills at gascard.net>:
> 
>> Here are the content types we need for import and export methods.
>>
>> notes:  text/plain: asci text
>> tasks:  text/x-vcalendar: vCalendar
>> calendar: text/x-vcalendar: vCalendar
>> contacts: text/x-vcard: vCard
> 
> 
> What about vNote (as Chuck already said), iCalendar (essentially vCalendar
> 2.0) and vTodo?
> 
> Jan.
> 
> -- 
> http://www.horde.org - The Horde Project
> http://www.ammma.de - Neue Wege des Lernens
> http://www.tip4all.de - Deine private Tippgemeinschaft
> 




More information about the sync mailing list