[evolution-couchdb] We don't support all fields right now, so just return the ones we support in e_book_backend_couchdb_
- From: Rodrigo Moya <rodrigo src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-couchdb] We don't support all fields right now, so just return the ones we support in e_book_backend_couchdb_
- Date: Wed, 24 Jun 2009 10:54:08 +0000 (UTC)
commit e7bc0c7256084af800872384c2384d291c0055b7
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Wed Jun 24 12:43:40 2009 +0200
We don't support all fields right now, so just return the ones we support in e_book_backend_couchdb_get_supported_fields
addressbook/e-book-backend-couchdb.c | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/addressbook/e-book-backend-couchdb.c b/addressbook/e-book-backend-couchdb.c
index 046e6e7..8f5ad6e 100644
--- a/addressbook/e-book-backend-couchdb.c
+++ b/addressbook/e-book-backend-couchdb.c
@@ -448,8 +448,22 @@ e_book_backend_couchdb_get_supported_fields (EBookBackend *backend,
gint i;
/* we support everything */
- for (i = 1; i < E_CONTACT_FIELD_LAST; ++i)
- fields = g_list_append (fields, g_strdup (e_contact_field_name (i)));
+ fields = g_list_append (fields, g_strdup (e_contact_field_name (E_CONTACT_UID)));
+ fields = g_list_append (fields, g_strdup (e_contact_field_name (E_CONTACT_GIVEN_NAME)));
+ fields = g_list_append (fields, g_strdup (e_contact_field_name (E_CONTACT_FAMILY_NAME)));
+ fields = g_list_append (fields, g_strdup (e_contact_field_name (E_CONTACT_FULL_NAME)));
+ fields = g_list_append (fields, g_strdup (e_contact_field_name (E_CONTACT_EMAIL)));
+ fields = g_list_append (fields, g_strdup (e_contact_field_name (E_CONTACT_EMAIL_1)));
+ fields = g_list_append (fields, g_strdup (e_contact_field_name (E_CONTACT_EMAIL_2)));
+ fields = g_list_append (fields, g_strdup (e_contact_field_name (E_CONTACT_EMAIL_3)));
+ fields = g_list_append (fields, g_strdup (e_contact_field_name (E_CONTACT_EMAIL_4)));
+ fields = g_list_append (fields, g_strdup (e_contact_field_name (E_CONTACT_PHONE_HOME)));
+ fields = g_list_append (fields, g_strdup (e_contact_field_name (E_CONTACT_PHONE_BUSINESS)));
+ fields = g_list_append (fields, g_strdup (e_contact_field_name (E_CONTACT_PHONE_OTHER)));
+ fields = g_list_append (fields, g_strdup (e_contact_field_name (E_CONTACT_ADDRESS_HOME)));
+ fields = g_list_append (fields, g_strdup (e_contact_field_name (E_CONTACT_ADDRESS_WORK)));
+ fields = g_list_append (fields, g_strdup (e_contact_field_name (E_CONTACT_ADDRESS_OTHER)));
+ fields = g_list_append (fields, g_strdup (e_contact_field_name (E_CONTACT_BIRTH_DATE)));
e_data_book_respond_get_supported_fields (book, opid,
GNOME_Evolution_Addressbook_Success, fields);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]