X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-address-book.h;h=f0d569019e4ec145a5a61bb54cf907e22461b5ef;hb=e0411b467e3de20f6ea60957e370a15d1dae2f27;hp=4f55ee00ef509678502c819844c7045d41be201b;hpb=556398d85f1803ab8d4871a107bc4b8938c444ae;p=modest diff --git a/src/modest-address-book.h b/src/modest-address-book.h index 4f55ee0..f0d5690 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: @@ -52,11 +62,14 @@ 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 + * @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. * @@ -64,8 +77,38 @@ modest_address_book_select_addresses (ModestRecptEditor *editor); * no recipients, %FALSE otherwise. */ gboolean -modest_address_book_check_names (ModestRecptEditor *editor); +modest_address_book_check_names (ModestRecptEditor *editor, + GSList **address_list); + +/** + * 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 (); +/** + * 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); #endif /* __MODEST_ADDRESS_BOOK_H__ */