1 /* verifydlg.h - The GpaFileVerifyDialog object. 2 * Copyright (C) 2003, Miguel Coca. 3 * 4 * This file is part of GPA 5 * 6 * GPA is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * GPA is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public 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, write to the Free Software 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 */ 20 21 #ifndef GPA_FILE_VERIFY_DIALOG_H 22 #define GPA_FILE_VERIFY_DIALOG_H 23 24 #include <glib.h> 25 #include <glib-object.h> 26 #include <gtk/gtk.h> 27 #include "gpacontext.h" 28 29 /* GObject stuff */ 30 #define GPA_FILE_VERIFY_DIALOG_TYPE (gpa_file_verify_dialog_get_type ()) 31 #define GPA_FILE_VERIFY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_FILE_VERIFY_DIALOG_TYPE, GpaFileVerifyDialog)) 32 #define GPA_FILE_VERIFY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_FILE_VERIFY_DIALOG_TYPE, GpaFileVerifyDialogClass)) 33 #define GPA_IS_FILE_VERIFY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_FILE_VERIFY_DIALOG_TYPE)) 34 #define GPA_IS_FILE_VERIFY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_FILE_VERIFY_DIALOG_TYPE)) 35 #define GPA_FILE_VERIFY_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_FILE_VERIFY_DIALOG_TYPE, GpaFileVerifyDialogClass)) 36 37 typedef struct _GpaFileVerifyDialog GpaFileVerifyDialog; 38 typedef struct _GpaFileVerifyDialogClass GpaFileVerifyDialogClass; 39 40 struct _GpaFileVerifyDialog { 41 GtkDialog parent; 42 43 GtkWidget *notebook; 44 /* Context for retrieving signature's keys */ 45 GpaContext *ctx; 46 }; 47 48 struct _GpaFileVerifyDialogClass { 49 GtkDialogClass parent_class; 50 }; 51 52 GType gpa_file_verify_dialog_get_type (void) G_GNUC_CONST; 53 54 /* API */ 55 56 GtkWidget *gpa_file_verify_dialog_new (GtkWidget *parent); 57 58 void gpa_file_verify_dialog_set_title (GpaFileVerifyDialog *dialog, 59 const char *title); 60 61 void gpa_file_verify_dialog_add_file (GpaFileVerifyDialog *dialog, 62 const gchar *filename, 63 const gchar *signed_file, 64 const gchar *signature_file, 65 gpgme_signature_t sigs); 66 67 #endif 68