Fix bug #3380. Initialize widget before callback handler for 'clicked'
[claws.git] / src / plugins / clamd / clamav_plugin.h
1 /*
2  * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 2003-2010 Michael Rasmussen and the Claws Mail Team
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  * 
18  */
19
20 #ifndef CLAMAV_PLUGIN_H
21 #define CLAMAV_PLUGIN_H 1
22
23 #include <glib.h>
24 #include "clamd-plugin.h"
25
26 typedef struct _ClamAvConfig ClamAvConfig;
27
28 typedef void (*MessageCallback) (gchar *);
29
30 struct _ClamAvConfig
31 {
32         gboolean         clamav_enable;
33 /*      gboolean         clamav_enable_arc;*/
34         guint            clamav_max_size;
35         gboolean         clamav_recv_infected;
36         gchar           *clamav_save_folder;
37         gboolean         clamd_config_type;
38         gchar           *clamd_host;
39         int              clamd_port;
40         gchar           *clamd_config_folder;
41         gboolean        alert_ack;
42 };
43
44 ClamAvConfig *clamav_get_config           (void);
45 void          clamav_save_config          (void);
46 void          clamav_set_message_callback (MessageCallback callback);
47 Clamd_Stat    clamd_prepare(void);
48 gint          clamav_gtk_init(void);
49 void          clamav_gtk_done(void);
50
51 #endif