http://bugzilla.moblin.org/show_bug.cgi?id=7871
--- Comment #1 from Chen Congwu <congwu.chen(a)intel.com> 2009-11-17 21:31:31 PST
---
(In reply to comment #0)
The message must contain:
- names for server-side data sources
which are recognized by the target device.
Do you mean the "Server URI" field in SAN?
The server identifier should be the local device ID, unless something
else is
expected by the peer. We need a new configuration setting for this
("serverId"?), with "empty" meaning "use deviceId".
use "remoteIdentifier" for this purpose. If this is empty, fallback to
use
"deviceId".
The data source names are a bit more tricky. We can't rename the
"addressbook",
"calendar", "todo", "memo" sources because the GUI and the
users expect them,
and because these names will be shared by different peers. We need per-peer
aliases.
We don't rename them, just let "SourceConfig.uri" equals
each.
I think this can be implemented like this:
- configure whether a peer configuration is for a client or server:
new configuration option "isClient" = false by default
- if true, the "uri" property is treated as a local alias for the
data source name
- these names are sent in the SAN
The above has been done.
While I am not sure whether the following is necessary, could you explain? Take
addressbook as an example:
We have a local source (addressbook) at the server side(The folder
~/.config/syncevolution/$server/sources/addressbook) and tell the remote peer
contact us via the remote uri identified in
(~/.config/syncevolution/$server/sources/addressbook/config.ini:uri) which we
set it to "addressbook" intentionally.
This works for a simple Nokia phone sync.
- the Synthesis engine XML configuration is created using the
aliases instead of the original name
- SyncContext::findSource() must get a parameter which tells it whether
it should use the aliases, false by default
- SyncEvolution_Module_CreateContext() and SyncEvolution_CreateContext()
must search based on the alias
--
Configure bugmail:
http://bugzilla.moblin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching someone on the CC list of the bug.