rem: void SigningFormatPreferenceCounter::operator()( const Kleo::KeyResolver::Item & item ) { CASE(InlineOpenPGP); CASE(OpenPGPMIME); CASE(SMIME); CASE(SMIMEOpaque); ++mTotal; };
add: bool operator()( const GpgME::Key & key ) const { return ( isOpenPGP( format ) && key.protocol() != GpgME::Context::OpenPGP ) || ( isSMIME( format )   && key.protocol() != GpgME::Context::CMS ); }
context:   void SigningFormatPreferenceCounter::operator()( const Kleo::KeyResolver::Item & item ) {    CASE(InlineOpenPGP);    CASE(OpenPGPMIME);    CASE(SMIME);    CASE(SMIMEOpaque);    ++mTotal;  };