Home GnuPG
Diffusion GpgOL 0499861a0dda

Start implementation of ribbon base sigstate
0499861a0ddaUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Start implementation of ribbon base sigstate

* src/gpgoladdin.cpp (GpgolRibbonExtender::GetIDsOfNames): Register
new names.
(GpgolRibbonExtender::Invoke): Handle new names.
(GetCustomUI_MIME): Reactivate Read code. Use new callbacks.
(Mail::Mail): Do not cache sig validity.
(Mail::get_valid_sig): Get Sig / UID pair of the valid sig.
(Mail::is_valid_sig): Use get_valid_sig.
(Mail::is_signed): Fix use of temporary parser object.
(Mail::set_uid): Set uid to be identifyable from callbacks.
(Mail::get_signature_status): Format string for supertip.
* src/mail.h: Update accordingly.
* src/ribbon-callbacks.cpp (get_crypt_status): Removed.
(get_mail_from_control): New. Helper to resolve the Mail object.
(MY_MAIL_GETTER): Helper macro for common task.
(get_is_signed, get_sig_label, get_sig_ttip, get_sig_stip): New
callbacks.
(launch_cert_details): Dummy.

This shows the signature state (currently only for valid signatures)
in the GpgOL ribbon when reading mails. The UID is used to
identify the according Mail object that belongs to a read inspector.

Details

Provenance
aheineckeAuthored on Oct 14 2016, 2:42 PM
Parents
rO04be440d4d1a: Add UID to mails / mail objects
Branches
Unknown
Tags
Unknown