platform/upstream/evolution-data-server.git
10 years agoupdate to openismus-work-3-8 branch accepted/tizen/ivi/genivi accepted/tizen_generic tizen_3.0.m14.2_ivi tizen_ivi_genivi accepted/tizen/20130723.183154 accepted/tizen/ivi/genivi/20140131.030328 ivi_oct_m2 submit/tizen/20130723.184546 submit/tizen_ivi/20140618.000000 submit/tizen_ivi/20140618.000001 submit/tizen_ivi/20140618.000002 submit/tizen_ivi/20140618.000003 submit/tizen_ivi/20140618.000004 submit/tizen_ivi/20140619.000000 submit/tizen_ivi/20140622.000000 submit/tizen_ivi/20140623.000000 submit/tizen_ivi/20140624.064036 submit/tizen_ivi/20140626.125712 submit/tizen_ivi/20140626.130032 submit/tizen_ivi/20140626.144348 submit/tizen_ivi_genivi/20140131.025059 tizen_3.0.m14.2_ivi_release
Patrick Ohly [Tue, 9 Jul 2013 12:22:11 +0000 (14:22 +0200)]
update to openismus-work-3-8 branch

This introduces the cursor API for reading a subset of sorted search
results in chunks. The version gets bumped to match the one from the
master branch with a similar feature set.

10 years agominimal build
Patrick Ohly [Fri, 28 Jun 2013 12:18:49 +0000 (14:18 +0200)]
minimal build

This build removes all optional dependencies and leaves only the local
file backend. Everything can still be enabled via defines.

10 years agochanges: Bump to 3.8.2
Philippe Coval [Fri, 24 May 2013 10:37:31 +0000 (12:37 +0200)]
changes: Bump to 3.8.2

10 years agoBump to 3.8.2
Philippe Coval [Mon, 13 May 2013 10:40:17 +0000 (12:40 +0200)]
Bump to 3.8.2

10 years agochanges: Bump to 3.8.1
Philippe Coval [Thu, 25 Apr 2013 13:34:27 +0000 (15:34 +0200)]
changes: Bump to 3.8.1

10 years agoBump to 3.8.1
Philippe Coval [Mon, 15 Apr 2013 14:52:51 +0000 (16:52 +0200)]
Bump to 3.8.1

10 years agochanges: Bump to 3.8.0
Philippe Coval [Tue, 2 Apr 2013 09:32:59 +0000 (11:32 +0200)]
changes: Bump to 3.8.0

10 years agospec: cleanup rpmlint=0E0W
Philippe Coval [Tue, 2 Apr 2013 09:30:30 +0000 (11:30 +0200)]
spec: cleanup rpmlint=0E0W

10 years agoBump to 3.8.0
Philippe Coval [Wed, 27 Mar 2013 13:18:32 +0000 (14:18 +0100)]
Bump to 3.8.0

10 years agochanges: Bump to 3.7.92
Philippe Coval [Mon, 25 Mar 2013 12:39:43 +0000 (13:39 +0100)]
changes: Bump to 3.7.92

10 years agoBump to 3.7.92
Philippe Coval [Fri, 22 Mar 2013 17:16:19 +0000 (18:16 +0100)]
Bump to 3.7.92

10 years agochanges: Bump to 3.7.91
Philippe Coval [Thu, 14 Mar 2013 09:45:40 +0000 (10:45 +0100)]
changes: Bump to 3.7.91

10 years agoBump to 3.7.91
Philippe Coval [Mon, 11 Mar 2013 12:08:10 +0000 (13:08 +0100)]
Bump to 3.7.91

10 years agochanges: Bump to 3.7.90
Corentin Lecouvey [Wed, 27 Feb 2013 15:42:34 +0000 (16:42 +0100)]
changes: Bump to 3.7.90

10 years agospec: add libebook-contacts package
Corentin Lecouvey [Mon, 25 Feb 2013 13:03:37 +0000 (14:03 +0100)]
spec: add libebook-contacts package

10 years agoBump to 3.7.90
Philippe Coval [Mon, 25 Feb 2013 11:19:02 +0000 (12:19 +0100)]
Bump to 3.7.90

10 years agochanges: migrate to devel while it breaks folks
Philippe Coval [Wed, 13 Feb 2013 10:28:39 +0000 (11:28 +0100)]
changes: migrate to devel while it breaks folks

10 years agochanges: migrate to devel while it breaks folks
Philippe Coval [Wed, 13 Feb 2013 10:28:13 +0000 (11:28 +0100)]
changes: migrate to devel while it breaks folks

