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

Annotation of /trunk/Include/wptRegistry.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 329 - (hide annotations)
Fri Sep 25 16:08:14 2009 UTC (15 years, 5 months ago) by twoaday
File MIME type: text/plain
File size: 3304 byte(s)


1 twoaday 270 /* wptRegistry.h - Registry interface
2 twoaday 297 * Copyright (C) 2000-2007 Timo Schulz
3 werner 37 *
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     #ifndef WPT_REGISTRY_H
17     #define WPT_REGISTRY_H
18    
19 twoaday 180
20 werner 37 /* Symbolic configuration IDs */
21     enum cfg_t {
22     CFG_INVALID=0,
23     CFG_CACHETIME,
24     CFG_WORDWRAP,
25 twoaday 218 CFG_FILEEXT,
26 werner 37 CFG_VIEWER,
27     CFG_ALWAYSTRUST,
28     CFG_AUTOBACKUP,
29     CFG_AUTOBAKMODE,
30     CFG_DISHOTKEYS,
31     CFG_NOZIP_MMEDIA,
32     CFG_EXPERT,
33     CFG_FM_PROGRESS,
34 twoaday 222 CFG_BACKUP_INC_SKR,
35 werner 37 /* end of id list */
36     CFG_AUTOBAKPATH,
37 twoaday 222 CFG_KSERV_CONF,
38 werner 37 };
39    
40 twoaday 329 extern const char *cfg[];
41 werner 37
42 twoaday 270 struct winpt_prefs_s {
43 werner 37 int no_hotkeys; /* disable ALL hotkeys */
44     int word_wrap; /* set word wrapping (0 means to disable it) */
45     int cache_time; /* caching time for passphrase */
46     int use_viewer; /* use clipboard viewer for displaying plaintext */
47     int no_zip_mmedia; /* disable compression for multi-media files (movies, music) */
48     int always_trust; /* skip key validation (1 means yes) */
49     int auto_backup; /* automatic backup (1 means activated) */
50 twoaday 218 int default_ext; /* 1 = GPG, PGP otherwise. */
51 twoaday 297 int no_safe_pwd_ctrl; /* disable the additional 'safe' window hooks. */
52 werner 37 struct {
53 twoaday 222 int include_secr;/* including secret keyrings. */
54 werner 37 int mode; /* backup mode */
55     char *path; /* keyring backup path */
56     } backup;
57     char *kserv_conf; /* path to the keyserver config file. */
58     int expert; /* run in expert mode. */
59     struct {
60     int progress; /* show the progress bar dialog. */
61     } fm;
62     char *homedir; /* mobile home directory. */
63 twoaday 39
64     /* Actual no registry options but virtual options. */
65     struct {
66     unsigned int ask_cert_level:1;
67 twoaday 182 unsigned int ask_cert_expire:1;
68 twoaday 39 } gpg;
69 werner 37 };
70 twoaday 270 typedef struct winpt_prefs_s *winpt_prefs_t;
71     extern winpt_prefs_s reg_prefs;
72 werner 37
73     /*-- wptRegistry.cpp --*/
74     void free_reg_prefs (void);
75     int regist_inst_gnupg (int create_mokey);
76     int regist_inst_winpt (int with_ext, int *created);
77     int set_reg_winpt_single (int id, int val);
78     int get_reg_winpt_single (int id);
79 twoaday 270 int set_reg_winpt_prefs (winpt_prefs_t opt);
80     int get_reg_winpt_prefs (winpt_prefs_t opt);
81 twoaday 264 char* get_reg_entry (HKEY root_key, const char *dir, const char *key);
82 twoaday 270 int set_reg_entry (HKEY root_key, const char * dir, const char * key,
83     const char *value);
84     int set_reg_key (HKEY root_key, const char * dir, const char * key,
85     const char * value);
86     int set_reg_entry_gpg (const char *key, const char *value);
87     char* get_reg_entry_gpg (const char * key);
88     char* get_reg_entry_mo (void);
89     int set_reg_entry_keyserver (const char * name, const char *val);
90     char* get_reg_entry_keyserver( const char * name );
91 twoaday 128 int set_reg_winpt_flag (const char *name, int val);
92     int get_reg_winpt_flag (const char *name);
93     char* get_reg_entry_gpg4win (const char *path);
94     int is_gpg4win_installed (void);
95 werner 37
96     #endif /* WPT_REGISTRY_H */

Properties

Name Value
svn:eol-style native

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26