aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook/e-card.h
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-11-12 05:29:07 +0800
committerChris Lahey <clahey@src.gnome.org>2000-11-12 05:29:07 +0800
commit618515cd0beaed45af59994d84592b5d513bd979 (patch)
tree2f90bf2897128f9e704b5927bba8bd86bd3bc2ab /addressbook/backend/ebook/e-card.h
parentd99fd19df965c57878d55e7f5705ca5648604db0 (diff)
downloadgsoc2013-evolution-618515cd0beaed45af59994d84592b5d513bd979.tar
gsoc2013-evolution-618515cd0beaed45af59994d84592b5d513bd979.tar.gz
gsoc2013-evolution-618515cd0beaed45af59994d84592b5d513bd979.tar.bz2
gsoc2013-evolution-618515cd0beaed45af59994d84592b5d513bd979.tar.lz
gsoc2013-evolution-618515cd0beaed45af59994d84592b5d513bd979.tar.xz
gsoc2013-evolution-618515cd0beaed45af59994d84592b5d513bd979.tar.zst
gsoc2013-evolution-618515cd0beaed45af59994d84592b5d513bd979.zip
Link in composer bonobo code.
2000-11-11 Christopher James Lahey <clahey@helixcode.com> * backend/ebook/Makefile.am: Link in composer bonobo code. * backend/ebook/e-card.c, backend/ebook/e-card.h: Added code to send mail to an ECard or send an ECard as a VCard attachment. * contact-editor/e-contact-editor.c: Add verbs to send the contact as a VCard or send mail to the contact. * gui/search/e-addressbook-search-dialog.c: Removed some unused variables. * gui/widgets/e-addressbook-view.c, gui/widgets/e-minicard.c: Added menu items to send the contact as a VCard or send mail to the contact. svn path=/trunk/; revision=6543
Diffstat (limited to 'addressbook/backend/ebook/e-card.h')
-rw-r--r--addressbook/backend/ebook/e-card.h73
1 files changed, 44 insertions, 29 deletions
diff --git a/addressbook/backend/ebook/e-card.h b/addressbook/backend/ebook/e-card.h
index bad7b3068b..81473a28ed 100644
--- a/addressbook/backend/ebook/e-card.h
+++ b/addressbook/backend/ebook/e-card.h
@@ -107,42 +107,57 @@ struct _ECardClass {
};
-ECard *e_card_new ( char *vcard);
-char *e_card_get_id ( ECard *card);
-void e_card_set_id ( ECard *card,
- const char *character);
-char *e_card_get_vcard ( ECard *card);
-ECard *e_card_duplicate ( ECard *card);
-
-ECardPhone *e_card_phone_new (void);
-ECardPhone *e_card_phone_copy (const ECardPhone *phone);
-void e_card_phone_free ( ECardPhone *phone);
-
+/* Simple functions */
+ECard *e_card_new (char *vcard);
+char *e_card_get_id (ECard *card);
+void e_card_set_id (ECard *card,
+ const char *character);
+char *e_card_get_vcard (ECard *card);
+ECard *e_card_duplicate (ECard *card);
+
+/* ECardPhone manipulation */
+ECardPhone *e_card_phone_new (void);
+ECardPhone *e_card_phone_copy (const ECardPhone *phone);
+void e_card_phone_free (ECardPhone *phone);
+
+/* ECardDeliveryAddress manipulation */
ECardDeliveryAddress *e_card_delivery_address_new (void);
ECardDeliveryAddress *e_card_delivery_address_copy (const ECardDeliveryAddress *addr);
-void e_card_delivery_address_free ( ECardDeliveryAddress *addr);
+void e_card_delivery_address_free (ECardDeliveryAddress *addr);
gboolean e_card_delivery_address_is_empty (const ECardDeliveryAddress *addr);
char *e_card_delivery_address_to_string (const ECardDeliveryAddress *addr);
-ECardDeliveryAddress *e_card_delivery_address_from_label (const ECardAddrLabel *label);
+ECardDeliveryAddress *e_card_delivery_address_from_label (const ECardAddrLabel *label);
ECardAddrLabel *e_card_delivery_address_to_label (const ECardDeliveryAddress *addr);
-ECardAddrLabel *e_card_address_label_new (void);
-ECardAddrLabel *e_card_address_label_copy (const ECardAddrLabel *addr);
-void e_card_address_label_free ( ECardAddrLabel *addr);
-
-ECardName *e_card_name_new (void);
-ECardName *e_card_name_copy (const ECardName *name);
-void e_card_name_free ( ECardName *name);
-char *e_card_name_to_string (const ECardName *name);
-ECardName *e_card_name_from_string (const char *full_name);
-
-ECardArbitrary *e_card_arbitrary_new (void);
-ECardArbitrary *e_card_arbitrary_copy (const ECardArbitrary *arbitrary);
-void e_card_arbitrary_free ( ECardArbitrary *arbitrary);
-
-GList *e_card_load_cards_from_file(const char *filename);
+/* ECardAddrLabel manipulation */
+ECardAddrLabel *e_card_address_label_new (void);
+ECardAddrLabel *e_card_address_label_copy (const ECardAddrLabel *addr);
+void e_card_address_label_free (ECardAddrLabel *addr);
+
+/* ECardName manipulation */
+ECardName *e_card_name_new (void);
+ECardName *e_card_name_copy (const ECardName *name);
+void e_card_name_free (ECardName *name);
+char *e_card_name_to_string (const ECardName *name);
+ECardName *e_card_name_from_string (const char *full_name);
+
+/* ECardArbitrary manipulation */
+ECardArbitrary *e_card_arbitrary_new (void);
+ECardArbitrary *e_card_arbitrary_copy (const ECardArbitrary *arbitrary);
+void e_card_arbitrary_free (ECardArbitrary *arbitrary);
+
+/* Specialized functionality */
+GList *e_card_load_cards_from_file (const char *filename);
+
+enum _ECardDisposition {
+ E_CARD_DISPOSITION_AS_ATTACHMENT,
+ E_CARD_DISPOSITION_AS_TO,
+};
+typedef enum _ECardDisposition ECardDisposition;
+void e_card_send (ECard *card,
+ ECardDisposition disposition);
/* Standard Gtk function */
-GtkType e_card_get_type (void);
+GtkType e_card_get_type (void);
#endif /* ! __E_CARD_H__ */