From deec95c6d5c7e7ac6e4fab24cfa1b05f4283be68 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Fri, 2 Mar 2001 10:27:27 +0000 Subject: implement properly, we support everything. 2001-03-02 Chris Toshok * backend/pas/pas-backend-file.c (pas_backend_file_process_get_supported_fields): implement properly, we support everything. svn path=/trunk/; revision=8514 --- addressbook/backend/pas/pas-backend-file.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'addressbook/backend') diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c index 970dbac105..04c442461a 100644 --- a/addressbook/backend/pas/pas-backend-file.c +++ b/addressbook/backend/pas/pas-backend-file.c @@ -1104,8 +1104,18 @@ pas_backend_file_process_get_supported_fields (PASBackend *backend, PASRequest *req) { EList *fields = e_list_new ((EListCopyFunc)g_strdup, (EListFreeFunc)g_free, NULL); + ECardSimple *card; + int i; + + /* we support everything, so instantiate an e-card, and loop + through all fields, adding their ecard_fields. */ + + card = e_card_simple_new (e_card_new ("")); + + for (i = 0; i < E_CARD_SIMPLE_FIELD_LAST; i ++) + e_list_append (fields, e_card_simple_get_ecard_field (card, i)); - printf ("in pas_backend_file_get_supported_fields\n"); + gtk_object_unref (GTK_OBJECT (card)); pas_book_respond_get_supported_fields (book, GNOME_Evolution_Addressbook_BookListener_Success, -- cgit v1.2.3