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

Annotation of /trunk/Include/wptErrors.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (hide annotations)
Sun Feb 6 11:11:40 2005 UTC (20 years ago) by twoaday
File MIME type: text/plain
File size: 2988 byte(s)
2005-02-02  Timo Schulz  <twoaday@freakmail.de>
                                                                                                                            
        * wptPassphraseDlg.cpp (passwd_dlg_proc): use center_window2, otherwise
        it is invisible.
        * wptPassphraseCB.cpp (passphrase_callback_proc): Do not cache symmetric
        passphrases.
        * Enable the progress dialog for symmetric encryption.
        * wptFileManager.cpp (fm_check_file_type): Also check for 'SYMKEYENC' in
        FM_ENCRYPT mode.
        * WinPT.cpp (WinMain): SETUP_EXISTING implemented.
        * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Reset 'Locale directory' when
        no value is entered.
                                                                                                                            
2005-02-04  Timo Schulz  <twoaday@freakmail.de>
                                                                                                                            
        * wptProgressDlg.cpp (progress_cb_thread): Set root window if available.
        If the progress window survives by accident, it will be closed when the
        File Manager (root window) is closed.
                                                                                                                            


1 twoaday 2 /* wptErrors.h - Errors headerfile
2 twoaday 4 * Copyright (C) 2000-2005 Timo Schulz
3 twoaday 2 *
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_ERRORS_H
22     #define WPT_ERRORS_H
23    
24     #define DEBUG(MSG) debug (MSG, __FILE__, __LINE__)
25     #define DEBUG_F(MSG) debug_f (MSG, __FILE__, __LINE__)
26    
27    
28     enum {
29     WPTERR_GENERAL = 1,
30     WPTERR_FILE_OPEN = 2,
31     WPTERR_FILE_CREAT = 3,
32     WPTERR_FILE_READ = 4,
33     WPTERR_FILE_WRITE = 5,
34     WPTERR_FILE_CLOSE = 6,
35     WPTERR_FILE_EXIST = 7,
36     WPTERR_FILE_REMOVE = 8,
37     WPTERR_CLIP_OPEN = 10,
38     WPTERR_CLIP_CLOSE = 11,
39     WPTERR_CLIP_EMPTY = 12,
40     WPTERR_CLIP_SET = 13,
41     WPTERR_CLIP_GET = 14,
42     WPTERR_CLIP_ISEMPTY = 15,
43     WPTERR_CLIP = 16,
44     WPTERR_CLIP_SECURED = 17,
45     WPTERR_WINSOCK_INIT = 18,
46     WPTERR_WINSOCK_RESOLVE= 19,
47     WPTERR_WINSOCK_SOCKET = 20,
48     WPTERR_WINSOCK_CONNECT= 21,
49     WPTERR_WINSOCK_SENDKEY= 22,
50     WPTERR_WINSOCK_RECVKEY= 23,
51     WPTERR_WINSOCK_TIMEOUT= 50,
52     WPTERR_KEYSERVER_NOTFOUND= 24,
53     WPTERR_REGISTRY = 26,
54     WPTERR_HOTKEY = 28,
55     WPTERR_DIR_OPEN = 33,
56     WPTERR_DIR_CREAT = 34,
57     WPTERR_CURR_WND = 35,
58     WPTERR_CONFIG_FILE = 36,
59     WPTERR_GPG_EXEFILE = 51,
60     WPTERR_GPG_KEYRINGS = 52,
61     WPTERR_GPG_OPT_KEYRINGS= 53,
62     WPTERR_NOCARD = 100,
63     WPTERR_NOREADER = 101,
64     WPTERR_NOPGPCARD = 102,
65     WPTERR_CDISK_LOCK = 201,
66     WPTERR_CDISK_MOUNT = 202,
67     WPTERR_CDISK_UMOUNT = 203,
68     WPTERR_CDISK_OPEN = 204,
69     WPTERR_CDISK_BUSY = 205,
70     WPTERR_CDISK_QUERY = 206,
71     };
72    
73     const char * winpt_strerror (int errid);
74     void winpt_errmsg (const char * name, int is_file);
75     void winpt_debug_msg (void);
76     void debug_box (const char * msg, const char * file, int line);
77     void debug_f (const char * msg, const char * file, int line);
78     void log_f (const char * format, ...);
79     int log_box (const char * title, int style, const char * format, ...);
80    
81     /*-- wptW32API.cpp --*/
82     int msg_box (HWND hwnd, const char * text, const char * title, int mode);
83     int show_msg (HWND hWnd, int millis, LPCTSTR string);
84     #define status_box(hwnd, text, title) msg_box (hwnd, text, title, MB_OK)
85    
86     #endif /* WPT_ERRORS_H */

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26