Matthew Barnes [Tue, 29 Jan 2013 23:41:09 +0000 (18:41 -0500)]
Deprecate e_client_open_sync().
Use e_book_client_connect_sync() or e_cal_client_connect_sync() instead.
Also deprecate the asynchronous functions:
e_client_open()
e_client_open_finish()
Matthew Barnes [Tue, 4 Sep 2012 01:35:38 +0000 (21:35 -0400)]
Add e_cal_client_connect_sync().
Replaces e_cal_client_new() and e_client_open_sync().
e_cal_client_new() is deprecated for covertly making synchronous D-Bus
calls with no way to cancel. e_client_open_sync() is just a cumbersome
extra step now that clients are not involved in authentication.
This also adds asynchronous versions:
e_cal_client_connect()
e_cal_client_connect_finish()
Matthew Barnes [Mon, 3 Sep 2012 15:44:32 +0000 (11:44 -0400)]
Add e_book_client_connect_sync().
Replaces e_book_client_new() and e_client_open_sync().
e_book_client_new() is deprecated for covertly making synchronous D-Bus
calls with no way to cancel. e_client_open_sync() is just a cumbersome
extra step now that clients are not involved in authentication.
This also adds asynchronous versions:
e_book_client_connect()
e_book_client_connect_finish()
Daniel Mustieles [Wed, 30 Jan 2013 13:58:36 +0000 (14:58 +0100)]
Updated Spanish translation
Chao-Hsiung Liao [Wed, 30 Jan 2013 03:41:22 +0000 (11:41 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Matthew Barnes [Tue, 29 Jan 2013 02:31:18 +0000 (21:31 -0500)]
Remove unused private EClient functions.
Matthew Barnes [Sun, 27 Jan 2013 14:29:41 +0000 (09:29 -0500)]
Replace EGdbusCal with EDBusCalendar.
Matthew Barnes [Fri, 25 Jan 2013 01:04:14 +0000 (20:04 -0500)]
Replace EGdbusBook with EDBusAddressBook.
Matthew Barnes [Sat, 26 Jan 2013 21:42:08 +0000 (16:42 -0500)]
Generate D-Bus calendar interfaces with gdbus-codegen.
Matthew Barnes [Thu, 24 Jan 2013 20:58:00 +0000 (15:58 -0500)]
Generate D-Bus address book interfaces with gdbus-codegen.
Matthew Barnes [Sat, 26 Jan 2013 15:51:26 +0000 (10:51 -0500)]
EClient: Remove internal property cache.
GDBusProxy already caches property values, so no need for this.
Matthew Barnes [Tue, 29 Jan 2013 22:06:28 +0000 (17:06 -0500)]
Deprecate EClient::opened signal.
No longer emitted.
Matthew Barnes [Tue, 29 Jan 2013 20:56:57 +0000 (15:56 -0500)]
Deprecate e_data_cal_report_opened().
This function no longer does anything.
Matthew Barnes [Tue, 29 Jan 2013 21:24:49 +0000 (16:24 -0500)]
Deprecate e_cal_backend_respond_opened().
Use e_data_cal_respond_open() instead.
Matthew Barnes [Tue, 29 Jan 2013 20:50:53 +0000 (15:50 -0500)]
Deprecate e_cal_backend_notify_opened().
Use e_data_cal_respond_open() instead.
Matthew Barnes [Tue, 29 Jan 2013 20:46:42 +0000 (15:46 -0500)]
Deprecate e_data_book_report_opened().
This function no longer does anything.
Matthew Barnes [Tue, 29 Jan 2013 21:21:04 +0000 (16:21 -0500)]
Deprecate e_book_backend_respond_opened().
Use e_data_book_respond_open() instead.
Matthew Barnes [Tue, 29 Jan 2013 20:39:30 +0000 (15:39 -0500)]
Deprecate e_book_backend_notify_opened().
Use e_data_book_respond_open() instead.
Kjartan Maraas [Tue, 29 Jan 2013 18:32:45 +0000 (19:32 +0100)]
Updated Norwegian bokmål translation
Matthew Barnes [Tue, 29 Jan 2013 14:36:33 +0000 (09:36 -0500)]
EDataCal: Make GDBusMethodInvocation optional in operations.
Allows us to fake client requests, since ECalBackend's API is still too
intertwined with EDataCal to call directly.
Matthew Barnes [Tue, 29 Jan 2013 14:31:30 +0000 (09:31 -0500)]
EDataBook: Make GDBusMethodInvocation optional in operations.
Allows us to fake client requests, since EBookBackend's API is still too
intertwined with EDataBook to call directly.
Matthew Barnes [Tue, 29 Jan 2013 13:57:45 +0000 (08:57 -0500)]
EDataCal: Remove unused "handle-cancel-all" signal handler.
ECalClient never invokes this method directly. Operations are
explicitly cancelled when ECalClient invokes the close() method.
Matthew Barnes [Tue, 29 Jan 2013 13:55:16 +0000 (08:55 -0500)]
EDataBook: Remove unused "handle-cancel-all" signal handler.
EBookClient never invokes this method directly. Operations are
explicitly cancelled when EBookClient invokes the close() method.
Matthew Barnes [Tue, 29 Jan 2013 13:53:36 +0000 (08:53 -0500)]
EDataCal: Remove unused "handle-cancel-operation" signal handler.
ECalClient never invokes this method, nor does it make sense to.
Matthew Barnes [Tue, 29 Jan 2013 13:51:50 +0000 (08:51 -0500)]
EDataBook: Remove unused "handle-cancel-operation" signal handler.
EBookClient never invokes this method, nor does it make sense to.
Matthew Barnes [Tue, 29 Jan 2013 13:45:35 +0000 (08:45 -0500)]
EDataCal: Cancel operations when the sender disappears.
Make the GCancellables passed to backends actually do something useful.
Matthew Barnes [Tue, 29 Jan 2013 13:39:08 +0000 (08:39 -0500)]
EDataBook: Cancel operations when the sender disappears.
Make the GCancellables passed to backends actually do something useful.
Tristan Van Berkom [Tue, 29 Jan 2013 11:48:44 +0000 (20:48 +0900)]
test-client-custom-summary.c: Conditionally test phone numbers
Avoid testing phone numbers if ENABLE_PHONENUMBER is not defined
(i.e. if there is no phone number support, it won't work).
Tristan Van Berkom [Thu, 24 Jan 2013 05:57:03 +0000 (14:57 +0900)]
EBookBackendFile: Avoid lost data in contact modifications
When modifying contacts, ensure that the contact revisions are in
sync with the existing ones, otherwise report the E_DATA_BOOK_STATUS_OUT_OF_SYNC
error. This indicates that the client should refresh it's local copy
of the contact before trying to modify it again.
Conflicts:
addressbook/backends/file/e-book-backend-file.c
Tristan Van Berkom [Thu, 25 Oct 2012 07:51:32 +0000 (16:51 +0900)]
Adding test case proving there is a write-write race condition to fix
The test case creates a number of threads all trying to modify the
same contact in the same book each concurrently with a different field,
if the modification fails it retries. If all the fields (one for each
thread) are not properly set at the end of all thread execution, then
the test is a failure.
Tristan Van Berkom [Thu, 24 Jan 2013 07:07:27 +0000 (16:07 +0900)]
Adding ESourceRevisionGuards
The ESourceRevisionGuards extension configures whether an ESource backend
should check revisions on object modifications and produce an
E_CLIENT_ERROR_OUT_OF_SYNC error upon revision conflicts.
Tristan Van Berkom [Thu, 24 Jan 2013 05:56:10 +0000 (14:56 +0900)]
EClient: Adding E_CLIENT_ERROR_OUT_OF_SYNC
An error to descibe out of sync data between the client and backend.
Matthew Barnes [Mon, 28 Jan 2013 20:50:34 +0000 (15:50 -0500)]
Clean up the mess that is CalObjModType.
Deprecate both CalObjModType and EDataCalObjModType.
Introduce ECalObjModType with equivalent but properly namespaced enum
values, generate a GType for this enum, and swap out CalObjModType for
ECalObjModType throughout the calendar API.
Trying not to break the API here, but this is a freakin mess.
Matthew Barnes [Mon, 28 Jan 2013 20:32:56 +0000 (15:32 -0500)]
Deprecate EDataCalObjType.
No longer needed with the new D-Bus factory APIs.
Matthew Barnes [Mon, 28 Jan 2013 20:26:12 +0000 (15:26 -0500)]
Deprecate CalMode and cal_mode_to_corba().
Matthew Barnes [Mon, 28 Jan 2013 20:29:59 +0000 (15:29 -0500)]
e-cal-types.h cleanups.
Matthew Barnes [Mon, 28 Jan 2013 20:23:44 +0000 (15:23 -0500)]
e-cal-util.h cleanups.
Matej Urbančič [Mon, 28 Jan 2013 20:45:30 +0000 (21:45 +0100)]
Updated Slovenian translation
Milan Crha [Mon, 28 Jan 2013 18:09:46 +0000 (19:09 +0100)]
Bug #651399 - [maildir] Escape dots in folder display names
Matthew Barnes [Mon, 28 Jan 2013 17:16:35 +0000 (12:16 -0500)]
GOA: Support the upcoming "imap_smtp" provider type.
Matthew Barnes [Mon, 28 Jan 2013 17:05:21 +0000 (12:05 -0500)]
gnome_online_accounts_get_backend_name() cleanups.
Matthew Barnes [Mon, 28 Jan 2013 16:37:22 +0000 (11:37 -0500)]
Make ECollectionBackend and ECollectionBackendFactory instantiable.
ECollectionBackendFactory will use a backend name of "none" and will
instantiate an ECollectionBackend, which takes no action on its own.
Believe it or not, there's actually a use case for this.
GOA will soon add a provider for generic IMAP/SMTP accounts. Our GOA
module will support these accounts by configuring a collection source
with a backend name of "none" as well as mail account, mail identity,
and mail transport sources.
The mechanics of ESourceRegistryServer do require a collection backend
to support a collection source but the backend will have nothing to do.
Daniel Mustieles [Mon, 28 Jan 2013 10:44:27 +0000 (11:44 +0100)]
Updated Spanish translation
Colin Walters [Sun, 27 Jan 2013 17:28:26 +0000 (12:28 -0500)]
tests: Fix srcdir != builddir
https://bugzilla.gnome.org/show_bug.cgi?id=692639
Matthew Barnes [Sun, 27 Jan 2013 14:38:49 +0000 (09:38 -0500)]
ECalClient: Add a "source-type" construct-only property.
Matthew Barnes [Sun, 27 Jan 2013 12:47:34 +0000 (07:47 -0500)]
Restore test case for bug 685986.
Matthew Barnes [Sat, 26 Jan 2013 21:02:19 +0000 (16:02 -0500)]
EClient: Remove unused 'uri' member.
Matthew Barnes [Sat, 26 Jan 2013 19:08:57 +0000 (14:08 -0500)]
EClient: Minor cleanups.
Matthew Barnes [Sat, 26 Jan 2013 15:17:54 +0000 (10:17 -0500)]
Deprecate e_cal_backend_sync_set_backend_property().
No longer used.
Matthew Barnes [Sat, 26 Jan 2013 14:47:31 +0000 (09:47 -0500)]
Deprecate e_cal_backend_set_backend_property().
No longer used.
Matthew Barnes [Sat, 26 Jan 2013 14:44:39 +0000 (09:44 -0500)]
Deprecate e_data_cal_respond_set_backend_property().
No longer used.
Matthew Barnes [Sat, 26 Jan 2013 14:42:25 +0000 (09:42 -0500)]
EDataCal: Remove OP_SET_BACKEND_PROPERTY.
No longer used.
Matthew Barnes [Sat, 26 Jan 2013 14:41:29 +0000 (09:41 -0500)]
EDataCal: Remove "handle-set-backend-property" signal handler.
No longer used.
Matthew Barnes [Sat, 26 Jan 2013 14:19:30 +0000 (09:19 -0500)]
Deprecate e_book_backend_sync_set_backend_property().
No longer used.
Matthew Barnes [Sat, 26 Jan 2013 14:06:12 +0000 (09:06 -0500)]
Deprecate e_book_backend_set_backend_property().
No longer used.
Matthew Barnes [Sat, 26 Jan 2013 14:02:52 +0000 (09:02 -0500)]
Deprecate e_data_book_respond_set_backend_property().
No longer used.
Matthew Barnes [Sat, 26 Jan 2013 13:59:16 +0000 (08:59 -0500)]
EDataBook: Remove OP_SET_BACKEND_PROPERTY.
No longer used.
Matthew Barnes [Sat, 26 Jan 2013 13:57:45 +0000 (08:57 -0500)]
EDataBook: Remove "handle-set-backend-property" signal handler.
No longer used.
Matthew Barnes [Sat, 26 Jan 2013 13:56:21 +0000 (08:56 -0500)]
EClient: Deprecate e_client_set_backend_property_sync().
Clients cannot set backend properties. Any attempt will fail with an
E_CLIENT_ERROR_NOT_SUPPORTED error.
Also deprecate the asynchronous variant:
e_client_set_backend_property()
e_client_set_backend_property_finish()
Matthew Barnes [Sat, 26 Jan 2013 13:42:01 +0000 (08:42 -0500)]
ECalClient: Handle set_backend_property() requests directly.
Neither ECalBackend itself nor any known ECalBackend subclass allows
clients to set backend properties, so forego the D-Bus message and fail
immediately on the client side with an E_CLIENT_ERROR_NOT_SUPPORTED.
Matthew Barnes [Sat, 26 Jan 2013 13:34:23 +0000 (08:34 -0500)]
EBookClient: Handle set_backend_property() requests directly.
Neither EBookBackend itself nor any known EBookBackend subclass allows
clients to set backend properties, so forego the D-Bus message and fail
immediately on the client side with an E_CLIENT_ERROR_NOT_SUPPORTED.
Matthew Barnes [Sat, 26 Jan 2013 13:30:10 +0000 (08:30 -0500)]
EClient: Add default implementations for async virtual methods.
Subclasses will need only implement the synchronous virtual methods.
Мирослав Николић [Sat, 26 Jan 2013 09:18:14 +0000 (10:18 +0100)]
Updated Serbian translation
Matthew Barnes [Fri, 25 Jan 2013 21:12:51 +0000 (16:12 -0500)]
Deprecate e_cal_backend_is_opening().
This always returns FALSE now.
Matthew Barnes [Fri, 25 Jan 2013 21:08:51 +0000 (16:08 -0500)]
Deprecate e_book_backend_is_opening().
This always returns FALSE now.
Matthew Barnes [Fri, 25 Jan 2013 20:04:32 +0000 (15:04 -0500)]
Deprecate e_client_is_opened().
This always returns TRUE now.
Matthew Barnes [Fri, 25 Jan 2013 19:47:47 +0000 (14:47 -0500)]
Deprecate CLIENT_BACKEND_PROPERTY_OPENING.
Clients don't need to care if they're fully opened anymore.
Matthew Barnes [Fri, 25 Jan 2013 19:35:49 +0000 (14:35 -0500)]
Deprecate CLIENT_BACKEND_PROPERTY_OPENED.
Clients don't need to care if they're fully opened anymore.
Matthew Barnes [Fri, 25 Jan 2013 17:57:10 +0000 (12:57 -0500)]
ECalBackend: Add a "writable" boolean property.
Matthew Barnes [Fri, 25 Jan 2013 17:41:04 +0000 (12:41 -0500)]
EBookBackend: Remove redundant "online" flag.
Matthew Barnes [Fri, 25 Jan 2013 17:37:43 +0000 (12:37 -0500)]
EBookBackend: Add a "writable" boolean property.
Matthew Barnes [Fri, 25 Jan 2013 16:59:07 +0000 (11:59 -0500)]
EDataCal: Give OperationData a GDBusMethodInvocation.
Not used just yet, but will be.
Matthew Barnes [Fri, 25 Jan 2013 16:55:23 +0000 (11:55 -0500)]
EDataBook: Give OperationData a GDBusMethodInvocation.
Not used just yet, but will be.
Matthew Barnes [Fri, 25 Jan 2013 16:46:56 +0000 (11:46 -0500)]
EDataCal: operation_thread() cleanups.
Matthew Barnes [Fri, 25 Jan 2013 16:37:04 +0000 (11:37 -0500)]
EDataBook: operation_thread() cleanups.
Milan Crha [Fri, 25 Jan 2013 16:21:31 +0000 (17:21 +0100)]
EGdbusTemplates: Address crash on operation cancel
In situations when a synchronous operation was cancelled, but the response
was already piled in main context the client could receive two replies, one
from the reply, the other from the cancelled operation, effectively accessing
invalid memory in the second response. This may address also other similar
situations caused by cancelled operations.
Matthew Barnes [Fri, 25 Jan 2013 15:52:04 +0000 (10:52 -0500)]
EDataCal: Have pending_ops hold OperationData references.
Matthew Barnes [Fri, 25 Jan 2013 15:45:23 +0000 (10:45 -0500)]
EDataBook: Have pending_ops hold OperationData references.
Matthew Barnes [Fri, 25 Jan 2013 15:32:18 +0000 (10:32 -0500)]
EDataCal: Give OperationData a reference count.
Matthew Barnes [Fri, 25 Jan 2013 14:45:19 +0000 (09:45 -0500)]
EDataBook: Give OperationData a reference count.
Matthew Barnes [Fri, 25 Jan 2013 14:25:07 +0000 (09:25 -0500)]
EDataCal: Rename signal handlers.
Matthew Barnes [Fri, 25 Jan 2013 14:14:39 +0000 (09:14 -0500)]
EDataBook: Rename signal handlers.
Milan Crha [Fri, 25 Jan 2013 14:03:11 +0000 (15:03 +0100)]
Avoid crash in e_book_backend_file_load_revision()
There could happen a crash in e_book_backend_file_load_revision()
due to NULL 'error' when an application did a quick open/close
operations, in which case a backend was reused, with already set
priv::revision, and the call failed on a runtime constraint, but
didn't set the 'error', which led to the crash.
Matthew Barnes [Fri, 25 Jan 2013 13:55:37 +0000 (08:55 -0500)]
EDataCal: Add argument guards where needed.
Matthew Barnes [Fri, 25 Jan 2013 13:48:11 +0000 (08:48 -0500)]
EDataBook: Add argument guards where needed.
Daniel Mustieles [Fri, 25 Jan 2013 11:53:42 +0000 (12:53 +0100)]
Updated Spanish translation
Nilamdyuti Goswami [Fri, 25 Jan 2013 09:32:32 +0000 (15:02 +0530)]
Assamese translation updated
Matthew Barnes [Thu, 24 Jan 2013 18:16:46 +0000 (13:16 -0500)]
Replace EGdbusCalFactory with EDBusCalendarFactory.
Matthew Barnes [Thu, 24 Jan 2013 18:06:24 +0000 (13:06 -0500)]
Replace EGdbusBookFactory with EDBusAddressBookFactory.
Matthew Barnes [Thu, 24 Jan 2013 18:05:37 +0000 (13:05 -0500)]
Generate D-Bus factory interfaces with gdbus-codegen.
Matthew Barnes [Wed, 28 Nov 2012 15:29:20 +0000 (10:29 -0500)]
Bump D-Bus service names for new factory APIs.
Piotr Drąg [Thu, 24 Jan 2013 17:45:37 +0000 (18:45 +0100)]
Updated POTFILES.in
Matthew Barnes [Thu, 24 Jan 2013 16:49:31 +0000 (11:49 -0500)]
E_CLIENT_ERROR_BUSY is no longer used.
Matthew Barnes [Wed, 23 Jan 2013 17:09:10 +0000 (12:09 -0500)]
EDataCal: Queue operations while opening.
When an open operation is in progress, queue any subsequent operations
and dispatch them after the current open operation is complete.
The old behavior returned a BUSY error and forced the client to retry.
Clients are not involved in authentication anymore, so they should not
have to retry operations nor worry about whether the backend is opened.
This should really be handled directly by ECalBackend, but because of
the weird async semantics between ECalBackend and EDataCal, the queue
needs to live in EDataCal for now.
Matthew Barnes [Wed, 23 Jan 2013 15:01:50 +0000 (10:01 -0500)]
EDataBook: Queue operations while opening.
When an open operation is in progress, queue any subsequent operations
and dispatch them after the current open operation is complete.
The old behavior returned a BUSY error and forced the client to retry.
Clients are not involved in authentication anymore, so they should not
have to retry operations nor worry about whether the backend is opened.
This should really be handled directly by EBookBackend, but because of
the weird async semantics between EBookBackend and EDataBook, the queue
needs to live in EDataBook for now.
Matthew Barnes [Wed, 23 Jan 2013 17:14:35 +0000 (12:14 -0500)]
EDataBook/EDataCal: Minor cleanups.
Matthew Barnes [Tue, 22 Jan 2013 19:43:05 +0000 (14:43 -0500)]
EBookBackend: Initialize "cache-dir" from constructed().
Also tweak ECalBackend's constructed() method to match.
Daniel Mustieles [Thu, 24 Jan 2013 15:40:07 +0000 (16:40 +0100)]
Updated Spanish translation
Mathias Hasselmann [Thu, 24 Jan 2013 12:29:27 +0000 (13:29 +0100)]
Revert accidential commit from
a761eade
Mathias Hasselmann [Thu, 24 Jan 2013 11:01:14 +0000 (12:01 +0100)]
libebook: Avoid accidental implicit const-cast
Introduced by accident with
663c169e