GossipChatroomContact must die ?

Xavier Claessens <[email protected]> Thu, 14 Dec 2006 15:12:50 +0100
Newsgroups gmane.comp.gnome.gossip.devel
Message-ID <1166105570.32487.38.camel@zdra-desktop>
Hello,

With telepathy a contact can be in the roster and in a chatroom at the
same time, it doesn't make any difference for avatar/presence/alias/etc.
In libgossip we make the difference between GossipContact and
GossipChatroomContact because there are 2 more properties: affiliation
and role.

I discussed that with Martyn we see only 2 solutions:

1) We move affiliation/role properties to GossipContact and remove
GossipChatrooContact class.

2) Store a contact list into GossipChatroom to map for each contact a
small struct containing his affiliation/role in this chatroom. This have
the advantage that the same GossipContact object can be added to more
than one chatroom with different role/affiliation.

Maybe someone have others idea ? If there is no other solution, what's
the better, 1. or 2. ?

Xavier.

_______________________________________________
Gossip-dev mailing list
[email protected]
http://lists.imendio.com/mailman/listinfo/gossip-dev
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBFgVvi6dEBUn2qPAMRArJUAJ95BjigKwQoFTd2suigAANwc9NIKACfdbhm
vFLjpdghAGT5YsWzqqFMJ2c=
=dhEC
-----END PGP SIGNATURE-----