« Return to Thread: What's objtype "data" stand for?

Re: What's objtype "data" stand for?

by Halton Huo :: Rate this Message:

Reply to Author | View in Thread

Daniel,

Could you answer explain my question about "object type" and "object format"?

We need understand it well before design our PluginManager.

BTW, I'm concern about the overlap on different object types. Besides
data is 'wildcard', is there any coverage for rest of them? If have, how
to know the relationship?

Thanks,
Halton.
On Tue, 2008-04-29 at 16:37 +0800, Halton Huo wrote:
Daniel,

I'm kind of confused by word "object type" and "object format".

My understanding for now is

object type object format plugin
data file N/A
contact vcard30, vcard21 format-plugins/vformat
event vevent20 format-plugins/vformat
note vjournal format-plugins/vformat
todo vtodo20 format-plugins/vformat
email(*)

format-plugins/email (*)
image(*)

format-plugins/image (*)
bookmark(*)

format-plugins/bookmark (*)
account(*)

format-plugins/account (*)
(*) means not available

Thanks,
Halton.
On Tue, 2008-04-29 at 10:08 +0200, Daniel Gollub wrote:
On Tuesday 29 April 2008 09:57:18 Halton Huo wrote:
> So currently libopensync support five obj types:
>
> * data: a wildcard
> * event:
> * contact:
> * note:
> * todo:
>
> Is all objtypes a static list? I mean any possible to add more objtypes
> like file, image, email, and so on in the future. (file is wildcard for
> image and email) This could affect the GUI implement.

Yeah, that is possible and intended. Just write a new format plugin which 
registers a objformat with a new object type. We might should specify future 
objtypes, to avoid different names of object type - bad example: picture, 
image, photo, ...

PS: there is already the object format "file" with the object type "data" ;)
So from your list only object type "email" and "image" is missing...

Also cool would be:
- "bookmark"
- "account" - like keys/passwords/account (e.g. from KWallet, gnome-key-ring)
Do you mean use this format plugin,  plugins like google-calendar to save/load password safely?

...
- "email"
- "image"

But i guess you're asking to know if it's worth to handle the number of 
available object types dynamic, not static/hardcoded - right? If so you  
might still need to map those objtype strings to something human-readable 
inside your UI. Like: "contact" -> "Contacts", "event" -> "Appointments", ...

best regards,
Daniel

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel

 « Return to Thread: What's objtype "data" stand for?

LightInTheBox - Buy quality products at wholesale price