1 |
/* wptRegistry.h - Win32 Registry headerfile |
/* wptRegistry.h - Win32 Registry headerfile |
2 |
* Copyright (C) 2000-2004 Timo Schulz |
* Copyright (C) 2000-2005 Timo Schulz |
3 |
* |
* |
4 |
* This file is part of WinPT. |
* This file is part of WinPT. |
5 |
* |
* |
21 |
#ifndef WPT_REGISTRY_H |
#ifndef WPT_REGISTRY_H |
22 |
#define WPT_REGISTRY_H |
#define WPT_REGISTRY_H |
23 |
|
|
24 |
enum { |
/* Symbolic configuration IDs */ |
25 |
|
enum cfg_t { |
26 |
CFG_INVALID=0, |
CFG_INVALID=0, |
27 |
CFG_CACHETIME, |
CFG_CACHETIME, |
28 |
CFG_WORDWRAP, |
CFG_WORDWRAP, |
36 |
CFG_DISHOTKEYS, |
CFG_DISHOTKEYS, |
37 |
CFG_NOZIP_MMEDIA, |
CFG_NOZIP_MMEDIA, |
38 |
CFG_EXPERT, |
CFG_EXPERT, |
39 |
|
CFG_FM_PROGRESS, |
40 |
/* end of id list */ |
/* end of id list */ |
41 |
CFG_AUTOBAKPATH, |
CFG_AUTOBAKPATH, |
42 |
CFG_KSERV_CONF, |
CFG_KSERV_CONF, |
44 |
|
|
45 |
|
|
46 |
struct reg_hotkey_s { |
struct reg_hotkey_s { |
47 |
const char * reg_entry; |
const char *reg_entry; |
48 |
char key[2]; |
char key[2]; /* the hotkey as a char ('A'). */ |
49 |
int enabled; |
int enabled; /* 1=enable this hotkey. */ |
50 |
}; |
}; |
51 |
typedef struct reg_hotkey_s * reg_hotkey_t; |
typedef struct reg_hotkey_s * reg_hotkey_t; |
52 |
|
|
62 |
int always_trust; /* skip key validation (1 means yes) */ |
int always_trust; /* skip key validation (1 means yes) */ |
63 |
int auto_backup; /* automatic backup (1 means activated) */ |
int auto_backup; /* automatic backup (1 means activated) */ |
64 |
struct { |
struct { |
65 |
int mode; |
int mode; /* backup mode */ |
66 |
char * path; |
char *path; /* keyring backup path */ |
67 |
} backup; |
} backup; |
68 |
char * kserv_conf; |
char *kserv_conf; /* path to the keyserver config file. */ |
69 |
int expert; |
int expert; /* run in expert mode. */ |
70 |
|
struct { |
71 |
|
int progress; /* show the progress bar dialog. */ |
72 |
|
} fm; |
73 |
|
char *homedir; /* mobile home directory. */ |
74 |
}; |
}; |
75 |
|
|
76 |
extern reg_hotkey_s reg_hotkeys[]; |
extern reg_hotkey_s reg_hotkeys[]; |