aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorChris Toshok <toshok@helixcode.com>2000-07-25 11:19:48 +0800
committerChris Toshok <toshok@src.gnome.org>2000-07-25 11:19:48 +0800
commitf2aca892ee6085ce48240a1ebd2897a56d1e8989 (patch)
tree688c10e090cf995146a379c7412979adf53fcb57 /addressbook/backend
parentd449524969e920d42143f778051c3b2c56c0bea0 (diff)
downloadgsoc2013-evolution-f2aca892ee6085ce48240a1ebd2897a56d1e8989.tar
gsoc2013-evolution-f2aca892ee6085ce48240a1ebd2897a56d1e8989.tar.gz
gsoc2013-evolution-f2aca892ee6085ce48240a1ebd2897a56d1e8989.tar.bz2
gsoc2013-evolution-f2aca892ee6085ce48240a1ebd2897a56d1e8989.tar.lz
gsoc2013-evolution-f2aca892ee6085ce48240a1ebd2897a56d1e8989.tar.xz
gsoc2013-evolution-f2aca892ee6085ce48240a1ebd2897a56d1e8989.tar.zst
gsoc2013-evolution-f2aca892ee6085ce48240a1ebd2897a56d1e8989.zip
add pilot_id.
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. svn path=/trunk/; revision=4307
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. */