Initial import of ephy (rev# 7126) from svn
[ephy-soc.git] / embed / ephy-certificate-manager.h
bloba7da546598cfe702a15bb247af57a3f72b35baed
1 /*
2 * Copyright © 2003 Robert Marcano
3 * Copyright © 2005 Crispin Flowerday
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 2, or (at your option)
8 * 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, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 * $Id: ephy-certificate-manager.h 6952 2007-03-11 19:42:02Z chpe $
22 #ifndef EPHY_CERTIFICATE_MANAGER_H
23 #define EPHY_CERTIFICATE_MANAGER_H
25 #include <glib-object.h>
27 #include "ephy-x509-cert.h"
29 G_BEGIN_DECLS
31 #define EPHY_TYPE_CERTIFICATE_MANAGER (ephy_certificate_manager_get_type ())
32 #define EPHY_CERTIFICATE_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EPHY_TYPE_CERTIFICATE_MANAGER, EphyCertificateManager))
33 #define EPHY_CERTIFICATE_MANAGER_IFACE(klass) (G_TYPE_CHECK_IFACE_CAST ((klass), EPHY_TYPE_CERTIFICATE_MANAGER, EphyCertificateManagerIface))
34 #define EPHY_IS_CERTIFICATE_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EPHY_TYPE_CERTIFICATE_MANAGER))
35 #define EPHY_IS_CERTIFICATE_MANAGER_IFACE(klass) (G_TYPE_CHECK_IFACE_TYPE ((klass), EPHY_TYPE_CERTIFICATE_MANAGER))
36 #define EPHY_CERTIFICATE_MANAGER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EPHY_TYPE_CERTIFICATE_MANAGER, EphyCertificateManagerIface))
38 typedef struct _EphyCertificateManager EphyCertificateManager;
39 typedef struct _EphyCertificateManagerIface EphyCertificateManagerIface;
41 struct _EphyCertificateManagerIface
43 GTypeInterface base_iface;
45 /* Methods */
46 GList * (* get_certificates) (EphyCertificateManager *manager,
47 EphyX509CertType type);
48 gboolean (* remove_certificate) (EphyCertificateManager *manager,
49 EphyX509Cert *cert);
50 gboolean (* import) (EphyCertificateManager *manager,
51 const gchar *file);
54 GType ephy_certificate_manager_get_type (void);
56 /* Certificate */
57 GList * ephy_certificate_manager_get_certificates (EphyCertificateManager *manager,
58 EphyX509CertType type);
60 gboolean ephy_certificate_manager_remove_certificate (EphyCertificateManager *manager,
61 EphyX509Cert *cert);
63 gboolean ephy_certificate_manager_import (EphyCertificateManager *manager,
64 const gchar *file);
66 G_END_DECLS
68 #endif