10 years agoChanges : Bump to 3.7.5
Jean-Benoit MARTIN [Tue, 12 Feb 2013 17:21:11 +0000 (18:21 +0100)]
Changes : Bump to 3.7.5

10 years agoRemove configure macro in build part, change group and license
Jean-Benoit MARTIN [Tue, 12 Feb 2013 15:53:25 +0000 (16:53 +0100)]
Remove configure macro in build part, change group and license

10 years agodisable ubuntu
Philippe Coval [Tue, 12 Feb 2013 14:25:44 +0000 (15:25 +0100)]
disable ubuntu

10 years agoBump to 3.7.5
Philippe Coval [Fri, 8 Feb 2013 16:52:36 +0000 (17:52 +0100)]
Bump to 3.7.5

10 years agochanges: Initial packaging on 3.7.4 (using previous ones)
Philippe Coval [Tue, 5 Feb 2013 15:10:57 +0000 (16:10 +0100)]
changes: Initial packaging on 3.7.4 (using previous ones)

10 years agoRemove libraries not builded
Jean-Benoit MARTIN [Tue, 5 Feb 2013 14:42:42 +0000 (15:42 +0100)]
Remove libraries not builded

10 years agoInitial packaging on 3.7.4 (using previous ones)
Philippe Coval [Tue, 5 Feb 2013 12:49:25 +0000 (13:49 +0100)]
Initial packaging on 3.7.4 (using previous ones)

10 years agoEBookBackendSqliteDB: Fix order by statement for cursor movement. upstream/openismus-work-3-8 upstream/3.9.90
Tristan Van Berkom [Tue, 18 Jun 2013 07:49:44 +0000 (16:49 +0900)]
EBookBackendSqliteDB: Fix order by statement for cursor movement.

The order by statement must also order the contact UID, since the
UID is used as a tiebreaker between contacts which might be otherwise
identical, the search results must also be ordered by UID.

10 years agoFixed C++ compiler flags to work with various GCC versions
Tristan Van Berkom [Tue, 18 Jun 2013 07:29:25 +0000 (16:29 +0900)]
Fixed C++ compiler flags to work with various GCC versions

Older versions of GCC don't recognize -Wnoexcept

10 years agoBumping our branch version to 3.9.90
Tristan Van Berkom [Tue, 18 Jun 2013 07:15:36 +0000 (16:15 +0900)]
Bumping our branch version to 3.9.90

10 years agoAdding email field to default addressbook configuration.
Tristan Van Berkom [Tue, 18 Jun 2013 06:39:49 +0000 (15:39 +0900)]
Adding email field to default addressbook configuration.

10 years agoFixed cursor tests to use the new _move_by() API.
Tristan Van Berkom [Mon, 17 Jun 2013 06:42:34 +0000 (15:42 +0900)]
Fixed cursor tests to use the new _move_by() API.

10 years agoEBookBackendSqliteDB: Fixed a nasty bug causing descending order to not work properly...
Tristan Van Berkom [Mon, 17 Jun 2013 06:41:53 +0000 (15:41 +0900)]
EBookBackendSqliteDB: Fixed a nasty bug causing descending order to not work properly in some cases.

10 years agoEBookBackendSqliteDB: Changed cursor move_by() API
Tristan Van Berkom [Mon, 17 Jun 2013 06:40:28 +0000 (15:40 +0900)]
EBookBackendSqliteDB: Changed cursor move_by() API

e_book_backend_sqlitedb_cursor_move_by() now takes a 'GSList **results'
argument to report results and returns a boolean success status.

This allows one to pass NULL for the results and ignore the results.

10 years agoAdded tests to ensure descending order works properly with the Cursor API.
Tristan Van Berkom [Fri, 14 Jun 2013 12:23:47 +0000 (21:23 +0900)]
Added tests to ensure descending order works properly with the Cursor API.

10 years agoUpdated gtk-doc build for new API changes in EBookBackendSqliteDB cursor APIs.
Tristan Van Berkom [Tue, 11 Jun 2013 10:08:27 +0000 (19:08 +0900)]
Updated gtk-doc build for new API changes in EBookBackendSqliteDB cursor APIs.

10 years agoEBookBackendSqliteDB Cursor tests updated.
Tristan Van Berkom [Tue, 11 Jun 2013 10:05:18 +0000 (19:05 +0900)]
EBookBackendSqliteDB Cursor tests updated.

Updated cursor tests for the new _move_by() API and removal
of the _set_target_contact() API.

