Pagination added for contact endpoint.
Introduced PagedContext and query message for contacts that returns
the required contacts together with the number of all contacts in db.
[EGD-2460] additional stoi/stoul protected; usage of magin_enum; review issues resolved
[EGB-2460] added return when exception caught as mention by Radek
Use phone number instead of contact number to identify a message thread
to allow having multiple threads for a contact if contact has multiple
numbers.
Fix duplicates detection when updating a contact.
Before this change dupliates detection both for numbers and speed dial
was not implemented at all.
Fix contact update procedure - add unbinding procedure if a new number
was bound to another contact before update. Do the same for speed dial.
Fix invalid contact number tests (it wasn't taken into account that each
section has clean db state).
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
Fix contacts get query following changes in the contacts database to
move contacts groups to another table.
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
Introduce a new way to handle query responses allowing to deal with
races:
- bind reponse with request,
- handle responses with an observer-like interface.
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
Refactor phonebook's models to merge both implementation. One model
class is used for both main and search results windows.
Improve search by matching entered string against:
- first_name " " last_name
- last_name " " fist_name
Sort results by last_name " " first_name, favs first.
Small improvement to the list view has been added to deal with
asynchronous db reads.
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
Use PhoneNumber::View instead.
Removed caching mechanism of ContactRecord, because it was causing
several problems and it was a bad place to put it anyway.
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
Introduced format aware phone number comparison to allow improved
matching phone numbers with contacts.
Phone numbers are also displayed formatted on a phonebook/calllog
list view and on detailed contact info view.
Entered and e164 number are verified to match each other during
processing db request.
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
* [EGD-2513] new API to create temparary contact entry if cannot be found
Calllog should search for contact.
* [EGD-2513] #pragma once in all headers file in module-db
* [EGD-2513] new constructor for CalllogRecord
* [EGD-2513] contact recognition for calllog DB API
* [EGD-2513] clean up
* [EGD-2513] displaying name and surname call and calllog
* [EGD-2513] enum instead bool
* [EGD-2513] fix in remporary contact creation
* [fix][EGD-2513] missing c_str
* [fix][EGD-2513] minor fixes in documentation
* [EGD-2513] unified entry read state for both sms and calllog dbs
* [EGD-2513] calllog db documentation
* [EGD-2513] code reviex fixed in ContactRecord