/[winpt]/trunk/Src/wptClipImportDlg.cpp
ViewVC logotype

Contents of /trunk/Src/wptClipImportDlg.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 286 - (show annotations)
Fri Mar 9 19:34:17 2007 UTC (17 years, 11 months ago) by twoaday
File size: 1713 byte(s)
First part of the patch to fix the v3 verify problem.


1 /* wptClipImportDlg.cpp - WinPT key import dialog
2 * Copyright (C) 2001-2007 Timo Schulz
3 * Copyright (C) 2005 g10 Code GmbH
4 *
5 * This file is part of WinPT.
6 *
7 * WinPT is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * WinPT is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 */
17 #ifdef HAVE_CONFIG_H
18 #include <config.h>
19 #endif
20
21 #include <windows.h>
22
23 #include "resource.h"
24 #include "wptCrypto.h"
25 #include "wptGPG.h"
26 #include "wptCommonCtl.h"
27 #include "wptKeylist.h"
28 #include "wptNLS.h"
29 #include "wptErrors.h"
30 #include "wptTypes.h"
31 #include "wptContext.h" /* for passphrase_s */
32 #include "wptDlgs.h"
33 #include "wptW32API.h"
34 #include "wptVersion.h"
35 #include "wptImport.h"
36 #include "wptKeyManager.h"
37
38
39 /* Load the import statistics dialog with the results from @res. */
40 int
41 print_import_status (gpgme_import_result_t res)
42 {
43 gpgme_import_status_t st;
44 int new_keys = res->considered - res->unchanged;
45
46 dialog_box_param (glob_hinst, (LPCSTR)IDD_WINPT_IMPORT_STAT, glob_hwnd,
47 import_status_dlg_proc, (LPARAM)res,
48 _("Key Import Statistics"), IDS_WINPT_IMPORT_STAT);
49 if (new_keys > 0 && new_keys < KM_PRELOAD_KEYS) {
50 for (st=res->imports; st; st=st->next) {
51 if (st->status == 0) /* nothing changed */
52 continue;
53 keycache_update (0, st->fpr);
54 }
55 }
56 return !(res->unchanged == res->considered);
57 }

Properties

Name Value
svn:eol-style native

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26