1 /* gpastreamverifyop.h - The GpaStreamVerifyOperation object.
2    Copyright (C) 2008 g10 Code GmbH
3 
4    This file is part of GPA
5 
6    GPA is free software; you can redistribute it and/or modify it
7    under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 3 of the License, or
9    (at your option) any later version.
10 
11    GPA is distributed in the hope that it will be useful, but WITHOUT
12    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
14    License for more details.
15 
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, see <http://www.gnu.org/licenses/>.  */
18 
19 #ifndef GPA_STREAM_VERIFY_OP_H
20 #define GPA_STREAM_VERIFY_OP_H
21 
22 #include <glib.h>
23 #include <glib-object.h>
24 
25 #include "gpastreamop.h"
26 
27 /* GObject stuff.  */
28 #define GPA_STREAM_VERIFY_OPERATION_TYPE	\
29   (gpa_stream_verify_operation_get_type ())
30 
31 #define GPA_STREAM_VERIFY_OPERATION(obj)				\
32   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_STREAM_VERIFY_OPERATION_TYPE, \
33 			       GpaStreamVerifyOperation))
34 
35 #define GPA_STREAM_VERIFY_OPERATION_CLASS(klass)			\
36   (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_STREAM_VERIFY_OPERATION_TYPE,	\
37 			    GpaStreamVerifyOperationClass))
38 
39 #define GPA_IS_STREAM_VERIFY_OPERATION(obj)				\
40   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_STREAM_VERIFY_OPERATION_TYPE))
41 
42 #define GPA_IS_STREAM_VERIFY_OPERATION_CLASS(klass)			\
43   (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_STREAM_VERIFY_OPERATION_TYPE))
44 
45 #define GPA_STREAM_VERIFY_OPERATION_GET_CLASS(obj)			\
46   (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_STREAM_VERIFY_OPERATION_TYPE,	\
47 			      GpaStreamVerifyOperationClass))
48 
49 typedef struct _GpaStreamVerifyOperation GpaStreamVerifyOperation;
50 typedef struct _GpaStreamVerifyOperationClass GpaStreamVerifyOperationClass;
51 
52 GType gpa_stream_verify_operation_get_type (void) G_GNUC_CONST;
53 
54 
55 /* Public API.  */
56 
57 /* Creates a new verify operation.  */
58 GpaStreamVerifyOperation *
59 gpa_stream_verify_operation_new (GtkWidget *window,
60 				 gpgme_data_t input_stream,
61 				 gpgme_data_t message_stream,
62 				 gpgme_data_t output_stream,
63 				 gboolean silent,
64 				 gpgme_protocol_t protocol,
65                                  const char *title);
66 
67 #endif	/* GPA_STREAM_VERIFY_OP_H */
68