support image/x-eps format via pdf_viewer
[claws.git] / src / plugins / pgpcore / plugin.c
blob1dc1963a38b7c02a55a94fdacd308aa0c76f75f6
1 /*
2 * Claws Mail -- a GTK based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2012 the Claws Mail Team
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.
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.
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/>.
20 #ifdef HAVE_CONFIG_H
21 # include "config.h"
22 #include "claws-features.h"
23 #endif
25 #include <stddef.h>
26 #include <glib.h>
27 #include <glib/gi18n.h>
29 #include "version.h"
30 #include "common/claws.h"
31 #include "sgpgme.h"
32 #include "prefs_gpg.h"
33 #include "pgp_viewer.h"
34 #include "autocompletion.h"
35 #include "plugin.h"
37 #define PLUGIN_NAME (_("PGP/Core"))
39 gint plugin_init(gchar **error)
41 if (!check_plugin_version(MAKE_NUMERIC_VERSION(2,9,2,72),
42 VERSION_NUMERIC, PLUGIN_NAME, error))
43 return -1;
45 prefs_gpg_init();
46 sgpgme_init();
47 sgpgme_check_create_key();
48 pgp_viewer_init();
49 autocompletion_init(error);
51 return 0;
54 gboolean plugin_done(void)
56 pgp_viewer_done();
57 prefs_gpg_done();
58 sgpgme_done();
59 autocompletion_done();
61 return TRUE;
64 const gchar *plugin_name(void)
66 return PLUGIN_NAME;
69 const gchar *plugin_desc(void)
71 return _("This plugin handles PGP core operations and provides address "
72 "autocompletion from the GPG keyring. It is used by other "
73 "plugins, like PGP/Mime.\n"
74 "\n"
75 "Options can be found in /Configuration/Preferences/Plugins/GPG "
76 "and /Configuration/[Account Preferences]/Plugins/GPG\n"
77 "\n"
78 "The plugin uses the GPGME library as a wrapper for GnuPG.\n"
79 "\n"
80 "GPGME is copyright 2001 by Werner Koch <dd9jn@gnu.org>");
83 const gchar *plugin_type(void)
85 return "GTK3";
88 const gchar *plugin_licence(void)
90 return "GPL3+";
93 const gchar *plugin_version(void)
95 return VERSION;
98 struct PluginFeature *plugin_provides(void)
100 static struct PluginFeature features[] =
101 { {PLUGIN_PRIVACY, N_("Core operations")},
102 {PLUGIN_NOTHING, NULL}};
103 return features;