2
* Copyright (C) 2011 Collabora Ltd.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as
6
* published by the Free Software Foundation; either version 2.1 of
7
* the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful, but
10
* WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19
* Author: Stef Walter <stefw@collabora.co.uk>
22
#if !defined (__GCR_INSIDE_HEADER__) && !defined (GCR_COMPILATION)
23
#error "Only <gcr/gcr.h> or <gcr/gcr-base.h> can be included directly."
26
#ifndef __GCR_CERTIFICATE_EXPORTER_H__
27
#define __GCR_CERTIFICATE_EXPORTER_H__
29
#include <glib-object.h>
32
#include "gcr-types.h"
36
#define GCR_TYPE_CERTIFICATE_EXPORTER (_gcr_certificate_exporter_get_type ())
37
#define GCR_CERTIFICATE_EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_CERTIFICATE_EXPORTER, GcrCertificateExporter))
38
#define GCR_CERTIFICATE_EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_CERTIFICATE_EXPORTER, GcrCertificateExporterClass))
39
#define GCR_IS_CERTIFICATE_EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_CERTIFICATE_EXPORTER))
40
#define GCR_IS_CERTIFICATE_EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_CERTIFICATE_EXPORTER))
41
#define GCR_CERTIFICATE_EXPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_CERTIFICATE_EXPORTER, GcrCertificateExporterClass))
43
typedef struct _GcrCertificateExporter GcrCertificateExporter;
44
typedef struct _GcrCertificateExporterClass GcrCertificateExporterClass;
45
typedef struct _GcrCertificateExporterPrivate GcrCertificateExporterPrivate;
47
struct _GcrCertificateExporter {
50
GcrCertificateExporterPrivate *pv;
53
struct _GcrCertificateExporterClass {
54
GObjectClass parent_class;
57
GType _gcr_certificate_exporter_get_type (void);
59
GcrCertificateExporter* _gcr_certificate_exporter_new (GcrCertificate *certificate,
61
GtkWindow *transient_for);
63
void _gcr_certificate_exporter_export_async (GcrCertificateExporter *self,
64
GCancellable *cancellable,
65
GAsyncReadyCallback callback,
68
gboolean _gcr_certificate_exporter_export_finish (GcrCertificateExporter *self,
74
#endif /* __GCR_CERTIFICATE_EXPORTER_H__ */