diff options
author | Jon Trowbridge <trow@ximian.com> | 2001-05-18 15:10:04 +0800 |
---|---|---|
committer | Jon Trowbridge <trow@src.gnome.org> | 2001-05-18 15:10:04 +0800 |
commit | 3ca3f79dbe4641478582cd0b78a6e377c3430b19 (patch) | |
tree | 2693ebef04b05fff098f38f00233e676caf6229e /addressbook/backend/ebook/e-destination.h | |
parent | c8476fc1ff4887bde985382de708f248067ac7ba (diff) | |
download | gsoc2013-evolution-3ca3f79dbe4641478582cd0b78a6e377c3430b19.tar gsoc2013-evolution-3ca3f79dbe4641478582cd0b78a6e377c3430b19.tar.gz gsoc2013-evolution-3ca3f79dbe4641478582cd0b78a6e377c3430b19.tar.bz2 gsoc2013-evolution-3ca3f79dbe4641478582cd0b78a6e377c3430b19.tar.lz gsoc2013-evolution-3ca3f79dbe4641478582cd0b78a6e377c3430b19.tar.xz gsoc2013-evolution-3ca3f79dbe4641478582cd0b78a6e377c3430b19.tar.zst gsoc2013-evolution-3ca3f79dbe4641478582cd0b78a6e377c3430b19.zip |
Return the serialized EDestinations (rather than just a string w/ e-mail
2001-05-18 Jon Trowbridge <trow@ximian.com>
* gui/component/select-names/e-select-names-bonobo.c
(entry_get_property_fn): Return the serialized EDestinations
(rather than just a string w/ e-mail addresses) through the bonobo
component's property bag.
* gui/component/select-names/e-select-names-model.c
(e_select_names_model_export_destinationv): Added. A convenience routine
for serializing the model's EDestinations into a string.
* gui/component/select-names/e-select-names-popup.c
(add_html_mail): Added. Puts in a check menu item for whether or
not the recipient wants HTML mail.
(popup_menu_card): Add menu item for HTML mail. Enable edit
contact info item.
(popup_menu_nocard): Add menu item for HTML mail. Enable edit
contact info item.
* backend/ebook/e-book-util.c (e_book_use_local_address_book):
Added. Fetches the local addressbook and caches it on the first
call. This is meant to be an easy and efficient way to get at the
local addressbook with the minimum of code.
(e_book_query_address_locally): Added. Convenience code that
does an e-mail only e_book_name_and_email_query against the
local address book.
* backend/ebook/e-destination.c
(e_destination_set_html_mail_pref): Added. Allows the intended
recipient's HTML mail preference to be manipulated.
(e_destination_get_email_verbose): Added. Cleaned up to use
e_destination_get_name.
(e_destination_get_html_mail_pref): Added. Read the recipient's HTML mail
preference. If the destination is linked to a card, the
preference is taken from the card (unless it has been explicitly
overridden by a called to e_destination_set_html_mail_pref).
(e_destination_get_address_textv): Added. Form a unified address string
from a NULL-terminated vector of EDestinations.
(e_destination_export): Added. Serialize an EDestination to a string.
(e_destination_import): Added. Unserialize a string to build an
EDestination.
(e_destination_exportv): Added. Serialize a NULL-terminated vector of
EDestinations to a string.
(e_destination_importv): Added. Unserialize a string to build a
NULL-terminated vector of EDestinations.
* gui/component/select-names/e-select-names-completion.c:
Implemented local versions of g_strcasecmp and g_strncasecmp
(which should really be in glib, I think...) for utf8, and used
them to make this code utf8-safe.
2001-05-18 Jon Trowbridge <trow@ximian.com>
* Makefile.am (evolution_mail_LDADD): Added libebook.la (which is
now required by the composer.)
2001-05-18 Jon Trowbridge <trow@ximian.com>
* e-msg-composer-hdrs.c (set_recipients): Properly unserialize the
string returned by the "text" property of the bonobo control,
convert it into EDestinations, and use them to get the e-mail
addresses of our recipients.
22001-05-18 Jon Trowbridge <trow@ximian.com>
* Makefile.am (SUBDIRS): Changed build order. Now addressbook
gets built before mail.
svn path=/trunk/; revision=9878
Diffstat (limited to 'addressbook/backend/ebook/e-destination.h')
-rw-r--r-- | addressbook/backend/ebook/e-destination.h | 41 |
1 files changed, 29 insertions, 12 deletions
diff --git a/addressbook/backend/ebook/e-destination.h b/addressbook/backend/ebook/e-destination.h index 3c6de6e316..bb3c77d475 100644 --- a/addressbook/backend/ebook/e-destination.h +++ b/addressbook/backend/ebook/e-destination.h @@ -54,23 +54,40 @@ struct _EDestinationClass { GtkType e_destination_get_type (void); -EDestination *e_destination_new (void); -EDestination *e_destination_copy (EDestination *); -gboolean e_destination_is_empty (EDestination *); +EDestination *e_destination_new (void); +EDestination *e_destination_copy (EDestination *); -void e_destination_set_card (EDestination *, ECard *card, gint email_num); -void e_destination_set_string (EDestination *, const gchar *string); +gboolean e_destination_is_empty (EDestination *); -ECard *e_destination_get_card (const EDestination *); -gint e_destination_get_email_num (const EDestination *); -const gchar *e_destination_get_string (const EDestination *); -gint e_destination_get_strlen (const EDestination *); /* a convenience function... */ +void e_destination_set_card (EDestination *, ECard *card, gint email_num); +void e_destination_set_string (EDestination *, const gchar *string); +void e_destination_set_html_mail_pref (EDestination *, gboolean); + +ECard *e_destination_get_card (const EDestination *); +gint e_destination_get_email_num (const EDestination *); +const gchar *e_destination_get_string (const EDestination *); +gint e_destination_get_strlen (const EDestination *); /* a convenience function... */ + +const gchar *e_destination_get_name (const EDestination *); + +const gchar *e_destination_get_email (const EDestination *); +const gchar *e_destination_get_email_verbose (const EDestination *); + +/* If true, they want HTML mail. */ +gboolean e_destination_get_html_mail_pref (const EDestination *); + +gchar *e_destination_get_address_textv (EDestination **); + + +gchar *e_destination_export (const EDestination *); +EDestination *e_destination_import (const gchar *str); + +gchar *e_destination_exportv (EDestination **); +EDestination **e_destination_importv (const gchar *str); + -const gchar *e_destination_get_name (const EDestination *); -const gchar *e_destination_get_email (const EDestination *); -const gchar *e_destination_get_email_verbose (const EDestination *); |