aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-01-26 04:41:43 +0800
committerChris Toshok <toshok@src.gnome.org>2001-01-26 04:41:43 +0800
commitced6e943276c9bdddde6d14f3b113b342351490e (patch)
tree43d90c42c7dcc1b728d804c55ee72697dd0b890e /addressbook/backend
parentcc505b2c6790296cca752a3b7b1931f48390440f (diff)
downloadgsoc2013-evolution-ced6e943276c9bdddde6d14f3b113b342351490e.tar.gz
gsoc2013-evolution-ced6e943276c9bdddde6d14f3b113b342351490e.tar.zst
gsoc2013-evolution-ced6e943276c9bdddde6d14f3b113b342351490e.zip
add comment about the else block here. (prop_info): add home_address,
2001-01-25 Chris Toshok <toshok@ximian.com> * backend/pas/pas-backend-ldap.c (build_mods_from_ecards): add comment about the else block here. (prop_info): add home_address, business_address, business_fax, assistant, and isdn. svn path=/trunk/; revision=7821
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/pas/pas-backend-ldap.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c
index 585715986b..dfab744327 100644
--- a/addressbook/backend/pas/pas-backend-ldap.c
+++ b/addressbook/backend/pas/pas-backend-ldap.c
@@ -132,38 +132,40 @@ struct prop_info {
} prop_info[] = {
#define LIST_PROP(fid,q,a,ctor,ber,cmp) {fid, q, a, PROP_TYPE_LIST, ctor, ber, cmp}
-#define STRING_PROP(fid,q,a) {fid, q, a, PROP_TYPE_STRING, NULL}
+#define STRING_PROP(fid,q,a) {fid, q, a, PROP_TYPE_STRING}
/* E_CARD_SIMPLE_FIELD_FILE_AS, */
STRING_PROP (E_CARD_SIMPLE_FIELD_FULL_NAME, "full_name", "cn" ),
STRING_PROP (E_CARD_SIMPLE_FIELD_FAMILY_NAME, "family_name", "sn" ),
LIST_PROP (E_CARD_SIMPLE_FIELD_EMAIL, "email", "mail", email_populate_func, email_ber_func, email_compare_func),
+/* don't need E_CARD_SIMPLE_FIELD_EMAIL_2, */
+/* don't need E_CARD_SIMPLE_FIELD_EMAIL_3, */
+
STRING_PROP (E_CARD_SIMPLE_FIELD_PHONE_PRIMARY, "phone", "telephoneNumber"),
/* E_CARD_SIMPLE_FIELD_PHONE_BUSINESS, */
STRING_PROP (E_CARD_SIMPLE_FIELD_PHONE_HOME, "home_phone", "homePhone"),
STRING_PROP (E_CARD_SIMPLE_FIELD_ORG, "org", "o"),
-/* XXX STRUCT_PROP (E_CARD_SIMPLE_FIELD_ADDRESS_BUSINESS, "business_address", "postalAddress", ....), */
-/* XXX STRUCT_PROP (E_CARD_SIMPLE_FIELD_ADDRESS_HOME, "home_address", "homePostalAddress", ....), */
+ STRING_PROP (E_CARD_SIMPLE_FIELD_ADDRESS_BUSINESS, "business_address", "postalAddress"),
+ STRING_PROP (E_CARD_SIMPLE_FIELD_ADDRESS_HOME, "home_address", "homePostalAddress"),
STRING_PROP (E_CARD_SIMPLE_FIELD_PHONE_MOBILE, "mobile", "mobile"),
/* E_CARD_SIMPLE_FIELD_PHONE_CAR, */
-/* E_CARD_SIMPLE_FIELD_PHONE_BUSINESS_FAX, */
+ STRING_PROP (E_CARD_SIMPLE_FIELD_PHONE_BUSINESS_FAX, "business_fax", "facsimileTelephoneNumber"),
/* E_CARD_SIMPLE_FIELD_PHONE_HOME_FAX, */
/* E_CARD_SIMPLE_FIELD_PHONE_BUSINESS_2, */
/* E_CARD_SIMPLE_FIELD_PHONE_HOME_2, */
-/* E_CARD_SIMPLE_FIELD_PHONE_ISDN, */
+ STRING_PROP (E_CARD_SIMPLE_FIELD_PHONE_ISDN, "isdn", "internationalISDNNumber"),
/* E_CARD_SIMPLE_FIELD_PHONE_OTHER, */
STRING_PROP (E_CARD_SIMPLE_FIELD_PHONE_PAGER, "pager", "pager"),
/* E_CARD_SIMPLE_FIELD_ADDRESS_OTHER, */
-/* E_CARD_SIMPLE_FIELD_EMAIL_2, */
-/* E_CARD_SIMPLE_FIELD_EMAIL_3, */
STRING_PROP (E_CARD_SIMPLE_FIELD_URL, "uri", "labeledURI"),
STRING_PROP (E_CARD_SIMPLE_FIELD_ORG_UNIT, "org_unit", "ou"),
STRING_PROP (E_CARD_SIMPLE_FIELD_OFFICE, "office", "roomNumber"),
STRING_PROP (E_CARD_SIMPLE_FIELD_TITLE, "title", "title"),
/* E_CARD_SIMPLE_FIELD_ROLE, */
STRING_PROP (E_CARD_SIMPLE_FIELD_MANAGER, "manager", "manager"),
-/* E_CARD_SIMPLE_FIELD_ASSISTANT, */
-/* E_CARD_SIMPLE_FIELD_NICKNAME, */
+ STRING_PROP (E_CARD_SIMPLE_FIELD_ASSISTANT, "assistant", "secretary"),
+ /* map nickname to displayName */
+ STRING_PROP (E_CARD_SIMPLE_FIELD_NICKNAME, "nickname", "displayName"),
/* E_CARD_SIMPLE_FIELD_SPOUSE, */
/* E_CARD_SIMPLE_FIELD_NOTE, */
/* E_CARD_SIMPLE_FIELD_FBURL, */
@@ -481,7 +483,7 @@ build_mods_from_ecards (ECardSimple *current, ECardSimple *new, gboolean *new_dn
mod->mod_values[0] = new_prop;
mod->mod_values[1] = NULL;
}
- else {
+ else { /* PROP_TYPE_LIST */
mod->mod_op |= LDAP_MOD_BVALUES;
mod->mod_bvalues = prop_info[i].ber_func (new);
}
tors/Makefile?id=f8a009672e8b82c8349453e5f1edd65f29b17e17'>Remove expired port emulators/linux_base-src-rh-8garga2006-02-151-1/+0 * New port: dynamipsfjoe2006-02-02dcbabd4a0fcb60d22e6'>Change PKGDIR from pkg/ to . Also fix places where ${PKGDIR} isasami2000-10-081-1/+1 * Implement WANT_IMLIB and USE_IMLIB.reg2000-10-051-10/+12 * Now bsd.ruby.mk is automatically included by bsd.port.mk when USE_RUBYknu2000-09-261-3/+1 * Update with bsd.ruby.mk.knu2000-09-072-145/+148 * Make all these Ruby related ports belong also in the newly-addedknu2000-08-161-1/+1 * Do The Right Thing. (R)knu2000-08-132-8/+9 * Set DIST_SUBDIR=ruby for all these Ruby ports to stop distfileknu2000-08-092-2/+3 * - Change MASTER_SITES.knu2000-04-252-13/+7 * Update with the new PORTNAME/PORTVERSION variablescpiazza2000-04-101-2/+2 * Update port to 0.23jedgar2000-02-233-4/+114 * Update to version 0.22.steve1999-11-143-4/+5 * Use updated imlib library.nakai1999-10-081-1/+1 * $Id$ -> $FreeBSD$peter1999-08-311-1/+1 * Caps, no period.hoek1999-08-301-1/+1 * Update to version 0.21cpiazza1999-08-293-4/+21