1 |
/* wptContext.h - Internal file to store private contexts |
/* wptContext.h - Internal file to store private contexts |
2 |
* Copyright (C) 2001-2005 Timo Schulz |
* Copyright (C) 2001-2006, 2009 Timo Schulz |
3 |
* |
* |
4 |
* This file is part of WinPT. |
* This file is part of WinPT. |
5 |
* |
* |
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
* GNU General Public License for more details. |
* GNU General Public License for more details. |
|
* |
|
|
* You should have received a copy of the GNU General Public License |
|
|
* along with WinPT; if not, write to the Free Software Foundation, |
|
|
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
15 |
*/ |
*/ |
16 |
#ifndef WPT_CONTEXT_H |
#ifndef WPT_CONTEXT_H |
17 |
#define WPT_CONTEXT_H |
#define WPT_CONTEXT_H |
42 |
int idx; /* selected index. */ |
int idx; /* selected index. */ |
43 |
int new_val; /* new value */ |
int new_val; /* new value */ |
44 |
} callback; |
} callback; |
45 |
|
char tmp_keyid[8+1]; |
46 |
|
int internal; |
47 |
|
unsigned int allocated:1; |
48 |
}; |
}; |
49 |
typedef struct winpt_key_s * winpt_key_t; |
typedef struct winpt_key_s * winpt_key_t; |
50 |
|
|
68 |
}; |
}; |
69 |
|
|
70 |
struct secdel_confirm_s { |
struct secdel_confirm_s { |
71 |
unsigned int yes:1; /* if yes=1 user confirmed delete. */ |
unsigned int yes:1; /* if yes=1 user confirmed delete. */ |
72 |
listview_ctrl_t lv_files;/* listview control with the files to delete. */ |
listview_ctrl_t lv_files; /* listview with the files to delete. */ |
73 |
|
int mode; /* return the wipe mode. */ |
74 |
|
int passes; /* number of random passes. */ |
75 |
}; |
}; |
76 |
|
|
77 |
|
|
97 |
int cancel; /* user cancelled operation. */ |
int cancel; /* user cancelled operation. */ |
98 |
int check; /* use strict URL checking. */ |
int check; /* use strict URL checking. */ |
99 |
}; |
}; |
100 |
|
typedef struct URL_ctx_s *URL_ctx_t; |
|
struct first_start_s { |
|
|
int choice; |
|
|
}; |
|
101 |
|
|
102 |
/* Key generation context */ |
/* Key generation context */ |
103 |
struct genkey_s { |
struct genkey_s { |
104 |
gpgme_key_t newkey; /* handle to the new key */ |
gpgme_key_t newkey; /* handle to the new key */ |
105 |
int interactive; |
int interactive; |
106 |
unsigned int first_start:1; |
unsigned int first_start:1; |
107 |
|
unsigned int cancel:1; |
108 |
|
char *fpr; /* fingerprint of the key. */ |
109 |
}; |
}; |
110 |
|
|
111 |
#endif /* WPT_CONTEXT_H */ |
#endif /* WPT_CONTEXT_H */ |