From: <dg...@su...> - 2009-01-25 13:22:11
|
Author: paule Date: Sun Jan 25 14:20:51 2009 New Revision: 5231 URL: http://www.opensync.org/changeset/5231 Log: Use BlogUrl for HomeWebPage and Url for BusinessWebPage in contacts (previously Url was linked to HomeWebPage and BusinessWebPage got discarded) Modified: plugins/opie-sync/src/opie_format.c Modified: plugins/opie-sync/src/opie_format.c ============================================================================== --- plugins/opie-sync/src/opie_format.c Sun Jan 25 14:00:26 2009 (r5230) +++ plugins/opie-sync/src/opie_format.c Sun Jan 25 14:20:51 2009 (r5231) @@ -158,12 +158,13 @@ } else if(!strcasecmp(iprop->name, "HomeWebPage")) { - out_xmlfield = osync_xmlfield_new(out_xmlformat, "Url", error); + out_xmlfield = osync_xmlfield_new(out_xmlformat, "BlogUrl", error); osync_xmlfield_set_key_value(out_xmlfield, "Content", iprop->children->content); } else if(!strcasecmp(iprop->name, "BusinessWebPage")) { - /* FIXME handle this field */ + out_xmlfield = osync_xmlfield_new(out_xmlformat, "Url", error); + osync_xmlfield_set_key_value(out_xmlfield, "Content", iprop->children->content); } else if(!strcasecmp(iprop->name, "Spouse")) { @@ -472,6 +473,9 @@ xmlfield_key_to_attr(in_xmlfield, "Content", on_contact, "Anniversary"); } else if(!strcmp("Url", fieldname)) { + xmlfield_key_to_attr(in_xmlfield, "Content", on_contact, "BusinessWebPage"); + } + else if(!strcmp("BlogUrl", fieldname)) { xmlfield_key_to_attr(in_xmlfield, "Content", on_contact, "HomeWebPage"); } else if(!strcmp("FormattedName", fieldname)) { @@ -493,7 +497,6 @@ // TODO: Entries to be handled /* unsigned int rid; */ /* unsigned int rinfo; */ -/* char* business_webpage; */ /* int gender; */ /* char* children; */ /* GList* anons; */ |