aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/ebook/e-card.c16
-rw-r--r--addressbook/backend/ebook/e-card.h2
2 files changed, 16 insertions, 2 deletions
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. */