cpp: Allow retrieving import result of key listing with locate mode
* lang/cpp/src/context_p.h (enum Context::Private::Operation): Add value KeyListWithImport. * lang/cpp/src/context.cpp (Context::startKeyListing, Context::nextKey): Set lastop to KeyListWithImport if keylist mode includes Locate.
Adding Import to lastop for keylist operations that perform a locate
allows retrieving the import result with Context::importResult.
- GnuPG-bug-id: T5951