10 years agoEBookBackendSqliteDB: Cursor API change.
Tristan Van Berkom [Tue, 11 Jun 2013 10:01:24 +0000 (19:01 +0900)]
EBookBackendSqliteDB: Cursor API change.

Removed e_book_backend_sqlite_cursor_set_target_contact() and added
an enumeration parameter to e_book_backend_sqlitedb_cursor_move_by()

Moving the cursor now has 3 possible "origins":

  o EBSDB_CURSOR_ORIGIN_CURRENT: Fetch results and move from the current
                                 cursor position

  o EBSDB_CURSOR_ORIGIN_PREVIOUS: Fetch results and move from the previous
                                  cursor position, practical for refreshing
                                  a result set after the addressbook changes

  o EBSDB_CURSOR_ORIGIN_RESET: Fetch results from the beginning (or end,
                               if moving backwards through results).

To achieve the EBSDB_CURSOR_ORIGIN_PREVIOUS origin, the cursor now
holds on to two cursor states at all times (the current cursor state
and previous cursor state).

10 years agoEBookBackendSqliteDB: Add new APIs to the gtk-doc build (mainly cursor related APIs)
Tristan Van Berkom [Sun, 9 Jun 2013 10:34:33 +0000 (19:34 +0900)]
EBookBackendSqliteDB: Add new APIs to the gtk-doc build (mainly cursor related APIs)

10 years agoFixed test cases to use the new API for setting alphabetic index targets.
Tristan Van Berkom [Sun, 9 Jun 2013 09:13:43 +0000 (18:13 +0900)]
Fixed test cases to use the new API for setting alphabetic index targets.

Use e_book_backend_sqlitedb_cursor_set_target_alphabetic_index() instead
of e_book_backend_sqlitedb_cursor_set_target() (which is now removed).

10 years agoEBookBackendSqliteDB: Added new API to set cursor target.
Tristan Van Berkom [Sun, 9 Jun 2013 09:11:36 +0000 (18:11 +0900)]
EBookBackendSqliteDB: Added new API to set cursor target.

Removed e_book_backend_sqlitedb_cursor_set_target() and
e_book_backend_sqlitedb_cursor_set_targetv() as they were not
really useful, added new API:
   e_book_backend_sqlitedb_cursor_set_target_alphabetic_index()

To set the cursor target by alphabetic index, also added
e_book_backend_sqlitedb_ref_collator() to get a hold of the active
collator which can be used to list the active alphabet attributes.

10 years agoe-collator-test: Add special case tests for Chinese sorting.
Tristan Van Berkom [Sat, 8 Jun 2013 12:06:30 +0000 (21:06 +0900)]
e-collator-test: Add special case tests for Chinese sorting.

Check that chinese words are sorted in the same buckets as
Latin charachter names in an A-Z alphabetic index.

10 years agoECollator: Use transliterator for Chinese locales.
Tristan Van Berkom [Sat, 8 Jun 2013 11:35:56 +0000 (20:35 +0900)]
ECollator: Use transliterator for Chinese locales.

10 years agoAdded ETransliteratorPrivate C++ Glue
Tristan Van Berkom [Sat, 8 Jun 2013 11:13:23 +0000 (20:13 +0900)]
Added ETransliteratorPrivate C++ Glue

Added this glue to call icu::Transliterator C++ APIs on behalf
of ECollator.

10 years agoFixed existing cursor tests for POSIX locale to work with Alphabetic Indexing
Tristan Van Berkom [Sat, 8 Jun 2013 08:52:53 +0000 (17:52 +0900)]
Fixed existing cursor tests for POSIX locale to work with Alphabetic Indexing

Now that sort keys are prefixed with the alphabetic index, POSIX sorting has
changed to adhere to the alphabetic index.

10 years agoAdded e-collator-test.c
Tristan Van Berkom [Fri, 7 Jun 2013 13:46:08 +0000 (22:46 +0900)]
Added e-collator-test.c

A test case testing basic ECollator features.

10 years agoAdded ECollator to the libedataserver gtk-doc build.
Tristan Van Berkom [Sun, 9 Jun 2013 10:25:51 +0000 (19:25 +0900)]
Added ECollator to the libedataserver gtk-doc build.

10 years agoECollator: Use the private EAlphabetIndex
Tristan Van Berkom [Fri, 7 Jun 2013 13:44:08 +0000 (22:44 +0900)]
ECollator: Use the private EAlphabetIndex

