1 |
/* wptDlgs.h - WinPT dialog headerfile |
2 |
* Copyright (C) 2000-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 |
|
21 |
#ifndef WPT_DIALOGS_H |
22 |
#define WPT_DIALOGS_H |
23 |
|
24 |
/*-- Clipboard dialogs --*/ |
25 |
BOOL CALLBACK clip_edit_dlg_proc( HWND dlg, |
26 |
UINT msg, |
27 |
WPARAM wparam, |
28 |
LPARAM lparam ); |
29 |
|
30 |
BOOL CALLBACK clip_encrypt_dlg_proc( HWND dlg, |
31 |
UINT msg, |
32 |
WPARAM wparam, |
33 |
LPARAM lparam ); |
34 |
|
35 |
BOOL CALLBACK clip_sign_dlg_proc( HWND dlg, |
36 |
UINT msg, |
37 |
WPARAM wparam, |
38 |
LPARAM lparam ); |
39 |
|
40 |
BOOL CALLBACK clip_signenc_dlg_proc( HWND dlg, |
41 |
UINT msg, |
42 |
WPARAM wparam, |
43 |
LPARAM |
44 |
lparam ); |
45 |
|
46 |
BOOL CALLBACK clip_verify_dlg_proc( HWND dlg, |
47 |
UINT msg, |
48 |
WPARAM wparam, |
49 |
LPARAM lparam ); |
50 |
|
51 |
BOOL CALLBACK clip_import_dlg_proc( HWND dlg, |
52 |
UINT msg, |
53 |
WPARAM wparam, |
54 |
LPARAM lparam ); |
55 |
|
56 |
/*-- Keyserver handling dialogs --*/ |
57 |
BOOL CALLBACK keyserver_proxy_dlg_proc( HWND dlg, |
58 |
UINT msg, |
59 |
WPARAM wparam, |
60 |
LPARAM lparam ); |
61 |
|
62 |
BOOL CALLBACK keyserver_dlg_proc( HWND dlg, |
63 |
UINT msg, |
64 |
WPARAM wparam, |
65 |
LPARAM lparam ); |
66 |
|
67 |
BOOL CALLBACK hkpsearch_dlg_proc( HWND dlg, |
68 |
UINT msg, |
69 |
WPARAM, |
70 |
LPARAM lparam ); |
71 |
|
72 |
/*-- Key handling dialogs --*/ |
73 |
BOOL CALLBACK keygen_dlg_proc( HWND dlg, |
74 |
UINT msg, |
75 |
WPARAM wparam, |
76 |
LPARAM lparam ); |
77 |
|
78 |
BOOL CALLBACK keygen_wizard_dlg_proc( HWND dlg, |
79 |
UINT msg, |
80 |
WPARAM wparam, |
81 |
LPARAM lparam ); |
82 |
|
83 |
BOOL CALLBACK keymanager_dlg_proc( HWND dlg, |
84 |
UINT msg, |
85 |
WPARAM wparam, |
86 |
LPARAM lparam ); |
87 |
|
88 |
BOOL CALLBACK keycache_dlg_proc( HWND dlg, |
89 |
UINT msg, |
90 |
WPARAM wparam, |
91 |
LPARAM lparam ); |
92 |
|
93 |
BOOL CALLBACK keysign_dlg_proc( HWND dlg, |
94 |
UINT msg, |
95 |
WPARAM wparam, |
96 |
LPARAM lparam ); |
97 |
|
98 |
BOOL CALLBACK keysig_dlg_proc( HWND dlg, |
99 |
UINT msg, |
100 |
WPARAM wparam, |
101 |
LPARAM lparam ); |
102 |
|
103 |
BOOL CALLBACK ownertrust_dlg_proc( HWND dlg, |
104 |
UINT msg, |
105 |
WPARAM wparam, |
106 |
LPARAM lparam ); |
107 |
|
108 |
BOOL CALLBACK keyedit_main_dlg_proc( HWND dlg, |
109 |
UINT msg, |
110 |
WPARAM wparam, |
111 |
LPARAM lparam ); |
112 |
|
113 |
BOOL CALLBACK keyedit_adduid_dlg_proc( HWND dlg, |
114 |
UINT msg, |
115 |
WPARAM wparam, |
116 |
LPARAM lparam ); |
117 |
|
118 |
BOOL CALLBACK keyedit_addsubkey_dlg_proc( HWND dlg, |
119 |
UINT msg, |
120 |
WPARAM wparam, |
121 |
LPARAM lparam ); |
122 |
|
123 |
BOOL CALLBACK keyedit_addrevoker_dlg_proc( HWND dlg, |
124 |
UINT msg, |
125 |
WPARAM wparam, |
126 |
LPARAM lparam ); |
127 |
|
128 |
BOOL CALLBACK keyedit_addphoto_dlg_proc( HWND dlg, |
129 |
UINT msg, |
130 |
WPARAM wparam, |
131 |
LPARAM lparam ); |
132 |
|
133 |
BOOL CALLBACK keyedit_ownertrust_dlg_proc( HWND dlg, |
134 |
UINT msg, |
135 |
WPARAM wparam, |
136 |
LPARAM lparam ); |
137 |
BOOL CALLBACK keyedit_setpref_dlg_proc (HWND dlg, UINT msg, |
138 |
WPARAM wparam, LPARAM lparam); |
139 |
|
140 |
BOOL CALLBACK keyprops_dlg_proc(HWND dlg, |
141 |
UINT msg, |
142 |
WPARAM wparam, |
143 |
LPARAM lparam); |
144 |
|
145 |
BOOL CALLBACK keytrust_dlg_proc(HWND dlg, |
146 |
UINT msg, |
147 |
WPARAM wparam, |
148 |
LPARAM lparam); |
149 |
|
150 |
BOOL CALLBACK key_revoke_dlg_proc(HWND dlg, |
151 |
UINT msg, |
152 |
WPARAM wparam, |
153 |
LPARAM lparam); |
154 |
|
155 |
BOOL CALLBACK date_dlg_proc(HWND dlg, |
156 |
UINT msg, |
157 |
WPARAM wparam, |
158 |
LPARAM lparam); |
159 |
|
160 |
BOOL CALLBACK import_status_dlg_proc( HWND dlg, |
161 |
UINT msg, |
162 |
WPARAM wparam, |
163 |
LPARAM lparam ); |
164 |
|
165 |
BOOL CALLBACK sig_class_dlg_proc( HWND dlg, |
166 |
UINT msg, |
167 |
WPARAM wparam, |
168 |
LPARAM lparam ); |
169 |
|
170 |
BOOL CALLBACK key_revokers_dlg_proc( HWND dlg, |
171 |
UINT msg, |
172 |
WPARAM wparam, |
173 |
LPARAM lparam ); |
174 |
|
175 |
/*-- Group manager --*/ |
176 |
BOOL CALLBACK group_manager_dlg_proc(HWND dlg, |
177 |
UINT msg, |
178 |
WPARAM wparam, |
179 |
LPARAM lparam); |
180 |
|
181 |
/*-- File manager --*/ |
182 |
BOOL CALLBACK file_manager_dlg_proc(HWND dlg, |
183 |
UINT msg, |
184 |
WPARAM wparam, |
185 |
LPARAM lparam); |
186 |
|
187 |
BOOL CALLBACK file_secdel_confirm_dlg_proc( HWND dlg, |
188 |
UINT msg, |
189 |
WPARAM wparam, |
190 |
LPARAM lparam ); |
191 |
|
192 |
BOOL CALLBACK space_wipefrees_dlg_proc( HWND dlg, |
193 |
UINT msg, |
194 |
WPARAM wparam, |
195 |
LPARAM lparam ); |
196 |
|
197 |
BOOL CALLBACK file_sign_dlg_proc(HWND dlg, |
198 |
UINT msg, |
199 |
WPARAM wparam, |
200 |
LPARAM lparam); |
201 |
|
202 |
BOOL CALLBACK file_encrypt_dlg_proc(HWND dlg, |
203 |
UINT msg, |
204 |
WPARAM wparam, |
205 |
LPARAM lparam); |
206 |
|
207 |
BOOL CALLBACK file_import_dlg_proc(HWND dlg, |
208 |
UINT msg, |
209 |
WPARAM wparam, |
210 |
LPARAM lparam); |
211 |
|
212 |
BOOL CALLBACK file_export_dlg_proc(HWND dlg, |
213 |
UINT msg, |
214 |
WPARAM wparam, |
215 |
LPARAM lparam); |
216 |
|
217 |
BOOL CALLBACK file_prefs_dlg_proc(HWND dlg, |
218 |
UINT msg, |
219 |
WPARAM wparam, |
220 |
LPARAM lparam); |
221 |
|
222 |
BOOL CALLBACK file_stat_dlg_proc( HWND dlg, |
223 |
UINT msg, |
224 |
WPARAM wparam, |
225 |
LPARAM lparam ); |
226 |
|
227 |
BOOL CALLBACK file_save_dlg_proc( HWND dlg, |
228 |
UINT msg, |
229 |
WPARAM wparam, |
230 |
LPARAM lparam ); |
231 |
|
232 |
BOOL CALLBACK mdsum_dlg_proc( HWND dlg, |
233 |
UINT msg, |
234 |
WPARAM wparam, |
235 |
LPARAM lparam ); |
236 |
|
237 |
/*-- Filemanager verify log --*/ |
238 |
int file_verify_create_dlg( void ); |
239 |
|
240 |
/*-- Key generation callback */ |
241 |
int keygen_cb_dlg_create (void); |
242 |
void keygen_cb_dlg_destroy (void); |
243 |
void keygen_cb (void *opaque, const char *what, |
244 |
int type, unsigned curretn, unsigned total); |
245 |
|
246 |
/*-- Data callback --*/ |
247 |
struct data_callback_s; |
248 |
typedef struct data_callback_s *data_callback_t; |
249 |
|
250 |
int data_cb_dlg_create( data_callback_t ctx ); |
251 |
void data_cb_dlg_destroy( void ); |
252 |
data_callback_t data_cb_new( const char *filename, listview_ctrl_t lv, HWND dlg ); |
253 |
|
254 |
/*-- Text input --*/ |
255 |
BOOL CALLBACK text_input_dlg_proc( HWND dlg, |
256 |
UINT msg, |
257 |
WPARAM wparam, |
258 |
LPARAM lparam ); |
259 |
|
260 |
/*-- About dialogs --*/ |
261 |
BOOL CALLBACK about_winpt_dlg_proc( HWND dlg, |
262 |
UINT msg, |
263 |
WPARAM wparam, |
264 |
LPARAM lparam ); |
265 |
|
266 |
/*-- Preferences dialogs --*/ |
267 |
BOOL CALLBACK prefs_dlg_proc( HWND dlg, |
268 |
UINT msg, |
269 |
WPARAM wparam, |
270 |
LPARAM lparam ); |
271 |
|
272 |
BOOL CALLBACK gpgprefs_dlg_proc(HWND hwnd, |
273 |
UINT msg, |
274 |
WPARAM wparam, |
275 |
LPARAM lparam); |
276 |
|
277 |
BOOL CALLBACK gpgopt_dlg_proc( HWND dlg, |
278 |
UINT msg, |
279 |
WPARAM wparam, |
280 |
LPARAM lparam ); |
281 |
|
282 |
/*-- Pseudo dialogs --*/ |
283 |
BOOL CALLBACK passphrase_callback_proc( HWND dlg, |
284 |
UINT msg, |
285 |
WPARAM wparam, |
286 |
LPARAM lparam ); |
287 |
int clip_decrypt_dlg( HWND hwnd ); |
288 |
|
289 |
void progress_callback (void * opaque, const char * what, int type, |
290 |
unsigned off, unsigned max); |
291 |
|
292 |
/*-- Misc --*/ |
293 |
BOOL CALLBACK first_run_dlg_proc( HWND dlg, |
294 |
UINT msg, |
295 |
WPARAM wparam, |
296 |
LPARAM lparam ); |
297 |
BOOL CALLBACK elgamal_warn_dlg_proc( HWND dlg, UINT msg, WPARAM wparam, |
298 |
LPARAM lparam ); |
299 |
|
300 |
void * get_http_file_dlg (HWND root); |
301 |
|
302 |
/*-- Card dialogs --*/ |
303 |
BOOL CALLBACK card_edit_dlg_proc( HWND dlg, UINT msg, WPARAM wparam, |
304 |
LPARAM lparam ); |
305 |
BOOL CALLBACK pin_cb_dlg_proc( HWND dlg, UINT msg, WPARAM wparam, |
306 |
LPARAM lparam ); |
307 |
BOOL CALLBACK card_changepin_dlg_proc( HWND dlg, UINT msg, WPARAM wparam, |
308 |
LPARAM lparam ); |
309 |
BOOL CALLBACK card_keygen_dlg_proc( HWND dlg, UINT msg, WPARAM wparam, |
310 |
LPARAM lparam ); |
311 |
|
312 |
/*-- wptClipImportDlg.cpp --*/ |
313 |
void print_import_status( int *import_res, int is_revcert ); |
314 |
|
315 |
/*-- wptMapi.cpp --*/ |
316 |
BOOL CALLBACK winpt_mail_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam); |
317 |
|
318 |
#endif /* WPT_DIALOGS_H */ |