X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-address-book.h;h=907c066f41460b7b85be3c1eefbabd6140503262;hb=05a39554f335d35fb85361c40475e3c1dda9679f;hp=9231f96a4aa68c8949e9828456bbf087428efbe1;hpb=326ddf804e1bc2542650028660f4eb5cc82af96a;p=modest diff --git a/src/modest-address-book.h b/src/modest-address-book.h index 9231f96..907c066 100644 --- a/src/modest-address-book.h +++ b/src/modest-address-book.h @@ -32,6 +32,7 @@ #ifndef __MODEST_ADDRESS_BOOK_H__ #define __MODEST_ADDRESS_BOOK_H__ +#include #include #include @@ -52,7 +53,42 @@ modest_address_book_add_address (const gchar *address); * */ void -modest_address_book_select_addresses (ModestRecptEditor *editor); +modest_address_book_select_addresses (ModestRecptEditor *editor, + GtkWindow *parent_window); +/** + * modest_address_book_check_names: + * @editor: a #ModestRecptEditor + * @update_addressbook: if TRUE, add valid addresses to the addressbook, recent list + * + * Performs verification of addresses in a recipient editor. + * + * Returns: %TRUE if all recipients are valid or there are + * no recipients, %FALSE otherwise. + */ +gboolean +modest_address_book_check_names (ModestRecptEditor *editor, gboolean update_addressbook); + +/** + * modest_address_book_has_address: + * @address: a string + * + * Checks if an address is already stored in addressbook. + * + * Returns: %TRUE is @address is in addressbook. %FALSE otherwise. + */ +gboolean +modest_address_book_has_address (const gchar *address); + +/** + * modest_address_book_get_my_name: + * @: + * + * Returns user name from user's own vcard + * + * Returns: the user full name + **/ +const gchar * +modest_address_book_get_my_name (); #endif /* __MODEST_ADDRESS_BOOK_H__ */