ECollator now exports 3 new APIs:

  o e_collator_get_index_labels()

    List the alphabet for the given locale

  o e_collator_get_index()

    Determine what position in the alphabet a given word belongs

  o e_collator_generate_key_for_index()

    Generate a sort key for an index (to sort between letters).

Also the ECollator now uses the alphabet index to generate sort
key prefixes, e_collator_collate() simplified to simply compare
two sort keys, this ensures the output is always the same without
duplicating the alphabet index logic in the collate function.

10 years agoAdded EAlphabetIndex
Tristan Van Berkom [Fri, 7 Jun 2013 13:42:25 +0000 (22:42 +0900)]
Added EAlphabetIndex

A private accessory used internally by ECollator to implement AlphabeticIndex
features. This is in a separate file since we need to use C++ APIs to use
the AlphabeticIndex, so we compile it into a separate archive to be statically
linked in with libedataserver.la.

10 years agoBug 701838 - Work around a semantic API break in GObject
Tristan Van Berkom [Sat, 8 Jun 2013 14:12:14 +0000 (10:12 -0400)]
Bug 701838 - Work around a semantic API break in GObject

Recent versions of GObject fire critical messages if properties are
installed outside of class initializers (causing all of EDS tests to
fail).  This patch adds some class data and initializes the class in
the dynamic subclass initializer.

Note that the class data which should normally be freed in the class
finalizer is not freed, since it is a static type the finalizer will
never run (and GLib also takes the liberty of firing critical messages
for specifying a class finalizer).

11 years agoFix e-source-enumtypes.h generation.
Tristan Van Berkom [Mon, 3 Jun 2013 10:02:52 +0000 (19:02 +0900)]
Fix e-source-enumtypes.h generation.

Cannot feed more than one file to EDS's enum generation rule, or
else it results in imbalanced G_BEGIN/END_DECLS declarations.

11 years agoAdding D-Bus localed xml description to EXTRA_DIST to pass distcheck
Tristan Van Berkom [Tue, 28 May 2013 09:23:42 +0000 (18:23 +0900)]
Adding D-Bus localed xml description to EXTRA_DIST to pass distcheck

11 years agoCustomize the default system addressbook
Tristan Van Berkom [Tue, 28 May 2013 08:36:27 +0000 (17:36 +0900)]
Customize the default system addressbook

This patch modifies data/sources/system-address-book.source.in
so that it has a customized summary optimized for person names
and phone numbers.

This customization adds the following fields to the summary
with prefix indexes (for optimized SQLite queries):

 E_CONTACT_FULL_NAME, E_CONTACT_FAMILY_NAME, E_CONTACT_NICKNAME,
 E_CONTACT_GIVEN_NAME, E_CONTACT_TEL

Additionally, the E_CONTACT_TEL field is configured to store the
normalized phone number data in SQLite in order to optimize the
phone number queries such as E_BOOK_QUERY_EQUALS_PHONE_NUMBER.

The code to achieve the same configuration is as follows:

e_source_backend_summary_setup_set_summary_fields (
setup,
E_CONTACT_FULL_NAME,
E_CONTACT_FAMILY_NAME,
E_CONTACT_NICKNAME,
E_CONTACT_GIVEN_NAME,
E_CONTACT_TEL,
0);
e_source_backend_summary_setup_set_indexed_fields (
setup,
E_CONTACT_FULL_NAME, E_BOOK_INDEX_PREFIX,
E_CONTACT_FAMILY_NAME, E_BOOK_INDEX_PREFIX,
E_CONTACT_NICKNAME, E_BOOK_INDEX_PREFIX,
E_CONTACT_GIVEN_NAME, E_BOOK_INDEX_PREFIX,
E_CONTACT_TEL, E_BOOK_INDEX_PREFIX,
E_CONTACT_TEL, E_BOOK_INDEX_PHONE,
0);

11 years agoAdded test-sqlite-cursor-change-locale.c
Tristan Van Berkom [Mon, 27 May 2013 11:20:33 +0000 (20:20 +0900)]
Added test-sqlite-cursor-change-locale.c

This new test changes the locale dynamically and then checks new
sort order of the converted addressbook between every locale
change.

11 years agolibedata-book tests: Changed all cursor tests to use new testing APIs
Tristan Van Berkom [Mon, 27 May 2013 03:04:16 +0000 (12:04 +0900)]
libedata-book tests: Changed all cursor tests to use new testing APIs

Mostly changed to include the locale in the move-by tests and to stop
setting the 'EDS_COLLATE' variable to hack the current locale used by
the backend.

