rem: void SigningFormatPreferenceCounter::operator()( const Kleo::KeyResolver::Item & item ) { CASE(InlineOpenPGP); CASE(OpenPGPMIME); CASE(SMIME); CASE(SMIMEOpaque);
add: void EncryptionFormatPreferenceCounter::operator()( const Kleo::KeyResolver::Item & item ) { if ( item.format & (Kleo::InlineOpenPGPFormat|Kleo::OpenPGPMIMEFormat) && std::find_if( item.keys.begin(), item.keys.end(), ValidTrustedOpenPGPEncryptionKey ) != item.keys.end() ) { CASE(OpenPGPMIME); CASE(InlineOpenPGP); } if ( item.format & (Kleo::SMIMEFormat|Kleo::SMIMEOpaqueFormat) && std::find_if( item.keys.begin(), item.keys.end(), ValidTrustedSMIMEEncryptionKey ) != item.keys.end() ) { CASE(SMIME); CASE(SMIMEOpaque); }
context:   void SigningFormatPreferenceCounter::operator()( const Kleo::KeyResolver::Item & item ) {    CASE(InlineOpenPGP);    CASE(OpenPGPMIME);    CASE(SMIME);    CASE(SMIMEOpaque);    ++mTotal;  }