X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-address-book.h;h=8fea6fa1d35c7914d6b53633f54d3ee69b523657;hb=14a46f61ed269fe8155b0c21f532bde4d9db06f3;hp=67a0e639c817c3a43794d5a0d7d71af638d740d6;hpb=af95a0dd641606061b0aa484c0cd63d2cdb47124;p=modest diff --git a/src/modest-address-book.h b/src/modest-address-book.h index 67a0e63..8fea6fa 100644 --- a/src/modest-address-book.h +++ b/src/modest-address-book.h @@ -32,17 +32,27 @@ #ifndef __MODEST_ADDRESS_BOOK_H__ #define __MODEST_ADDRESS_BOOK_H__ +#include #include #include /** + * modest_address_book_init: + * + * initializes the addressbook + */ +void +modest_address_book_init (void); + +/** * modest_address_book_add_address: * @address: a string * * launches the UI for adding @address to the addressbook */ void -modest_address_book_add_address (const gchar *address); +modest_address_book_add_address (const gchar *address, + GtkWindow *parent); /** * modest_address_book_select_addresses: @@ -58,15 +68,17 @@ modest_address_book_select_addresses (ModestRecptEditor *editor, /** * modest_address_book_check_names: * @editor: a #ModestRecptEditor - * @update_addressbook: if TRUE, add valid addresses to the addressbook, recent list - * + * @address_list: if it is not NULL, this list is filled with the + * valid addresses ready to be added to the address book + * * 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_check_names (ModestRecptEditor *editor, + GSList **address_list); /** * modest_address_book_has_address: @@ -90,4 +102,26 @@ modest_address_book_has_address (const gchar *address); const gchar * modest_address_book_get_my_name (); +/** + * modest_address_book_add_address_list: + * @address_list: a list of email addresses to add to the addressbook + * + * Inserts a list of addresses in the addressbook + **/ +void +modest_address_book_add_address_list (GSList *address_list); + +/** + * modest_address_book_add_address_list_with_selector: + * @address_list: a list of email addresses to add to the addressbook + * @parent: the parent window. The UI elements shown to the user + * (tipically a dialog) will have that window as parent + * + * Presents some UI to the users to allow them to select and then + * insert a list of selected addresses in the addressbook. + **/ +void +modest_address_book_add_address_list_with_selector (GSList *address_list, + GtkWindow *parent); + #endif /* __MODEST_ADDRESS_BOOK_H__ */