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

Contents of /trunk/Include/wptRegistry.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 180 - (show annotations)
Mon Mar 6 14:41:58 2006 UTC (18 years, 11 months ago) by twoaday
File MIME type: text/plain
File size: 3659 byte(s)
2006-02-27  Timo Schulz  <twoaday@freakmail.de>
 
        * wptSOCKS.cpp (socks_handshake): New.
        * wptMainProc.cpp (winpt_main_proc): A dbl-click forces
        the key manager in teh foreground if possible.
        * wptHotkey.cpp (hotkey_unregister): Unregister all hotkeys.
        * wptRegistry.cpp (get_reg_proxy_prefs,
        set_reg_proxy_prefs): Use directly the proxy context.
        Changed all callers.
        * wptProxySettingsDlg.cpp (init_proxy_protocols): New.
        (keyserver_proxy_dlg_proc): Use directly the proxy context.
        * wptKeyserver.cpp (kserver_connect): Better proxy support.
        (kserver_send_request, kserver_recvkey_request): Likewise.
        * wptKeyserverDlg.cpp (name_from_proto): New.
        (set_proxy): Adjusted for the new code.


1 /* wptRegistry.h - Win32 Registry headerfile
2 * Copyright (C) 2000-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
21 #ifndef WPT_REGISTRY_H
22 #define WPT_REGISTRY_H
23
24 #include "wptKeyserver.h"
25
26 /* Symbolic configuration IDs */
27 enum cfg_t {
28 CFG_INVALID=0,
29 CFG_CACHETIME,
30 CFG_WORDWRAP,
31 CFG_FASTMODE,
32 CFG_VIEWER,
33 CFG_WIPEMODE,
34 CFG_ALWAYSTRUST,
35 CFG_AUTOBACKUP,
36 CFG_AUTOBAKMODE,
37 CFG_DISHOTKEYS,
38 CFG_NOZIP_MMEDIA,
39 CFG_EXPERT,
40 CFG_FM_PROGRESS,
41 /* end of id list */
42 CFG_AUTOBAKPATH,
43 CFG_KSERV_CONF,
44 };
45
46
47 struct winpt_reg_prefs_s {
48 int no_hotkeys; /* disable ALL hotkeys */
49 int word_wrap; /* set word wrapping (0 means to disable it) */
50 int cache_time; /* caching time for passphrase */
51 int use_tmpfiles; /* use tempfiles for gpg communication */
52 int use_viewer; /* use clipboard viewer for displaying plaintext */
53 int no_zip_mmedia; /* disable compression for multi-media files (movies, music) */
54 int wipe_mode; /* simple=0, dod=1, gutmann=2 */
55 int always_trust; /* skip key validation (1 means yes) */
56 int auto_backup; /* automatic backup (1 means activated) */
57 struct {
58 int mode; /* backup mode */
59 char *path; /* keyring backup path */
60 } backup;
61 char *kserv_conf; /* path to the keyserver config file. */
62 int expert; /* run in expert mode. */
63 struct {
64 int progress; /* show the progress bar dialog. */
65 } fm;
66 char *homedir; /* mobile home directory. */
67
68 /* Actual no registry options but virtual options. */
69 struct {
70 unsigned int ask_cert_level:1;
71 } gpg;
72 };
73
74 extern winpt_reg_prefs_s reg_prefs;
75
76 /*-- wptRegistry.cpp --*/
77 void free_reg_prefs (void);
78 int regist_inst_gnupg (int create_mokey);
79 int regist_inst_winpt (int with_ext, int *created);
80 int create_file_type (const char * exefile, const char * ext,
81 const char * extname, char *iconfile );
82 int set_reg_winpt_single (int id, int val);
83 int get_reg_winpt_single (int id);
84 int set_reg_winpt_prefs (winpt_reg_prefs_s * opt);
85 int get_reg_winpt_prefs (winpt_reg_prefs_s * opt);
86 char* get_reg_entry( HKEY root_key, const char * dir, const char * key );
87 int set_reg_entry( HKEY root_key, const char * dir, const char * key,
88 const char * value );
89 int set_reg_key( HKEY root_key, const char * dir, const char * key,
90 const char * value );
91 int set_reg_entry_gpg( const char * key, const char * value );
92 int set_reg_entry_mo( const char * value );
93 char* get_reg_entry_gpg( const char * key );
94 char* get_reg_entry_mo( void );
95 void get_reg_proxy_prefs (keyserver_proxy_t prox);
96 int set_reg_proxy_prefs (keyserver_proxy_t prox);
97 int set_reg_entry_keyserver( const char * name, const char * val );
98 char * get_reg_entry_keyserver( const char * name );
99 int set_reg_winpt_flag (const char *name, int val);
100 int get_reg_winpt_flag (const char *name);
101 char* get_reg_entry_gpg4win (const char *path);
102 int is_gpg4win_installed (void);
103
104 #endif /* WPT_REGISTRY_H */

Properties

Name Value
svn:eol-style native

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26