EBookBackendSqliteDB: Adding cursor APIs
authorTristan Van Berkom <tristanvb@openismus.com>
Mon, 22 Apr 2013 11:42:14 +0000 (20:42 +0900)
committerTristan Van Berkom <tristanvb@openismus.com>
Mon, 27 May 2013 13:34:25 +0000 (22:34 +0900)
commit205239278936f316ce97df4223f4eb5aeaa3aca6
treeae435acd53f24c875cd4477eba382db696d82194
parent8dadeac668f388e2b061d42c4e0548e5732c2dcd
EBookBackendSqliteDB: Adding cursor APIs

Added the following APIs:

      o e_book_backend_sqlitedb_cursor_new()

        Creates a cursor for a given query expression and sort order

      o e_book_backend_sqlitedb_cursor_free()

        Frees a cursor and it's resources

      o e_book_backend_sqlitedb_cursor_move_by()

        Moves the cursor and fetches results

      o e_book_backend_sqlitedb_cursor_set_target()

        Sets the cursor state to a given position in the results

      o e_book_backend_sqlite_cursor_calculate()

        Calculates the position / total values of a cursor.

      o e_book_backend_sqlitedb_cursor_set_sexp()

        Sets the search expression for a given cursor

Also restored DB overwrite when country code changes.
addressbook/libebook-contacts/e-book-contacts-types.h
addressbook/libedata-book/e-book-backend-sqlitedb.c
addressbook/libedata-book/e-book-backend-sqlitedb.h