File: gpafiledecryptop.h

package info (click to toggle)
gpa 0.9.10-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,408 kB
  • ctags: 3,351
  • sloc: ansic: 34,620; sh: 5,240; makefile: 210; sed: 16
file content (68 lines) | stat: -rw-r--r-- 2,522 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* gpafiledecryptop.h - The GpaFileDecryptOperation object.
 * Copyright (C) 2003 Miguel Coca.
 * Copyright (C) 2008 g10 Code GmbH.
 *
 * This file is part of GPA
 *
 * GPA is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * GPA is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 */

#ifndef GPA_FILE_DECRYPT_OP_H
#define GPA_FILE_DECRYPT_OP_H

#include <glib.h>
#include <glib-object.h>
#include "gpafileop.h"

/* GObject stuff */
#define GPA_FILE_DECRYPT_OPERATION_TYPE	  (gpa_file_decrypt_operation_get_type ())
#define GPA_FILE_DECRYPT_OPERATION(obj)	  (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_FILE_DECRYPT_OPERATION_TYPE, GpaFileDecryptOperation))
#define GPA_FILE_DECRYPT_OPERATION_CLASS(klass)  (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_FILE_DECRYPT_OPERATION_TYPE, GpaFileDecryptOperationClass))
#define GPA_IS_FILE_DECRYPT_OPERATION(obj)	  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_FILE_DECRYPT_OPERATION_TYPE))
#define GPA_IS_FILE_DECRYPT_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_FILE_DECRYPT_OPERATION_TYPE))
#define GPA_FILE_DECRYPT_OPERATION_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_FILE_DECRYPT_OPERATION_TYPE, GpaFileDecryptOperationClass))

typedef struct _GpaFileDecryptOperation GpaFileDecryptOperation;
typedef struct _GpaFileDecryptOperationClass GpaFileDecryptOperationClass;

struct _GpaFileDecryptOperation {
  GpaFileOperation parent;

  int cipher_fd, plain_fd;
  gpgme_data_t cipher, plain;
 
  gboolean verify;
  gpg_error_t err;
  int signed_files;
  GtkWidget *dialog;  
};

struct _GpaFileDecryptOperationClass {
  GpaFileOperationClass parent_class;
};

GType gpa_file_decrypt_operation_get_type (void) G_GNUC_CONST;

/* API */

/* Creates a new decryption operation.
 */
GpaFileDecryptOperation *gpa_file_decrypt_operation_new (GtkWidget *window,
							 GList *files);

GpaFileDecryptOperation *gpa_file_decrypt_verify_operation_new
  (GtkWidget *window, GList *files);

#endif