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

Annotation of /trunk/Include/wptFileManager.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations)
Mon Jan 31 11:02:21 2005 UTC (20 years, 1 month ago) by twoaday
File MIME type: text/plain
File size: 3169 byte(s)
WinPT initial checkin.


1 twoaday 2 /* wptFileManager.h - File manager routines
2     * Copyright (C) 2001-2005 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_FILE_MANAGER_H
22     #define WPT_FILE_MANAGER_H
23    
24     enum {
25     FM_NONE = 0,
26     FM_ENCRYPT = 1,
27     FM_SYMENC = 2,
28     FM_DECRYPT = 3,
29     FM_SIGN = 4,
30     FM_SIGNENCRYPT = 5,
31     FM_VERIFY = 6,
32     FM_IMPORT = 7,
33     FM_LIST = 8,
34     FM_WIPE = 9,
35     FM_ENCRYPT_DIR = 10,
36     };
37    
38     enum {
39     FM_SORT_NONE = 0,
40     FM_SORT_STAT = 1,
41     FM_SORT_NAME = 2,
42     FM_SORT_OP = 3
43     };
44    
45    
46     struct fm_state_s {
47     gpgme_ctx_t ctx;
48     gpgme_recipients_t recp;
49     char * output;
50     char * opaque;
51     int cancel;
52     HWND dlg;
53     passphrase_cb_s pass_cb;
54     int init_cb;
55     int cache_cb;
56     gpgme_sigmode_t sigmode;
57     unsigned int implist_revcert:1;
58     unsigned int wipe:1;
59     unsigned int req_signer:1;
60     };
61     typedef struct fm_state_s * fm_state_t;
62    
63     char * fm_quote_file (const char * name);
64     int fm_parse_command_line (char * cmdl);
65     int fm_parse_files (listview_ctrl_t lv, HWND dlg, int cmd);
66     int fm_state_new (fm_state_t *ctx);
67     void fm_state_release (fm_state_t ctx);
68     int fm_build (listview_ctrl_t *lv, HWND ctrl);
69     void fm_delete (listview_ctrl_t lv);
70     int fm_add_dropped_files (listview_ctrl_t lv, HDROP dd_files);
71     int fm_add_opened_files (listview_ctrl_t lv, HWND dlg);
72     const char* fm_get_file_type (const char *fname);
73     void fm_remove_crit_file_attrs (const char *fname, int force);
74     int fm_get_current_pos (listview_ctrl_t lv);
75     int fm_sort (listview_ctrl_t lv, int sortby);
76     void fm_print_md (listview_ctrl_t lv, HWND dlg, int mdalgo);
77     int fm_assume_onepass_sig (const char * fname);
78     int fm_check_file_type (listview_ctrl_t lv, int pos, int fm_cmd);
79     int fm_send_file (listview_ctrl_t lv);
80    
81     /*-- commands --*/
82     int fm_encrypt (fm_state_t c, const char * name, int sign);
83     int fm_sym_encrypt (fm_state_t c, const char * name);
84     int fm_decrypt (fm_state_t c, const char * name);
85     int fm_sign (fm_state_t c, const char * name);
86     int fm_verify (fm_state_t c, int detached, const char * name);
87     int fm_import(fm_state_t c, const char *name);
88     int fm_wipe (const char * name);
89     int fm_list (const char * name, HWND dlg);
90     int fm_encrypt_directory (fm_state_t c, const char * name);
91     int fm_verify_pasted_detsig (listview_ctrl_t lv, HWND dlg);
92     int fm_assume_onepass_sig (const char * fname);
93    
94     #endif /* WPT_FILE_MANAGER_H */

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26