aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog9
-rw-r--r--addressbook/backend/ebook/e-card.c16
-rw-r--r--addressbook/backend/ebook/e-card.h2
3 files changed, 25 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 65abc05580..d7d2cf1a15 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,12 @@
+2000-07-24 Chris Toshok <toshok@helixcode.com>
+
+ * backend/ebook/e-card.h: add pilot_id.
+
+ * backend/ebook/e-card.c (e_card_get_vcard): add support for
+ X-EVOLUTION-PILOTD vcard field.
+ (e_card_class_init): add pilot_id arg.
+ (e_card_set_arg): handle pilot_id arg.
+
2000-07-23 Christopher James Lahey <clahey@helixcode.com>
* backend/ebook/e-book-view-listener.c: Remove the idle handler
diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c
index 637f3a0eb9..97574303ac 100644
--- a/addressbook/backend/ebook/e-card.c
+++ b/addressbook/backend/ebook/e-card.c
@@ -55,7 +55,8 @@ enum {
ARG_CATEGORIES,
ARG_CATEGORY_LIST,
ARG_ARBITRARY,
- ARG_ID
+ ARG_ID,
+ ARG_PILOTID
};
#if 0
@@ -444,7 +445,13 @@ char
if (card->id)
addPropValue (vobj, VCUniqueStringProp, card->id);
-
+
+ if (card->pilot_id) {
+ gchar *pilotid_str;
+ pilotid_str = g_strdup_printf ("%d", card->pilot_id);
+ addPropValue (vobj, "X-EVOLUTION-PILOTID", pilotid_str);
+ g_free (pilotid_str);
+ }
#if 0
@@ -971,6 +978,8 @@ e_card_class_init (ECardClass *klass)
GTK_TYPE_OBJECT, GTK_ARG_READWRITE, ARG_ARBITRARY);
gtk_object_add_arg_type ("ECard::id",
GTK_TYPE_STRING, GTK_ARG_READWRITE, ARG_ID);
+ gtk_object_add_arg_type ("ECard::pilot_id",
+ GTK_TYPE_INT, GTK_ARG_READWRITE, ARG_PILOTID);
object_class->destroy = e_card_destroy;
@@ -1404,6 +1413,9 @@ e_card_set_arg (GtkObject *object, GtkArg *arg, guint arg_id)
g_free(card->id);
card->id = g_strdup(GTK_VALUE_STRING(*arg));
break;
+ case ARG_PILOTID:
+ card->pilot_id = GTK_VALUE_INT(*arg);
+ break;
default:
return;
}
diff --git a/addressbook/backend/ebook/e-card.h b/addressbook/backend/ebook/e-card.h
index 2f71edaab4..89ee88388c 100644
--- a/addressbook/backend/ebook/e-card.h
+++ b/addressbook/backend/ebook/e-card.h
@@ -69,6 +69,8 @@ struct _ECard {
EList *arbitrary; /* Arbitrary fields. */
+ guint32 pilot_id; /* id of the corresponding pilot */
+
#if 0
ECardPhoto *logo; /* This person's org's logo. */