Let EDataBook track the "opened" state.
authorMatthew Barnes <mbarnes@redhat.com>
Thu, 21 Mar 2013 17:09:08 +0000 (13:09 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Thu, 21 Mar 2013 17:46:13 +0000 (13:46 -0400)
commit82ed8d71780b908c7be19e8c1e2af5eadd20aac1
treef1285c6868585a3835f89296d81a768c936b6860
parente563425e0fafb544760475716ff9d2746fe404d7
Let EDataBook track the "opened" state.

Due to the asymmetric nature of our backend APIs, the open() method
begins in EBookBackend, but the end result is reported to EDataBook.
So it makes more sense for EDataBook to track the backend's "opened"
state, at least until the APIs can be modernized.

This adds a new function -- e_data_book_is_opened() -- which is just a
temporary hack and should only be called by e_book_backend_is_opened().

This avoids EDataBook needing to call e_book_backend_notify_opened(),
which is deprecated and about to be removed.
addressbook/libedata-book/e-book-backend.c
addressbook/libedata-book/e-data-book.c
addressbook/libedata-book/e-data-book.h
docs/reference/addressbook/libedata-book/libedata-book-sections.txt