11 years agotests/libedata-book: Added a testing API to set the locale dynamically
Tristan Van Berkom [Fri, 17 May 2013 09:31:50 +0000 (18:31 +0900)]
tests/libedata-book: Added a testing API to set the locale dynamically

Also, the 'move-by' testing API now has a locale argument.

11 years agoEBookClient: Added "locale" property.
Tristan Van Berkom [Thu, 23 May 2013 10:56:04 +0000 (19:56 +0900)]
EBookClient: Added "locale" property.

Propagate the 'locale' property change notifications when the dbus
proxy notifies a locale property change, also load the initial value
of the dbus proxy's locale property for the initial value.

11 years agoEBookBackendFile: Implement EBookBackend->set_locale() & ->get_locale()
Tristan Van Berkom [Thu, 23 May 2013 07:26:26 +0000 (16:26 +0900)]
EBookBackendFile: Implement EBookBackend->set_locale() & ->get_locale()

11 years agoEBookBackendSqliteDB: Added e_book_backend_sqlitedb_get/set_locale()
Tristan Van Berkom [Thu, 23 May 2013 07:15:34 +0000 (16:15 +0900)]
EBookBackendSqliteDB: Added e_book_backend_sqlitedb_get/set_locale()

Locale setting is now only ever guessed when creating a new addressbook
before e_book_backend_sqlitedb_set_locale() is called, setting the locale
will save the localization setting and it will be reused on subsequent
accesses. If and when a locale setting is changed, the contact sort
keys are regenerated with a new ECollator for the new locale.

11 years agoEDataBook: Watch the system bus for locale notifications
Tristan Van Berkom [Thu, 23 May 2013 06:24:09 +0000 (15:24 +0900)]
EDataBook: Watch the system bus for locale notifications

When org.freedesktop.locale1 is available, listen to changes in
the LC_COLLATE locale and configure backends with locale changes
using e_book_backend_set_locale(), notify property changes via
the locale property on the addressbook D-Bus API.

Also, load the backend's initially set locale as the locale property
value until the org.freedesktop.locale1 D-Bus interface notifies
us of a locale change on the system bus.

11 years agoEBookBackend added new ->set_locale() API and ->get_locale() API
Tristan Van Berkom [Fri, 17 May 2013 11:03:45 +0000 (20:03 +0900)]
EBookBackend added new ->set_locale() API and ->get_locale() API

Use these to dynamically set the locale of a running addressbook, and also
to fetch the currently configured locale of an addressbook at startup time

11 years agoorg.gnome.evolution.AddressBook.xml: Added Locale property.
Tristan Van Berkom [Thu, 23 May 2013 10:54:58 +0000 (19:54 +0900)]
org.gnome.evolution.AddressBook.xml: Added Locale property.

11 years agoAdded org.freedesktop.locale1 interface to private/ to generate a DBus proxy
Tristan Van Berkom [Mon, 20 May 2013 07:08:35 +0000 (16:08 +0900)]
Added org.freedesktop.locale1 interface to private/ to generate a DBus proxy

11 years agoMigrated sqlite cursor test cases to not specify any specific collation rule.
Tristan Van Berkom [Fri, 17 May 2013 12:17:44 +0000 (21:17 +0900)]
Migrated sqlite cursor test cases to not specify any specific collation rule.

11 years agoPorted data migration tests to use the new ICU sorted data.
Tristan Van Berkom [Tue, 7 May 2013 13:00:32 +0000 (22:00 +0900)]
Ported data migration tests to use the new ICU sorted data.

Added migration tests also for fr_CA and de_DE locale, the
de_DE locale expects a @collation=phonebook type of sort order
but only the test-sqlite-cursor-posix-initial test which creates
the shared addressbook defines it, so we also test that the
collation rule is properly stored and introspected in the
SQLite tables.

11 years agoPorted test-sqlite-cursor-set-sexp to use the new ICU sorted data.
Tristan Van Berkom [Tue, 7 May 2013 12:12:29 +0000 (21:12 +0900)]
Ported test-sqlite-cursor-set-sexp to use the new ICU sorted data.

11 years agoPorted test-sqlite-cursor-calculate test to use the new ICU test data.
Tristan Van Berkom [Tue, 7 May 2013 11:23:07 +0000 (20:23 +0900)]
Ported test-sqlite-cursor-calculate test to use the new ICU test data.

11 years agoPorted test-sqlite-cursor-set-target.c to work with new ICU test data.
Tristan Van Berkom [Tue, 7 May 2013 10:48:21 +0000 (19:48 +0900)]
Ported test-sqlite-cursor-set-target.c to work with new ICU test data.

