1 /* recipientdlg.h - A dialog to select a mail recipient. 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 20 #ifndef RECIPIENTDLG_H 21 #define RECIPIENTDLG_H 22 23 24 /* Definitions to define the object. */ 25 #define RECIPIENT_DLG_TYPE \ 26 (recipient_dlg_get_type ()) 27 28 #define RECIPIENT_DLG(obj) \ 29 (G_TYPE_CHECK_INSTANCE_CAST \ 30 ((obj), RECIPIENT_DLG_TYPE,\ 31 RecipientDlg)) 32 33 #define RECIPIENT_DLG_CLASS(klass) \ 34 (G_TYPE_CHECK_CLASS_CAST \ 35 ((klass), RECIPIENT_DLG_TYPE, \ 36 RecipientDlgClass)) 37 38 #define IS_RECIPIENT_DLG(obj) \ 39 (G_TYPE_CHECK_INSTANCE_TYPE \ 40 ((obj), RECIPIENT_DLG_TYPE)) 41 42 #define IS_RECIPIENT_DLG_CLASS(klass) \ 43 (G_TYPE_CHECK_CLASS_TYPE \ 44 ((klass), RECIPIENT_DLG_TYPE)) 45 46 #define RECIPIENT_DLG_GET_CLASS(obj) \ 47 (G_TYPE_INSTANCE_GET_CLASS \ 48 ((obj), RECIPIENT_DLG_TYPE, \ 49 RecipientDlgClass)) 50 51 typedef struct _RecipientDlg RecipientDlg; 52 typedef struct _RecipientDlgClass RecipientDlgClass; 53 54 55 GType recipient_dlg_get_type (void) G_GNUC_CONST; 56 57 58 /************************************ 59 ************ Public API ************ 60 ************************************/ 61 62 RecipientDlg *recipient_dlg_new (GtkWidget *parent); 63 void recipient_dlg_set_recipients (RecipientDlg *dialog, GSList *recipients, 64 gpgme_protocol_t protocol); 65 gpgme_key_t *recipient_dlg_get_keys (RecipientDlg *dialog, 66 gpgme_protocol_t *r_protocol); 67 68 69 70 #endif /*RECIPIENTDLG_H*/ 71