1 |
/* wptRegistry.h - Win32 Registry headerfile |
/* wptRegistry.h - Win32 Registry headerfile |
2 |
* Copyright (C) 2000-2005 Timo Schulz |
* Copyright (C) 2000-2006 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 |
|
#include "wptKeyserver.h" |
25 |
|
|
26 |
/* Symbolic configuration IDs */ |
/* Symbolic configuration IDs */ |
27 |
enum cfg_t { |
enum cfg_t { |
28 |
CFG_INVALID=0, |
CFG_INVALID=0, |
71 |
} gpg; |
} gpg; |
72 |
}; |
}; |
73 |
|
|
|
/* Registry hotkey context. */ |
|
|
struct reg_hotkey_s { |
|
|
const char *reg_entry; |
|
|
char key[2]; /* the hotkey as a char ('A'). */ |
|
|
int enabled; /* 1=enable this hotkey. */ |
|
|
}; |
|
|
typedef struct reg_hotkey_s *reg_hotkey_t; |
|
|
|
|
|
extern reg_hotkey_s reg_hotkeys[]; |
|
74 |
extern winpt_reg_prefs_s reg_prefs; |
extern winpt_reg_prefs_s reg_prefs; |
75 |
|
|
|
/*-- wptHotkey.cpp --*/ |
|
|
void hotkeys_modify (void); |
|
|
void hotkey_disable (reg_hotkey_t rhk); |
|
|
void hotkey_enable (reg_hotkey_t rhk, const char * key); |
|
|
|
|
76 |
/*-- wptRegistry.cpp --*/ |
/*-- wptRegistry.cpp --*/ |
77 |
void free_reg_prefs (void); |
void free_reg_prefs (void); |
78 |
int regist_inst_gnupg (int create_mokey); |
int regist_inst_gnupg (int create_mokey); |
92 |
int set_reg_entry_mo( const char * value ); |
int set_reg_entry_mo( const char * value ); |
93 |
char* get_reg_entry_gpg( const char * key ); |
char* get_reg_entry_gpg( const char * key ); |
94 |
char* get_reg_entry_mo( void ); |
char* get_reg_entry_mo( void ); |
95 |
void get_reg_proxy_prefs( char ** host, int * port, |
void get_reg_proxy_prefs (keyserver_proxy_t prox); |
96 |
char ** user, char ** pass ); |
int set_reg_proxy_prefs (keyserver_proxy_t prox); |
|
int set_reg_proxy_prefs( const char * host, int port, |
|
|
const char * user, const char * pass ); |
|
97 |
int set_reg_entry_keyserver( const char * name, const char * val ); |
int set_reg_entry_keyserver( const char * name, const char * val ); |
98 |
char * get_reg_entry_keyserver( const char * name ); |
char * get_reg_entry_keyserver( const char * name ); |
99 |
int set_reg_winpt_flag (const char *name, int val); |
int set_reg_winpt_flag (const char *name, int val); |