aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/ebook/test-client.c32
1 files changed, 31 insertions, 1 deletions
diff --git a/addressbook/backend/ebook/test-client.c b/addressbook/backend/ebook/test-client.c
index 074709aef7..dce7e7fc87 100644
--- a/addressbook/backend/ebook/test-client.c
+++ b/addressbook/backend/ebook/test-client.c
@@ -5,6 +5,30 @@
#include <e-book.h>
+#define TEST_VCARD \
+"BEGIN:VCARD
+" \
+"FN:Nat
+" \
+"N:Friedman;Nat;D;Mr.
+" \
+"BDAY:1977-08-06
+" \
+"TEL;WORK:617 679 1984
+" \
+"TEL;CELL:123 456 7890
+" \
+"EMAIL;INTERNET:nat@nat.org
+" \
+"EMAIL;INTERNET:nat@helixcode.com
+" \
+"ADR;WORK;POSTAL:P.O. Box 101;;;Any Town;CA;91921-1234;
+" \
+"END:VCARD
+" \
+"
+"
+
CORBA_Environment ev;
CORBA_ORB orb;
@@ -24,7 +48,7 @@ init_bonobo (int argc, char **argv)
}
static void
-book_open_cb (EBook *book, EBookStatus status, gpointer closure)
+add_card_cb (EBook *book, EBookStatus status, gpointer closure)
{
char *vcard;
GTimer *timer;
@@ -40,6 +64,12 @@ book_open_cb (EBook *book, EBookStatus status, gpointer closure)
printf ("[%s]\n", vcard);
}
+static void
+book_open_cb (EBook *book, EBookStatus status, gpointer closure)
+{
+ e_book_add_vcard(book, TEST_VCARD, add_card_cb, NULL);
+}
+
static guint
ebook_create (void)
{
+1 * - Update to 0.8.4.20051102ahze2005-11-062-70/+49 * Bump PORTREVISION to chase the glib20 shared library update.marcus2005-11-051-1/+1 * - Allow build with matroska since libebml has been updated.ahze2005-11-021-1/+0 * - Fix ffmpeg codec [1] [2]ahze2005-10-312-1/+725 * - Fix CONFLICTS 0.8.4 -> 0.8.2ahze2005-10-281-1/+1 * - Update to 0.8.4.20051027ahze2005-10-282-7/+10 * Chase libid3tag update.jylefort2005-10-281-2/+2 * Sync with libdvdnav shared library version bump.nobutaka2005-10-081-1/+1 * Bump PORTREVISION to reflect update in multimedia/vcdimagermnag2005-09-171-1/+2 * - Disable mozilla plugin build, a few people are having problems with theahze2005-08-311-0/+1 * - Update to 0.8.2.20050813ahze2005-08-283-32/+21 * - Update to 0.8.2.20050723ahze2005-07-262-4/+3 * - Remove share/applications if emptyahze2005-07-151-1/+1 * - Fix lib depends to libtar..ahze2005-07-141-1/+1 * - Chase lib version to libcdioahze2005-07-131-1/+2 * - Depend on shared library of libtar now, don't bump PORTREVISIONahze2005-07-131-1/+1 * - Update to 0.8.2.20050712ahze2005-07-132-4/+19 * - Remove forgotten patchahze2005-07-071-12/+0 * - Update to 0.8.2.20050705ahze2005-07-072-4/+3 * - Chase libversion bump of libdvbpsiahze2005-07-071-1/+2 * - Update to 0.8.2.20050626ahze2005-06-272-3/+7 * - Add USE_PERL5_BUILDahze2005-06-232-0/+13 * - Update to 0.8.2.20050622 (aka 0.8.2 test3)ahze2005-06-232-5/+7 * - Fix install when WITHOUT_NLS is defined.ahze2005-06-171-0/+2 * Directory share/pixmaps is now included in mtreelesi2005-06-151-1/+0 * - Disable mozilla plugin (I will update mozilla sdk stuff with next release).ahze2005-06-141-0/+1 * - Fix build for sap users.ahze2005-06-081-0/+10 * - Update to 0.8.2.20050607 (aka 0.8.2.test2)ahze2005-06-082-3/+3 * - Attempt to fix build on amd64 by using only wxgtk 2.4ahze2005-06-041-0/+4 * - Depend on shared library of matroska instead of static library sinceahze2005-05-291-1/+1 * Grammar nit.adamw2005-05-271-1/+1 * - Add some locale directories to plist that are not in mtree.ahze2005-05-221-0/+4 * - Update disinfo, tarball was rerolledahze2005-05-201-2/+2 * - Update to 0.8.2.20050517 since the 0.8.2.20050516 tarball was rerolled.ahze2005-05-185-211/+5 * - Update to 0.8.2.20050516ahze2005-05-173-11/+219 * - Consolidate lots of stuff.ahze2005-05-161-110/+23 * - Fix WxGTK Gui when wxgtk24 and wxgtk26 are both installedahze2005-05-151-0/+2 * - Fix my stupid typo.ahze2005-05-151-1/+1 * - Add vlc-devel after repo-copy [1] at version 0.8.2-test1ahze2005-05-1513-272/+404 * - s/WITHOUT_WXWINDOWS/WITHOUT_WXGTK/ahze2005-05-131-12/+26 * Finish repo copy of wxgtk 2.4.2 ports to wxgtk24*fjoe2005-05-131-2/+2 * - Add mozilla plugin to broken list, it builds but does not work.ahze2005-05-121-3/+4 * - Remove need for audio/speex-devel, since audio/speex as of version 1.0.5ahze2005-05-112-15/+25 * - Chase shared lib bump in x264ahze2005-04-212-10/+108 * Update libcdio to 0.73.arved2005-04-201-2/+2 * Fix typo in a comment.brueffer2005-04-161-1/+1 * - Define WITHOUT_LIVEMEDIA if WITH_MOZILLA=mozilla-devel and OSVERSION is > 5...ahze2005-03-181-0/+1 * new version of libFLACnaddy2005-03-161-2/+2 * Bump PORTREVISION to chase the glib20 shared lib version change.marcus2005-03-121-1/+1 * Chase libcdio shlib version,arved2005-02-151-2/+2 * - Chase API changes to x264ahze2005-01-262-1/+17 * Disable H.264 encoder support unless WITH_H264 is definedahze2005-01-221-3/+7 * Disable lame support unless WITH_LAME is defined since lame can not be packaged.ahze2005-01-221-2/+6 * Use GCC 3.4 if built with WITH_MOZILLA_PLUGIN=mozilla-devel on 4.xahze2005-01-221-0/+6 * - Fix typoahze2005-01-201-2/+2 * Bump portrevision to chase shlib dump of libtheora and new location.kwm2005-01-141-3/+3 * Add support for H.264 via multimedia/x264 and WITHOUT_H264 knob.ahze2005-01-121-0/+10 * Add a new knob, WITHOUT_TRANSCODEahze2004-12-301-0/+10 * libcdio: Update to 0.71arved2004-12-091-3/+3 * - Use new ffmpeg 0.4.9.p1 from ports and remove ffmpeg snapshotahze2004-12-072-112/+14 * Fix spelling in pre-everythingahze2004-11-281-1/+1 * - Fix fatal typos [1]ahze2004-11-273-22/+44 * Disable toolame support, it needs a newer vesion to buildahze2004-11-261-0/+4 * Fix problem with a52 audio by statically linkingahze2004-11-171-1/+6 * Add missing files in FILESDIRahze2004-11-172-0/+65 * - Update to 0.8.1ahze2004-11-176-239/+508 * Add an auto-generated plist to fix any plist problemsahze2004-11-162-401/+45 * Change email to new FreeBSD.org addressahze2004-10-301-1/+1 * -Use gcc 3.4 (update from 3.3).mezz2004-10-152-14/+42 * [MAINTAINER] multimedia/vlc: update pkg-descr and COMMENTedwin2004-10-142-13/+6 * welcome new maintaineredwin2004-10-141-1/+1 * - drop maintinershipdinoex2004-10-141-2/+2 * - fix build problem if an older vlc is still installed.dinoex2004-10-121-3/+12 * Increase USE_GCC to 3.4 for those ports which compile with it.kris2004-09-301-1/+1 * - new options: WITHOUT_NLS, WITH_WXWINDOWS, WITHOUT_WXWINDOWSdinoex2004-09-222-19/+34 * - unbreak for am64dinoex2004-09-011-1/+9 * - modify OSVERSION for thread problemdinoex2004-08-201-1/+1 * Chase libraries for new audio/speex version.krion2004-07-251-1/+1 * Chase libraries for new audio/speex version.krion2004-07-231-1/+2 * - fix build with net/liveMedia (patch partly obtained from vlc cvs)dinoex2004-07-231-0/+73 * - fix pkg-list for option WITH_LIBMATROSKAdinoex2004-07-161-1/+4 * Update XviD to version 1.0.1, chase shared library bump through dependencies,lofi2004-06-121-3/+3 * - fix typo in option WITHOUT_GGIdinoex2004-06-111-1/+1 * - Update to 0.7.2dinoex2004-05-263-14/+177 * Chase the glib20 update, and bump all affected ports' PORTREVISIONs.marcus2004-04-051-0/+1 * - Use USE_ICONV knobkrion2004-03-311-1/+1 * - make PKGNAMESUFFIX more flexibledinoex2004-03-271-7/+3 * - make PKGNAMESUFFIX more flexibledinoex2004-03-271-3/+4 * - update to 0.7.1dinoex2004-03-214-218/+34 * Chase library bump of libSDL-1.1 for all ports which were dependingedwin2004-03-161-1/+1 * - mark BROKEN on alpha 4.xdinoex2004-03-151-0/+7 * - Fix problmes when -lpthread does exist.dinoex2004-03-131-2/+3 * - use libmaddinoex2004-03-044-25/+402 * - add SIZEdinoex2004-02-261-0/+1 * - Fix plist for alphadinoex2004-02-201-3/+3 * - fix package on sparc64dinoex2004-02-111-1/+1 * - Fix package on amd64 archdinoex2004-02-072-7/+13 * Add USE_GETTEXT and bump PORTREVISION.marcus2004-02-041-1/+2 * - change USE_SDLdinoex2004-01-271-1/+1 * Now gettext 0.12.1 is gettext-old.trevor2004-01-241-1/+1 * - Update to 0.7.0dinoex2004-01-084-20/+26 * - Fix MASTER_SITESdinoex2004-01-042-4/+22 * - take maintainershipdinoex2004-01-031-1/+1 * Catch up with libogg/libvorbis version bump.naddy2003-12-211-3/+2 * Chase the libmad/libid3tag shared lib version.marcus2003-12-071-1/+2 * Update to 0.6.2.fjoe2003-11-062-0/+0 * - update to 0.6.2fjoe2003-11-068-48/+55 * Chase wxgtk library name (and version) change.fjoe2003-11-051-1/+1 * Reset maintainer of ports owned by inactive committers who were just retired.kris2003-11-031-1/+1 * unbreak package at bento(i386/RELENG_4):sf2003-09-143-20/+38 * Bump the PORTREVISION for the ports directly affected by the gettext upgrade.marcus2003-08-271-0/+1 * Chase the libintl.so shared lib version.marcus2003-08-251-1/+1