Home GnuPG

Refactor and const IdentityManager.

Description

Refactor and const IdentityManager.

See https://invent.kde.org/pim/kleopatra/-/merge_requests/16#note_427791

As per the comment, mailIdManager has been moved from a class static
variable into a file static function.
This revealed that it is only required to get hold of the identity
associated with a certain mail sender address. Thus the class code using
the IdentityManager has been refactored into the same function and it no
longer returns an IdentityManager, but instead directly returns the
identity requested, or the default identity if a mail address has no
associated identity.

Details

Provenance
Felix Tiede <kde@pc-tiede.de>Authored on Apr 6 2022, 9:48 AM
ikloeckerCommitted on May 16 2022, 7:00 PM
Parents
rKLEOPATRA08e71eeeca7f: Refactored sender address evaluation.
Branches
Unknown
Tags
Unknown