Re: [Fwd: Proposing new external dependency for Empathy: libfolks]





Le 26/05/10 18:45, Xavier Bestel a écrit :

On Wed, 2010-05-26 at 09:19 -0700, Travis Reitter wrote:
On Wed, 2010-05-26 at 17:37 +0200, Xavier Bestel wrote:
On Wed, 2010-05-26 at 08:23 -0700, Travis Reitter wrote:
Just to clarify a little, it would look like this:

   telepathy                e-d-s
       |                      |
       V                      V
     telepathy-vala     libebook-vala
                 |      |
                 |      |
    +--------+---+------+-----------+
    |libfolks|   |      |           |
    +--------+   V      V           |
    |      TpPersona   EPersona     |
    |               \ /             |
    |                V              |
    |            Individual         |
    |                |              |
    +----------------+--------------+
                     |
                     V
               <applications>

Does that mean that, when I sync from Evolution, I'm loosing a part of
the information constituting an Individual ?

What kind of syncing, specifically?

libfolks' Personas are designed to stay synchronized with their original
sources (through their per-backend PersonaStore, which I left out of the
diagram above for simplicity).

If the EContacts in e-d-s change state (eg, you synchronize them from
another addressbook, change them in Evolution itself), libebook will
signal the changes, EPersonaStore will handle the signals and update its
EPersonas (including adding/removing full EPersonas, as necessary), and
each EPersona will signal the changes. The Individual will notice the
changes and update its exposed attributes (and emit its own signals).

Does that answer the question?

I'm not sure. Say I have a "central" server where I store my contacts,
and 2 workstations syncing to that server through Evolution. If I add
some information (e.g. a Facebook id) to an Individual with Empathy on a
workstation, will it appear on the other workstation ?

	Xav

First, I don't think Empathy should be a full vCard editor. That said, if empathy (or any app, include Evolution) edit a contact, the new vCard is stored in E-D-S and sync system will just replicate that change in other PCs. I think that process is totally transparent to libfolks. The only thing to take care is to not change the UID of the EContact in the sync process, otherwise the contact will "unmerge".

Or did you mean if I merge a TpContact (say, a Jabber contact foo jabber org) and an EContact together into an Individual, the EContact should be added a vCard attribute "X-JABBER=foo jabber org" and that info sync in other PCs? That could be done, but I don't think that's necessary.

Regards,
Xavier Claessens.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]