On 5/19/07, <b class="gmail_sendername">Robert McQueen</b> <<a href="mailto:robert.mcqueen@collabora.co.uk">robert.mcqueen@collabora.co.uk</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Abner Jose wrote:<br>> What about aliasing? Will it work in the same way as Avatar?<br><br>It's a different problem to avatars because often aliases are pushed to<br>you, and it's not often it requires a round-trip to the server. The idea
<br>I had for aliasing was that we could leave the existing API as-is, with<br>RequestAliases, but also add a function GetAliases, which would return<br>the current known value of any cached/received/heuristically-determined
<br>aliases, but also potentially sending off some longer-running requests<br>which would return AliasChanged later.</blockquote><div><br>Great idea. Probably it'll help a lot, because I don't know why, but RequestAlias takes a long time to return. Seems to be the most expensive of all when we're testing an IM client. (We've tested it on colligo, but probably is because it blocks the ui)
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On a similar note, I was considering an API on the Connection, something<br>like ContactQuery, or the turbo-handle inspector, which would take a
<br>load of handles and return you a sparse dictionary for each, containing<br>any information known about them keyed by identifiers, eg 1 could be<br>string value of the handle, 2 could be the alias, 3 could be the<br>presence, 4 could be the avatar token, 5 could be the handle owner (if
<br>the given handle was channel specific).<br><br>Also, the return value could include opportunistic results about any<br>owner handles (in the same way that DNS queries can return extra<br>relevant results). It could also have the semantic of sending off any
<br>relevant long-running queries, and later emitting signals when this<br>information was received.<br><br>The intention would be to reduce bus-roundtrips (which are the real<br>performance killer) when e.g. joining a channel, or receiving an
<br>invitation from someone, etc: rather than querying 3 or 4 different<br>methods for handle x y and z, you can immediately make 1 method call for<br>[xyz] and scrape out any info the connection manager has about them at
<br>the moment, and hook the signals for any subsequent updates.</blockquote><div><br>This is awsome!!<br><br>I love that, but is there no problem to pass a big bunch of data through dbus? I mean, handle uri + presence + alias + avatar (data) + extra infos about contact.
<br>Well anyhow I don't think it'll be so big ...<br></div><br></div>BR<br><br>-Abner<br><br>-- <br>Abner José de F. Silva<br>INdT - Instituto Nokia de Tecnologia<br><a href="mailto:abnerf@gmail.com">abnerf@gmail.com
</a>