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

Diff of /trunk/Include/wptKeyEdit.h

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

revision 23 by twoaday, Fri Sep 30 10:10:16 2005 UTC revision 24 by twoaday, Sat Oct 8 10:43:08 2005 UTC
# Line 55  enum { Line 55  enum {
55      GPG_REVOKE_NOUSED     = 3      GPG_REVOKE_NOUSED     = 3
56  };  };
57    
58    
59    /* Possible results for the operation. */
60    enum {
61        GPG_EDITRES_ALREADY_SIGNED = 1
62    };
63    
64  /* Contain information about designated revokers. */  /* Contain information about designated revokers. */
65  struct gpg_desig_rev_s {  struct gpg_desig_rev_s {
66      struct gpg_desig_rev_s *next;      struct gpg_desig_rev_s *next;
# Line 86  class GpgKeyEdit { Line 92  class GpgKeyEdit {
92  private:  private:
93      gpgme_key_t key;      gpgme_key_t key;
94      gpgme_ctx_t ctx;      gpgme_ctx_t ctx;
95        int resval;
96    
97  public:  public:
98      int type;      int type;
# Line 114  public: Line 121  public:
121    
122      bool isValid (void);      bool isValid (void);
123      gpgme_key_t getKey (void);      gpgme_key_t getKey (void);
124        void reset (void);
125    
126      void setPassphrase (const char *pass);      void setPassphrase (const char *pass);
127      void setKey (gpgme_key_t key);      void setKey (gpgme_key_t key);
# Line 121  public: Line 129  public:
129      void setLocalUser (gpgme_key_t locusr);      void setLocalUser (gpgme_key_t locusr);
130      void setCallback (gpgme_progress_cb_t cb, void *cb_value);      void setCallback (gpgme_progress_cb_t cb, void *cb_value);
131    
132        void setResultValue (int val);
133        int  getResultValue (void);
134    
135      gpgme_error_t signKey (int mode, int sig_class, const char *exp_date);      gpgme_error_t signKey (int mode, int sig_class, const char *exp_date);
136      gpgme_error_t setTrust (gpgme_validity_t trust);      gpgme_error_t setTrust (gpgme_validity_t trust);
137      gpgme_error_t addUserid (const char *name, const char *cmt, const char *email);      gpgme_error_t addUserid (const char *name, const char *cmt, const char *email);
# Line 139  public: Line 150  public:
150      gpgme_error_t enable (void);      gpgme_error_t enable (void);
151      gpgme_error_t disable (void);      gpgme_error_t disable (void);
152      gpgme_error_t setUseridPreferences (int uid_index, const char *new_prefs);      gpgme_error_t setUseridPreferences (int uid_index, const char *new_prefs);
153      gpgme_error_t deleteUseridSignature (int uid_index, int sig_index);      gpgme_error_t delUseridSignature (int uid_index, int sig_index);
154      gpgme_error_t setPreferredKeyserver (int uid_index, const char *url);      gpgme_error_t setPreferredKeyserver (int uid_index, const char *url);
155    
156      gpgme_error_t getUseridInfo (gpg_uid_info_t *r_uinf);      gpgme_error_t getUseridInfo (gpg_uid_info_t *r_uinf);

Legend:
Removed from v.23  
changed lines
  Added in v.24

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26