~ubuntu-branches/ubuntu/trusty/gcr/trusty-proposed

« back to all changes in this revision

Viewing changes to gcr/gcr-certificate-exporter.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-03 10:18:39 UTC
  • Revision ID: package-import@ubuntu.com-20120503101839-wuvloldm7gmdsnij
Tags: upstream-3.4.1
ImportĀ upstreamĀ versionĀ 3.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2011 Collabora Ltd.
 
3
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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
 
17
 * 02111-1307, USA.
 
18
 *
 
19
 * Author: Stef Walter <stefw@collabora.co.uk>
 
20
 */
 
21
 
 
22
#if !defined (__GCR_INSIDE_HEADER__) && !defined (GCR_COMPILATION)
 
23
#error "Only <gcr/gcr.h> or <gcr/gcr-base.h> can be included directly."
 
24
#endif
 
25
 
 
26
#ifndef __GCR_CERTIFICATE_EXPORTER_H__
 
27
#define __GCR_CERTIFICATE_EXPORTER_H__
 
28
 
 
29
#include <glib-object.h>
 
30
#include <gtk/gtk.h>
 
31
 
 
32
#include "gcr-types.h"
 
33
 
 
34
G_BEGIN_DECLS
 
35
 
 
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))
 
42
 
 
43
typedef struct _GcrCertificateExporter GcrCertificateExporter;
 
44
typedef struct _GcrCertificateExporterClass GcrCertificateExporterClass;
 
45
typedef struct _GcrCertificateExporterPrivate GcrCertificateExporterPrivate;
 
46
 
 
47
struct _GcrCertificateExporter {
 
48
        /*< private >*/
 
49
        GObject parent;
 
50
        GcrCertificateExporterPrivate *pv;
 
51
};
 
52
 
 
53
struct _GcrCertificateExporterClass {
 
54
        GObjectClass parent_class;
 
55
};
 
56
 
 
57
GType                     _gcr_certificate_exporter_get_type          (void);
 
58
 
 
59
GcrCertificateExporter*   _gcr_certificate_exporter_new               (GcrCertificate *certificate,
 
60
                                                                       const gchar *label,
 
61
                                                                       GtkWindow *transient_for);
 
62
 
 
63
void                      _gcr_certificate_exporter_export_async      (GcrCertificateExporter *self,
 
64
                                                                       GCancellable *cancellable,
 
65
                                                                       GAsyncReadyCallback callback,
 
66
                                                                       gpointer user_data);
 
67
 
 
68
gboolean                  _gcr_certificate_exporter_export_finish     (GcrCertificateExporter *self,
 
69
                                                                       GAsyncResult *result,
 
70
                                                                       GError **error);
 
71
 
 
72
G_END_DECLS
 
73
 
 
74
#endif /* __GCR_CERTIFICATE_EXPORTER_H__ */