Statistics
| Revision:

root / src / addr_compl.h @ 521

History | View | Annotate | Download (1.7 kB)

1 1 hiro
/*
2 1 hiro
 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 1 hiro
 *
4 1 hiro
 * Copyright (C) 2000-2004 by Alfons Hoogervorst & The Sylpheed Claws Team.
5 1 hiro
 *
6 1 hiro
 * This program is free software; you can redistribute it and/or modify
7 1 hiro
 * it under the terms of the GNU General Public License as published by
8 1 hiro
 * the Free Software Foundation; either version 2 of the License, or
9 1 hiro
 * (at your option) any later version.
10 1 hiro
 *
11 1 hiro
 * This program is distributed in the hope that it will be useful,
12 1 hiro
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 1 hiro
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 1 hiro
 * GNU General Public License for more details.
15 1 hiro
 *
16 1 hiro
 * You should have received a copy of the GNU General Public License
17 1 hiro
 * along with this program; if not, write to the Free Software
18 1 hiro
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 1 hiro
 */
20 1 hiro
21 1 hiro
#ifndef __ADDR_COMPL_H__
22 1 hiro
#define __ADDR_COMPL_H__
23 1 hiro
24 1 hiro
gint start_address_completion                (void);
25 1 hiro
gint invalidate_address_completion        (void);
26 1 hiro
27 1 hiro
guint complete_address                        (const gchar        *str);
28 1 hiro
29 1 hiro
gchar *get_address_from_edit                (GtkEntry        *entry,
30 1 hiro
                                         gint                *start_pos);
31 1 hiro
void replace_address_in_edit                (GtkEntry        *entry,
32 1 hiro
                                         const gchar        *newtext,
33 1 hiro
                                         gint                 start_pos);
34 1 hiro
35 1 hiro
gchar *get_complete_address                (gint                 index);
36 1 hiro
37 1 hiro
gchar *get_next_complete_address        (void);
38 1 hiro
gchar *get_prev_complete_address        (void);
39 1 hiro
guint get_completion_count                (void);
40 1 hiro
41 1 hiro
gboolean is_completion_pending                (void);
42 1 hiro
43 1 hiro
void clear_completion_cache                (void);
44 1 hiro
45 1 hiro
gint end_address_completion                (void);
46 1 hiro
47 1 hiro
/* ui functions */
48 1 hiro
49 1 hiro
void address_completion_start        (GtkWidget *mainwindow);
50 1 hiro
void address_completion_register_entry        (GtkEntry *entry);
51 1 hiro
void address_completion_unregister_entry (GtkEntry *entry);
52 1 hiro
void address_completion_end        (GtkWidget *mainwindow);
53 1 hiro
54 1 hiro
#endif /* __ADDR_COMPL_H__ */