EBookBackendSqliteDB: Added e_book_backend_new_contact[s]() APIs
authorTristan Van Berkom <tristanvb@openismus.com>
Fri, 18 Jan 2013 06:50:04 +0000 (15:50 +0900)
committerTristan Van Berkom <tristanvb@openismus.com>
Tue, 22 Jan 2013 06:14:42 +0000 (15:14 +0900)
commite51f21579c7839b6c3e15a0685c5ec37e8298fff
tree58a28209c0ae1c741b75d73e60c97167328ee78e
parent7c96b06f6aa4b83425b26156b0971c9b18ac92d9
EBookBackendSqliteDB: Added e_book_backend_new_contact[s]() APIs

The new API allows control on whether or not to overwrite existing contacts
with the same UID.

Deprecated the older e_book_backend_add_contact[s]() apis which include
the unused 'partial_contact' parameter and have no control on whether
or not to overwrite existing contacts.

Additionally this patch exposes the E_BOOK_SDB_ERROR domain and a couple
of error codes to distinguish if an error occurred because of a constraint
or other errors (UID conflicts at contact addition time are constraint
errors).

Conflicts:

addressbook/libedata-book/e-book-backend-sqlitedb.c
addressbook/libedata-book/e-book-backend-sqlitedb.h
addressbook/libedata-book/e-book-backend-sqlitedb.c
addressbook/libedata-book/e-book-backend-sqlitedb.h