![]() |
libabook Contact from number
So I've been struggling for 3 days now trying to do only one thing! Given a phone number, I want to fetch the contact name associated with that number! 3 days switching back and forth between osso abook and ebook libraries. Not to mention that I'm developing in python and have to use ctypes as there are no bindings yet.
However, forget about python, can someone just point me out to the correct steps get a contact from his/her number? Thanks a lot |
Re: libabook Contact from number
Quote:
http://maemo.org/api_refs/5.0/5.0-fi...r-phone-number http://maemo.org/api_refs/5.0/5.0-fi...y-phone-number Hope that helps. |
Re: libabook Contact from number
I recently added this new wiki page:
http://wiki.maemo.org/PyMaemo/Access.../More_examples It contains sample source code (using ctypes) to do what you want. Hope that helps. |
Re: libabook Contact from number
Quote:
|
Re: libabook Contact from number
The example uses directly libebook, you should not do that.
You have to get the default aggregator (osso_abook_aggregator_get_default), wait for it until it's ready (osso_abook_waitable_call_when_ready) and then search for the matching contacts (osso_abook_aggregator_find_contacts_for_phone_num ber). |
Re: libabook Contact from number
Quote:
|
Re: libabook Contact from number
Quote:
I'll see if I can add another example using the recommended API, but if you can provide one (even in C) that will be great! :D |
Re: libabook Contact from number
Something like this should work (in C):
Code:
#include <libosso-abook/osso-abook.h> |
Re: libabook Contact from number
A quick tip to find a library.
|
Re: libabook Contact from number
Quote:
|
All times are GMT. The time now is 08:13. |
vBulletin® Version 3.8.8