No point in doing one for every locale, we test a bunch of locales already
with the move-by test.

11 years agoFixed test-sqlite-cursor-move-by for new ICU localization
Tristan Van Berkom [Thu, 2 May 2013 13:01:39 +0000 (22:01 +0900)]
Fixed test-sqlite-cursor-move-by for new ICU localization

Added new sortable vcards and changed the whole sortable data set.

Now there are 4 move-by tests: posix, en_US, fr_CA and de_DE. All
tests try the default and phonebook collation rules, the de_DE test
data sorts differently under phonebook sort.

A table was added to data-test-utils.h for reference, showing
the expected order of sorted contacts in given locales.

11 years agoEBookBackendSqliteDB: Pull out the code which keeps separate collators per summarized...
Tristan Van Berkom [Fri, 17 May 2013 11:58:05 +0000 (20:58 +0900)]
EBookBackendSqliteDB: Pull out the code which keeps separate collators per summarized field.

For now let's keep a single ECollator, it seems that we don't want to configure
collation rules but rather have a single collator API which maintains a
knowledge base of what tailoring to choose in which locale.

11 years agoEBookBackendSqliteDB: Use ECollator
Tristan Van Berkom [Thu, 2 May 2013 13:00:28 +0000 (22:00 +0900)]
EBookBackendSqliteDB: Use ECollator

Now check the ESourceBackendSummarySetup extension for custom collations,
use a default ECollator for the current locale for every contact field
unless a custom collation is specified, if a custom collation is specified
for a given field then use a special ECollator to sort that field.

11 years agoRevert "ESourceBackendSummarySetup: Added apis to set collation rules on addressbooks."
Tristan Van Berkom [Fri, 17 May 2013 11:17:04 +0000 (20:17 +0900)]
Revert "ESourceBackendSummarySetup: Added apis to set collation rules on addressbooks."

This reverts commit 6a30b3f5164b782e6d0c1194930fd854fdb43a3d.

Reverting this for now but keeping the history, apparently we do not
want a configurable collation rule for addressbook fields, but rather
an ECollator which chooses the most popular default.

11 years agoESourceBackendSummarySetup: Added apis to set collation rules on addressbooks.
Tristan Van Berkom [Fri, 3 May 2013 09:59:36 +0000 (18:59 +0900)]
ESourceBackendSummarySetup: Added apis to set collation rules on addressbooks.

11 years agoECollator: Remove the "collation_type" option.
Tristan Van Berkom [Fri, 17 May 2013 11:15:53 +0000 (20:15 +0900)]
ECollator: Remove the "collation_type" option.

Instead ECollator will try to make a best guess at what
type of collation is desired for a given language

11 years agoAdded utility ECollator to libedataserver.
Tristan Van Berkom [Tue, 30 Apr 2013 07:09:35 +0000 (16:09 +0900)]
Added utility ECollator to libedataserver.

The ECollator API wraps up the required ICU APIs into something more
convenient for usage in EDS.

11 years agoAdded detection of ICU libs to configure.ac
Tristan Van Berkom [Fri, 26 Apr 2013 12:29:31 +0000 (21:29 +0900)]
Added detection of ICU libs to configure.ac

11 years agoECalClient tests: Use async apis to open the client for every async test.
Tristan Van Berkom [Wed, 24 Apr 2013 08:48:42 +0000 (17:48 +0900)]
ECalClient tests: Use async apis to open the client for every async test.

11 years agoEBookClient tests: Use async apis to open the client for every async test.
Tristan Van Berkom [Wed, 24 Apr 2013 08:18:06 +0000 (17:18 +0900)]
EBookClient tests: Use async apis to open the client for every async test.

11 years agotest-utils: Added argumement to the fixture closure data to open async
Tristan Van Berkom [Wed, 24 Apr 2013 07:56:02 +0000 (16:56 +0900)]
test-utils: Added argumement to the fixture closure data to open async

If a closure specifies async then the EBookClient or ECalClient will be
opened using async APIs instead of sync APIs.

11 years agoAdded e_book_client_connect_direct() and e_book_client_connect_direct_finish()
Tristan Van Berkom [Mon, 27 May 2013 11:59:30 +0000 (20:59 +0900)]
Added e_book_client_connect_direct() and e_book_client_connect_direct_finish()

11 years agotest-client-custom-summary.c: Added tests for regex queries
Tristan Van Berkom [Fri, 10 May 2013 08:23:16 +0000 (17:23 +0900)]
test-client-custom-summary.c: Added tests for regex queries

