summaryrefslogtreecommitdiff
path: root/addressbook/libebook-contacts/e-phone-number.c
Commit message (Collapse)AuthorAgeFilesLines
* libebook: Report missing phone number support by GErroropenismus-work-error-argsMathias Hasselmann2013-03-071-7/+19
| | | | | | | Add GError arguments to e_phone_number_get_default_region() and e_phone_number_get_country_code_for_region() to properly report missing phone number: Warnings cannot be handled programatically and make GTest based unit tests failed.
* libedata-book: Avoid setlocale()Mathias Hasselmann2013-03-061-2/+3
| | | | | | It is not thread-safe at it changes the entire program's locale settings. As a side effect also permit locale strings for functions like e_phone_number_get_country_code_for_region().
* libedata-book: Improve national phone number matchingMathias Hasselmann2013-03-061-1/+25
| | | | | | | | | | | | | | e_phone_number_compare() and e_phone_number_compare_strings() had different opinion how well "1234" and "234" match within NANP regions. First considered them a national significant number match as it interpreted the leading "1" as country calling code, the later didn't. The former interpretion fits better our E.164 normalization we do in the SQLite backend, therefore we adopted that approach. This also introduces e_phone_number_compare_strings_for_region(). https://bugs.freedesktop.org/show_bug.cgi?id=59571
* Fix typo in e_phone_number_error_to_string().Matthew Barnes2013-02-241-1/+1
|
* Splits libebook into two libraries.Tristan Van Berkom2013-02-151-0/+389
This clears the way for Direct Read Access APIs to be integrated, since EBookClient now needs to access EDataBook apis, a common library is needed to share all the addressbook related objects related to EContact so that it can be used by both the server side addressbook backends and EDataBook, as well as EBookClient. Essentially this properly splits things up and avoids a nasty circular dependency issue.