Re: [Ekiga-devel-list] Ekiga address book searching by URI



On 10/11/10 21:01, Julien Puydt wrote:
Le 10/11/2010 19:24, Eugen Dedu a écrit :
Julien, any idea?

Yes. At one point we discussed that with Damien.

The naive way to do that is to add a get_uri method here and there, so
you just loop, ask for the uri, and when you find a matching one : ask
the name! It's so naive it won't work :
(1) why would every contact have a single uri? It could have zero, or
much more. For a contact in your typical addressbook, you certainly have
several mails, perhaps an MSN, a SIP and a skype...

Is this a problem for search_uri? You just show the contact who has this URI (no matter how many URIs he has).

(2) why would you find a single name? I have sometimes two contacts
which share the same phone number... because they happen to live
together ; which one should be shown? So let's not search for a name but
for a list of names : how do we choose?

Let's choose always the first.

I have ideas for a less naïve way which would get around (1) ; but have
little clue how to decide on which name in (2).

Let's discuss!

So who writes the get_uri function? This would allow to advance/finish Grigory's implementation.

--
Eugen


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