11 years agotest-client-custom-summary.c: Optimize test.
Tristan Van Berkom [Tue, 23 Apr 2013 10:30:51 +0000 (19:30 +0900)]
test-client-custom-summary.c: Optimize test.

Reuse the same two addressbooks for every test, so that only the
first 2 tests populate the addressbooks with contacts and the remaining
tests only create a client and execute a query.

Also add all test contacts with a single batch command and dont fetch
the test contacts, also removed the #if 0'd case which is the only
case which required the local contact copies.

11 years agotest-server-utils: Allow reuse of existing addressbook.
Tristan Van Berkom [Fri, 19 Apr 2013 10:48:08 +0000 (19:48 +0900)]
test-server-utils: Allow reuse of existing addressbook.

If committing the new scratch source ends with an error that
the addressbook/calendar already exists, then just use the existing
source instead of bailing out.

This is needed for tests which reuse the addressbook from a previous test.

Conflicts:

tests/test-server-utils/e-test-server-utils.c

11 years agoEBookBackendSqliteDB: Support regex queries
Tristan Van Berkom [Tue, 23 Apr 2013 08:36:47 +0000 (17:36 +0900)]
EBookBackendSqliteDB: Support regex queries

E_BOOK_QUERY_REGEX_NORMAL is supported in summary queries if the
query field is summarized, E_BOOK_QUERY_REGEX_RAW and normalized
but non-summarized queries are delegated to EBookBackendSexp for
matching.

11 years agoEBookBackendSexp: Support regex query types.
Tristan Van Berkom [Tue, 23 Apr 2013 08:35:54 +0000 (17:35 +0900)]
EBookBackendSexp: Support regex query types.

11 years agoEBookQuery: Added regex query API.
Tristan Van Berkom [Tue, 23 Apr 2013 08:34:54 +0000 (17:34 +0900)]
EBookQuery: Added regex query API.

Added E_BOOK_QUERY_REGEX_NORMAL and E_BOOK_QUERY_REGEX_RAW

11 years agoAdded tests to ensure that localized data is properly migrated.
Tristan Van Berkom [Fri, 19 Apr 2013 10:49:38 +0000 (19:49 +0900)]
Added tests to ensure that localized data is properly migrated.

The added tests must run in the order specified in the Makefile:
  o test-sqlite-cursor-posix-initial

    Creates an addressbook sorted in POSIX locale and asserts that
    contacts are sorted in basic POSIX locale

  o test-sqlite-cursor-en-US-migrated

    Loads the existing address book in en_US-UTF-8 locale and asserts
    that contacts are sorted in the en_US-UTF-8 locale

  o test-sqlite-cursor-posix-migrated

    Loads the existing address book in POSIX locale again and asserts
    that contacts are sorted in the POSIX locale

11 years agoAdded test case test-sqlite-cursor-set-sexp.c
Tristan Van Berkom [Wed, 17 Apr 2013 11:34:44 +0000 (20:34 +0900)]
Added test case test-sqlite-cursor-set-sexp.c

This test verifies that invalid queries are rejected, and that a cursor
position is changed by the new sexp with the correct new filtered values
after applying a filter (sexp) to the cursor.

11 years agoAdded test case test-sqlite-cursor-calculate.c
Tristan Van Berkom [Wed, 17 Apr 2013 10:37:04 +0000 (19:37 +0900)]
Added test case test-sqlite-cursor-calculate.c

This test verifies that e_book_backend_sqlitedb_cursor_calculate() report
the right position and total values when the cursor is moved, after the
target is set, after the addressbook is modified, for filtered and unfiltered
result sets.

11 years agoAdded test case test-sqlite-cursor-set-target.c
Tristan Van Berkom [Tue, 16 Apr 2013 11:32:35 +0000 (20:32 +0900)]
Added test case test-sqlite-cursor-set-target.c

This test case tests e_book_backend_sqlitedb_cursor_set_target().

The special case of setting a partial state is tested so that when
a cursor is setup to sort by "family_name, given_name" and the target
is set to "J", then we recieve results inclusive of the contact with
the family name "J".

11 years agoAdded test case test-sqlite-cursor-move-by
Tristan Van Berkom [Mon, 15 Apr 2013 11:46:01 +0000 (20:46 +0900)]
Added test case test-sqlite-cursor-move-by

This test case asserts that e_book_backend_sqlite_cursor_move_by()
works as expected. Consequently, a hand full of additional test
vcards were added for this.

