[qtMoko] How Contact selection UI is filled
guilhem.bonnefille at gmail.com
Wed Jan 25 17:05:40 CET 2012
I still not know precisely what code is running when I select
recipients of a SMS. But I found many codes doing similar things, but
QContactSelector (in src/libraries/qtopiapim/qcontactview.cpp) allow
to select a single contact (I think) but return a QContact reference.
The caller is then responsible of picking the right info and
requesting a new selection from the user if the selected contact has
many possible info (see src/server/phone/dialer/touch/dialer.cpp).
This seems quite a good design.
I also found AddressSelectorWidget (in
src/libraries/qtopiamail/addressselectorwidget.cpp). It allows to
select many recipients. But, by design, it does not allow to select
the phone number of a contact when this contact has many phone
numbers. The info used are only the defaultPhone or defaultEmail. This
selector is interesting as it allow to select many contacts and offers
a "Find" feature.
What's the right way to fix the issue? I imagine the best one is to
merge these selectors. But I'm really too new to qtMoko's hacking to
decide the way to merge these codes.
Any suggestion is welcome.
2012/1/22 Guilhem Bonnefille <guilhem.bonnefille at gmail.com>:
> When writing a message (SMS), the recipient dialog show me a list of
> contact (with checkboxes). But when I select some contact, with many
> phone numbers, the wrong phone number is picked and I do not have
> ability to select the right one. I do not know what's wrong:
> - is there any filtering on phone number?
> - is it missing a dialog to select between the different phone numbers
> of a contact?
> Can someone point me the source code responsible of this dialog? I
> tried to look at it, but qtMoko is quite complex and hard to start
> with (specially for occasional hacking).
> Thanks in advance.
> Guilhem BONNEFILLE
> -=- JID: guyou at im.apinc.org MSN: guilhem_bonnefille at hotmail.com
> -=- mailto:guilhem.bonnefille at gmail.com
> -=- http://nathguil.free.fr/
-=- JID: guyou at im.apinc.org MSN: guilhem_bonnefille at hotmail.com
-=- mailto:guilhem.bonnefille at gmail.com
More information about the community