1 |
/* wptImport.h |
2 |
* Copyright (C) 2005, 2006 Timo Schulz |
3 |
* |
4 |
* This file is part of WinPT. |
5 |
* |
6 |
* WinPT is free software; you can redistribute it and/or |
7 |
* modify it under the terms of the GNU General Public License |
8 |
* as published by the Free Software Foundation; either version 2 |
9 |
* of the License, or (at your option) any later version. |
10 |
* |
11 |
* WinPT 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 GNU |
14 |
* General Public License for more details. |
15 |
* |
16 |
* You should have received a copy of the GNU General Public License |
17 |
* along with WinPT; if not, write to the Free Software Foundation, |
18 |
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 |
*/ |
20 |
#ifndef WPT_IMPORT_H |
21 |
#define WPT_IMPORT_H 1 |
22 |
|
23 |
/* GPG import status values */ |
24 |
typedef enum { |
25 |
GPG_IMPSTAT_NPKEYS = 0, /* new public keys */ |
26 |
GPG_IMPSTAT_NOSELFSIG = 1, /* no self signatures */ |
27 |
GPG_IMPSTAT_IPKEYS = 2, /* imported public keys */ |
28 |
GPG_IMPSTAT_NUIDS = 5, /* new user ids */ |
29 |
GPG_IMPSTAT_NSUBKEYS = 6, /* new sub keys */ |
30 |
GPG_IMPSTAT_NSIGS = 7, /* new signatures */ |
31 |
GPG_IMPSTAT_NREV = 8, /* new revocation certs */ |
32 |
GPG_IMPSTAT_NSKEYS = 9, /* new secret keys */ |
33 |
GPG_IMPSTAT_ISKEYS = 10 /* imported secret keys */ |
34 |
} gpg_import_status_t; |
35 |
|
36 |
|
37 |
BOOL CALLBACK import_status_dlg_proc (HWND dlg, |
38 |
UINT msg, |
39 |
WPARAM wparam, |
40 |
LPARAM lparam); |
41 |
|
42 |
int print_import_status (gpgme_import_result_t res); |
43 |
|
44 |
#endif /*WPT_IMPORT_H*/ |