fix CID 1596595: Resource leaks, and CID 1596594: (CHECKED_RETURN)
[claws.git] / src / plugins / attachwarner / attachwarner.h
1 /*
2  * Claws Mail -- a GTK based, lightweight, and fast e-mail client
3  * Copyright (C) 2006-2023 the Claws Mail Team and Ricardo Mones
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 #ifndef __ATTACHWARNER_H
20 #define __ATTACHWARNER_H
21
22 #include <glib.h>
23
24 #include "version.h"
25 #include "claws.h"
26 #include "plugin.h"
27 #include "utils.h"
28 #include "hooks.h"
29 #include "compose.h"
30 #include "matcher.h"
31 #include "alertpanel.h"
32
33 struct _AttachWarnerMention {
34         int line;
35         gchar *context;
36 };
37
38 typedef struct _AttachWarnerMention AttachWarnerMention;
39
40 MatcherProp *                   new_matcherprop (void);
41 gboolean                                matcherprop_string_match  (MatcherProp *mp, gchar *str);
42 AttachWarnerMention *   are_attachments_mentioned (Compose *compose);
43 gboolean                                does_not_have_attachments (Compose *compose);
44
45 gint                                    plugin_init (gchar **error);
46 gboolean                                plugin_done (void);
47 const gchar *                   plugin_name (void);
48 const gchar *                   plugin_desc (void);
49 const gchar *                   plugin_type (void);
50 const gchar *                   plugin_licence (void);
51 const gchar *                   plugin_version (void);
52 struct PluginFeature *  plugin_provides (void);
53
54 #endif