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

Diff of /trunk/Include/wptContext.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2 by twoaday, Mon Jan 31 11:02:21 2005 UTC revision 25 by twoaday, Wed Oct 12 10:04:26 2005 UTC
# Line 21  Line 21 
21  #ifndef WPT_CONTEXT_H  #ifndef WPT_CONTEXT_H
22  #define WPT_CONTEXT_H  #define WPT_CONTEXT_H
23    
24    /* Window subclassing context. */
25  struct subclass_s {  struct subclass_s {
26      HWND    dlg;      HWND    dlg;
27      WNDPROC old;      WNDPROC old;        /* old window procedure */
28      WNDPROC current;      WNDPROC current;    /* the subclass window procedure */
29      void * opaque;      void * opaque;
30  };  };
31    
32    /* Container for a gpgme key. */
33  struct winpt_key_s {  struct winpt_key_s {
34      const char * uid;      const char  *uid;               /* pointer to the first uid */
35      const char * keyid;      const char  *keyid;             /* pointer to the first keyid */
36      unsigned int key_pair:1;      unsigned int key_pair:1;        /* is a complete key. */
37      unsigned int is_protected:1;      unsigned int is_protected:1;    /* secret key is protected. */
38        unsigned int update:1;          /* 1=need to reload key. */
39        unsigned int is_v3:1;           /* key is version 3 (RSA/MD5) */
40      unsigned int flags;      unsigned int flags;
41        gpgme_key_t  ctx;               /* if not NULL, the actualy gpgme key */
42        struct keycache_s *ext;         /* extended key attributes or NULL. */
43        /* Callback structure if a listview needs to be updated. */
44      struct {      struct {
45          listview_ctrl_t ctl;          listview_ctrl_t ctl;        /* the listview control. */
46          int idx;          int idx;                    /* selected index. */
47          int new_val;          int new_val;                /* new value */
48      } callback;      } callback;
49  };  };
50  typedef struct winpt_key_s * winpt_key_t;  typedef struct winpt_key_s * winpt_key_t;
51    
52    /* Text input context for detached sigs. */
53  struct text_input_s {  struct text_input_s {
54      char * data;      char  *data;    /* input data. */
55      size_t length;      size_t length;  /* length of input data. */
56      int    type;      int    type;    /* type of data (0=text data for signature) */
57  };  };
58    
59    /* Date context for the date selection dialog. */
60  struct date_s {  struct date_s {
61      int          cancel;      int         cancel;     /* cancel was hit. */
62      const char * text;      const char *text;       /* text used as the title. */
63      SYSTEMTIME   st;      SYSTEMTIME  st;         /* selected time by the user. */
64  };  };
65    
66  struct md_file_s {  struct md_file_s {
# Line 60  struct md_file_s { Line 69  struct md_file_s {
69  };  };
70    
71  struct secdel_confirm_s {  struct secdel_confirm_s {
72      unsigned int       yes:1;      unsigned int       yes:1;   /* if yes=1 user confirmed delete. */
73      gpgme_recipients_t rset;      listview_ctrl_t    lv_files;/* listview control with the files to delete. */
74  };  };
75    
 struct import_status_s {  
     int          import_res[14];  
     unsigned int rev_cert:1;  
 };  
76    
77    /* Progress filter context. */
78  struct progress_filter_s {  struct progress_filter_s {
79        HWND     hwnd;
80      HWND     dlg;      HWND     dlg;
81      HANDLE   thread_hd;      HANDLE   thread_hd;
82      int      error;      int      error;
83      const char * what;      const char *what;
84      int      type;      int      type;
85      unsigned curr;      unsigned curr;
86      unsigned total;      unsigned total;
87  };  };
88    
89    /* URL context. */
90  struct http_file_s {  struct URL_ctx_s {
91      char url[256];      const char *title;      /* title for the dialog. */
92        const char *desc;       /* description of what to do. */
93        char url[256];          /* the selected URL. */
94      char proxy[64];      char proxy[64];
95      int  port;      int  port;              /* the port to use. */
96      int  cancel;      int  cancel;            /* user cancelled operation. */
97        int  check;             /* use strict URL checking. */
98    };
99    
100    struct first_start_s {
101        int choice;
102  };  };
103    
104  struct key_wizard_s {  /* Key generation context */
105      int interactive;  struct genkey_s {
106        gpgme_key_t  newkey;        /* handle to the new key */
107        int          interactive;
108        unsigned int first_start:1;
109  };  };
110    
 #endif /* WPT_CONTEXT_H */  
111    #endif /* WPT_CONTEXT_H */

Legend:
Removed from v.2  
changed lines
  Added in v.25

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26