/[winpt]/trunk/Include/wptContext.h
ViewVC logotype

Annotation of /trunk/Include/wptContext.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 34 - (hide annotations)
Wed Oct 26 11:20:09 2005 UTC (19 years, 4 months ago) by twoaday
File MIME type: text/plain
File size: 3626 byte(s)
2005-10-25  Timo Schulz  <twoaday@g10code.com>
                                                                                
        * wptGPGUtil.cpp (create_process): Hide window.
        * wptKeyPropsDlg.cpp (get_photo_tmpname): New.
        * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Remove
        static var 'enable'.
        * wptKeygenDlg.cpp (keygen_dlg_proc): Likewise.
        (gpg_genkey_params): Make sure all primary keys are capable
        for signing and certification.
        * wptKeySigDlg.cpp (is_sig): If no item is selected, return 0.
        * wptGPG.cpp (gnupg_access_keyring): Check return value for
        NULL. Noted by Ralf.
        (get_gnupg_prog): Simplified.
        (check_homedir): Fixed. Return 0 when the dir is successfully created.
        * wptKeyManagerDlg.cpp (km_file_import): Use the hourglass to
        indicate a pending GPG process.
        * wptFileManager.cpp (op_begin, op_end): New. Indicate an start
        and and of an operation. For now just the cursor changes.
        (fm_parse_command_line): Remove debug output. Thanks to Ralf again.
        * WinPT.cpp (WinMain): Check if there is already an instance and
        set a variable early as possible.
        (load_gettext): If a previous instance was found, do not output
        any errors. Kudos to Ralf.


1 twoaday 2 /* wptContext.h - Internal file to store private contexts
2     * Copyright (C) 2001-2005 Timo Schulz
3     *
4     * This file is part of WinPT.
5     *
6     * WinPT 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     * 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
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 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_CONTEXT_H
21     #define WPT_CONTEXT_H
22    
23 twoaday 25 /* Window subclassing context. */
24 twoaday 2 struct subclass_s {
25     HWND dlg;
26 twoaday 23 WNDPROC old; /* old window procedure */
27     WNDPROC current; /* the subclass window procedure */
28 twoaday 2 void * opaque;
29     };
30    
31 twoaday 23 /* Container for a gpgme key. */
32 twoaday 2 struct winpt_key_s {
33 twoaday 25 const char *uid; /* pointer to the first uid */
34     const char *keyid; /* pointer to the first keyid */
35 twoaday 23 unsigned int key_pair:1; /* is a complete key. */
36     unsigned int is_protected:1; /* secret key is protected. */
37     unsigned int update:1; /* 1=need to reload key. */
38     unsigned int is_v3:1; /* key is version 3 (RSA/MD5) */
39 twoaday 34 unsigned int has_photo:1; /* 1=contains photo-id. */
40 twoaday 2 unsigned int flags;
41 twoaday 25 gpgme_key_t ctx; /* if not NULL, the actualy gpgme key */
42     struct keycache_s *ext; /* extended key attributes or NULL. */
43 twoaday 23 /* Callback structure if a listview needs to be updated. */
44 twoaday 2 struct {
45 twoaday 23 listview_ctrl_t ctl; /* the listview control. */
46     int idx; /* selected index. */
47 twoaday 25 int new_val; /* new value */
48 twoaday 2 } callback;
49     };
50     typedef struct winpt_key_s * winpt_key_t;
51    
52 twoaday 25 /* Text input context for detached sigs. */
53 twoaday 2 struct text_input_s {
54 twoaday 23 char *data; /* input data. */
55     size_t length; /* length of input data. */
56     int type; /* type of data (0=text data for signature) */
57 twoaday 2 };
58    
59 twoaday 25 /* Date context for the date selection dialog. */
60 twoaday 2 struct date_s {
61 twoaday 25 int cancel; /* cancel was hit. */
62     const char *text; /* text used as the title. */
63     SYSTEMTIME st; /* selected time by the user. */
64 twoaday 2 };
65    
66     struct md_file_s {
67     int mdalgo;
68     listview_ctrl_t lv;
69     };
70    
71     struct secdel_confirm_s {
72 twoaday 23 unsigned int yes:1; /* if yes=1 user confirmed delete. */
73     listview_ctrl_t lv_files;/* listview control with the files to delete. */
74 twoaday 2 };
75    
76    
77 twoaday 25 /* Progress filter context. */
78 twoaday 2 struct progress_filter_s {
79 twoaday 4 HWND hwnd;
80 twoaday 2 HWND dlg;
81     HANDLE thread_hd;
82     int error;
83 twoaday 23 const char *what;
84 twoaday 2 int type;
85     unsigned curr;
86     unsigned total;
87     };
88    
89 twoaday 25 /* URL context. */
90 twoaday 18 struct URL_ctx_s {
91 twoaday 23 const char *title; /* title for the dialog. */
92     const char *desc; /* description of what to do. */
93     char url[256]; /* the selected URL. */
94 twoaday 2 char proxy[64];
95 twoaday 23 int port; /* the port to use. */
96     int cancel; /* user cancelled operation. */
97     int check; /* use strict URL checking. */
98 twoaday 2 };
99    
100 twoaday 22 struct first_start_s {
101     int choice;
102     };
103    
104 twoaday 25 /* Key generation context */
105 twoaday 22 struct genkey_s {
106 twoaday 25 gpgme_key_t newkey; /* handle to the new key */
107     int interactive;
108 twoaday 22 unsigned int first_start:1;
109 twoaday 2 };
110    
111 twoaday 25 #endif /* WPT_CONTEXT_H */

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26