check for return value when setting G_MESSAGES_DEBUG
[claws.git] / src / addr_compl.h
bloba056db6fa0283bfb88d85028a4880fc6596de068
1 /*
2 * Claws Mail -- a GTK based, lightweight, and fast e-mail client
3 *
4 * Copyright (C) 2000-2012 by Alfons Hoogervorst & The Claws Mail Team.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef __ADDR_COMPL_H__
22 #define __ADDR_COMPL_H__
24 #include <gtk/gtk.h>
26 #define ADDDRESS_COMPLETION_BUILD_ADDRESS_LIST_HOOKLIST "address_completion_build_address_list_hooklist"
28 /**
29 * address_entry - structure which refers to the original address entry in the
30 * address book .
32 typedef struct
34 gchar *name;
35 gchar *address;
36 GList *grp_emails;
37 } address_entry;
39 guint start_address_completion (gchar *folderpath);
40 guint complete_address (const gchar *str);
41 guint complete_matches_found (const gchar *str);
42 gchar *get_complete_address (gint index);
43 gint invalidate_address_completion (void);
44 gint end_address_completion (void);
45 gboolean found_in_addressbook(const gchar *address);
47 /* ui functions */
48 void address_completion_start (GtkWidget *mainwindow);
49 void address_completion_register_entry (GtkEntry *entry, gboolean allow_commas);
50 void address_completion_unregister_entry(GtkEntry *entry);
51 void address_completion_end (GtkWidget *mainwindow);
53 void addrcompl_initialize ( void );
54 void addrcompl_teardown ( void );
56 void addr_compl_add_address1(const char *str, address_entry *ae);
58 void addrcompl_reflect_prefs_pixmap_theme(void);
59 #endif /* __ADDR_COMPL_H__ */