diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-03-23 11:39:14 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-03-23 11:39:14 +0800 |
commit | a8b3463f5a424f5b90249a9da554525798d21aa3 (patch) | |
tree | 53f916205e5492080692ec408a43b68c50c7d3c3 /addressbook/backend/ebook/e-card.h | |
parent | 1b84e993c0c4791bde30ea19ce35989375d257ed (diff) | |
download | gsoc2013-evolution-a8b3463f5a424f5b90249a9da554525798d21aa3.tar gsoc2013-evolution-a8b3463f5a424f5b90249a9da554525798d21aa3.tar.gz gsoc2013-evolution-a8b3463f5a424f5b90249a9da554525798d21aa3.tar.bz2 gsoc2013-evolution-a8b3463f5a424f5b90249a9da554525798d21aa3.tar.lz gsoc2013-evolution-a8b3463f5a424f5b90249a9da554525798d21aa3.tar.xz gsoc2013-evolution-a8b3463f5a424f5b90249a9da554525798d21aa3.tar.zst gsoc2013-evolution-a8b3463f5a424f5b90249a9da554525798d21aa3.zip |
Added the addressbook/backend directory.
2000-03-22 Christopher James Lahey <clahey@helixcode.com>
* addressbook/Makefile.am, configure.in: Added the
addressbook/backend directory.
* addressbook/backend/Makefile.am: Removed the libversit directory
as it's now included in the base evolution directory.
* addressbook/backend/ebook/e-card-pairs.h,
addressbook/backend/ebook/Makefile.am: Changed the place where
libversit is looked for.
* addressbook/backend/ebook/e-book-listener.c: Fixed some
indentation.
* addressbook/backend/ebook/e-card-pairs.h,
addressbook/backend/ebook/e-card-types.h: Commented out some code
to get this to compile.
* addressbook/backend/ebook/e-card.c,
addressbook/backend/ebook/e-card.h: Turned this into a GTK+
object.
* addressbook/backend/pas/pas.c,
addressbook/backend/ebook/test-client.c: Include gnome.h and
gnorba.h.
* addressbook/backend/idl/addressbook.idl: Include Bonobo.idl
instead of bonobo-unknown.idl.
* addressbook/backend/pas/pas-backend-file.c,
addressbook/backend/pas/pas-book.c,
addressbook/contact-editor/test-editor.c,
addressbook/contact-editor/e-contact-editor.c,
addressbook/printing/e-contact-print.c,
addressbook/printing/test-contact-print-style-editor.c,
addressbook/printing/test-print.c: Killed some warnings.
svn path=/trunk/; revision=2150
Diffstat (limited to 'addressbook/backend/ebook/e-card.h')
-rw-r--r-- | addressbook/backend/ebook/e-card.h | 57 |
1 files changed, 41 insertions, 16 deletions
diff --git a/addressbook/backend/ebook/e-card.h b/addressbook/backend/ebook/e-card.h index 516cb85017..4b04f34c4d 100644 --- a/addressbook/backend/ebook/e-card.h +++ b/addressbook/backend/ebook/e-card.h @@ -1,5 +1,7 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Authors: + * Chris Lahey <clahey@helixcode.com> * Arturo Espinosa * Nat Friedman (nat@helixcode.com) * @@ -11,14 +13,22 @@ #define __E_CARD_H__ #include <time.h> -#include <glib.h> +#include <gtk/gtk.h> #include <stdio.h> #include <e-card-types.h> +#define E_TYPE_CARD (e_card_get_type ()) +#define E_CARD(obj) (GTK_CHECK_CAST ((obj), E_TYPE_CARD, ECard)) +#define E_CARD_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), E_TYPE_CARD, ECardClass)) +#define E_IS_CARD(obj) (GTK_CHECK_TYPE ((obj), E_TYPE_CARD)) +#define E_IS_CARD_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), E_TYPE_CARD)) + typedef struct _ECard ECard; +typedef struct _ECardClass ECardClass; struct _ECard { - + GtkObject object; +#if 0 char *fname; /* The full name. */ ECardName *name; /* The structured name. */ @@ -59,21 +69,36 @@ struct _ECard { ECardRev *rev; /* The time this card was last modified. */ - CardList xtension; + ECardList xtension; +#endif }; -Card *card_new (void); -void card_free (Card *crd); -void card_prop_free (CardProperty prop); -CardProperty card_prop_empty (void); -int card_check_prop (CardProperty prop); -GList *card_load (GList *crdlist, char *fname); -void card_save (Card *crd, FILE *fp); -char *card_to_vobj_string (Card *card); -char *card_to_string (Card *card); - -char *card_bday_str (CardBDay bday); -char *card_timezn_str (CardTimeZone timezn); -char *card_geopos_str (CardGeoPos geopos); +struct _ECardClass { + GtkObjectClass parent_class; +}; + + +ECard *e_card_new (char *vcard); +char *e_card_get_id (ECard *card); +char *e_card_get_vcard (ECard *card); + +/* Standard Gtk function */ +GtkType e_card_get_type (void); + + +#if 0 +void e_card_free (ECard *crd); +void e_card_prop_free (CardProperty prop); +CardProperty e_card_prop_empty (void); +int e_card_check_prop (CardProperty prop); +GList *e_card_load (GList *crdlist, char *fname); +void e_card_save (ECard *crd, FILE *fp); +char *e_card_to_vobj_string (ECard *card); +char *e_card_to_string (ECard *card); + +char *e_card_bday_str (ECardDate bday); +char *e_card_timezn_str (ECardTimeZone timezn); +char *e_card_geopos_str (ECardGeoPos geopos); +#endif #endif /* ! __E_CARD_H__ */ |