2007-10-11 [mones] 3.0.2cvs62
[claws.git] / src / addr_compl.h
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * 
4  * Copyright (C) 2000-2007 by Alfons Hoogervorst & The Claws Mail Team.
5  *
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.
10  *
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.
15  *
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/>.
18  * 
19  */
20  
21 #ifndef __ADDR_COMPL_H__
22 #define __ADDR_COMPL_H__
23
24 #include <gtk/gtk.h>
25
26 gint start_address_completion           (gchar *folderpath);
27 guint complete_address                  (const gchar *str);
28 guint complete_matches_found                            (const gchar *str);
29 gchar *get_complete_address             (gint index);
30 gint invalidate_address_completion      (void);
31 gint end_address_completion             (void);
32
33 /* ui functions */
34 void address_completion_start           (GtkWidget *mainwindow);
35 void address_completion_register_entry  (GtkEntry  *entry, gboolean allow_commas);
36 void address_completion_unregister_entry(GtkEntry  *entry);
37 void address_completion_end             (GtkWidget *mainwindow);
38
39 void addrcompl_initialize       ( void );
40 void addrcompl_teardown         ( void );
41
42 #endif /* __ADDR_COMPL_H__ */