11 years agoAdded test case test-sqlite-create-cursor
Tristan Van Berkom [Mon, 15 Apr 2013 11:53:29 +0000 (20:53 +0900)]
Added test case test-sqlite-create-cursor

The new test case verifies that cursor creation is well protected
(cursor creation is denied for some queries and ordering requests).

11 years agoAdded libedata-book test directory and added first test.
Tristan Van Berkom [Fri, 12 Apr 2013 06:37:27 +0000 (15:37 +0900)]
Added libedata-book test directory and added first test.

In this new directory we can add tests for libedata-book backend
components, currently there is a custom fixture which opens an
EBookBackendSqliteDB on the same addressbook that an EBookClient
opens, to test EBookBackendSqliteDB APIs directly on the addressbook.

Conflicts:

tests/Makefile.am

11 years agoEBookBackendSqliteDB: Adding cursor APIs
Tristan Van Berkom [Mon, 22 Apr 2013 11:42:14 +0000 (20:42 +0900)]
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.

11 years agotest-server-utils: Add e_test_server_utils_run_full()
Mathias Hasselmann [Tue, 5 Mar 2013 10:03:24 +0000 (11:03 +0100)]
test-server-utils: Add e_test_server_utils_run_full()

Basically this is to tell e_test_server_utils_run() to not
wipe the working directory before start.

Conflicts:

tests/test-server-utils/e-test-server-utils.h

11 years agolibedataserver: Fix some documentation typos.
Matthew Barnes [Fri, 24 May 2013 17:19:47 +0000 (13:19 -0400)]
libedataserver: Fix some documentation typos.

(cherry picked from commit 1e8be12632b44e9cae764c82cae8fc8c761f096b)

11 years agoBug 699909 — Do not use toggle_refs in CamelObjectBag
David Woodhouse [Fri, 10 May 2013 20:13:35 +0000 (21:13 +0100)]
Bug 699909 — Do not use toggle_refs in CamelObjectBag

They are broken and not thread-safe. Use GWeakRef instead to fix the
original problem that they were introduced to fix (bug 638810).
(cherry picked from commit 87b365d99c2d1f5d366d1432a6422db8fdc45d0b)

11 years agoImprove error handling in imapx_command_fetch_message_done().
Matthew Barnes [Tue, 21 May 2013 18:54:33 +0000 (14:54 -0400)]
Improve error handling in imapx_command_fetch_message_done().

Spotted a few execution paths where we claim success but have no
stream object for the fetched message.

(cherry picked from commit 8e239df91382e0950e75d2231de3bbd0e39e6e4b)

11 years agocamel_imapx_command_set_error_if_failed() minor cleanup.
Matthew Barnes [Tue, 21 May 2013 18:32:44 +0000 (14:32 -0400)]
camel_imapx_command_set_error_if_failed() minor cleanup.

(cherry picked from commit f6de223967143aae8732bf88a7643bcd49eae27a)

11 years agoMake CamelNNTPStore a bit more thread-safe.
Matthew Barnes [Tue, 21 May 2013 02:48:40 +0000 (22:48 -0400)]
Make CamelNNTPStore a bit more thread-safe.

* Make CamelNNTPStore's public members private.

* Guard the private CamelNNTPStore members with a mutex.

* Add thread-safe accessors:

    camel_nntp_store_ref_cache()
    camel_nntp_store_ref_stream()
    camel_nntp_store_ref_summary()
    camel_nntp_store_get_current_group()
    camel_nntp_store_dup_current_group()
    camel_nntp_store_set_current_group()
    camel_nntp_store_add_capabilities()
    camel_nntp_store_has_capabilities()
    camel_nntp_store_remove_capabilities()

(cherry picked from commit fbf1ac4ac492951a3d6877e73961004741a0591c)

11 years agoCamelNNTPStore: Remove unused "password_reprompt" flag.
Matthew Barnes [Tue, 21 May 2013 17:26:21 +0000 (13:26 -0400)]
CamelNNTPStore: Remove unused "password_reprompt" flag.

(cherry picked from commit 5d6f055cd0ce49c2406e689822e2c9ae6c44e554)

11 years agoCamelNNTPStore: Remove unused "posting_allowed" flag.
Matthew Barnes [Tue, 21 May 2013 17:25:48 +0000 (13:25 -0400)]
CamelNNTPStore: Remove unused "posting_allowed" flag.

(cherry picked from commit c9342840ead4c6b7cdb2d85f5573b6ea8d3492d3)