33#ifndef __KLEO_HIERARCHICALKEYLISTJOB_H__
34#define __KLEO_HIERARCHICALKEYLISTJOB_H__
36#include <kleo/keylistjob.h>
37#include <kleo/cryptobackend.h>
40#include <gpgmepp/keylistresult.h>
43#include <tqguardedptr.h>
71 class TDE_EXPORT HierarchicalKeyListJob : public KeyListJob {
75 HierarchicalKeyListJob( const CryptoBackend::Protocol * protocol,
76 bool remote= false, bool includeSigs= false, bool validating= false );
77 ~HierarchicalKeyListJob();
88 GpgME::Error start( const TQStringList & patterns, bool secretOnly= false );
90 GpgME::KeyListResult exec( const TQStringList & patterns, bool secretOnly,
91 std::vector<GpgME::Key> & keys );
94 void slotResult( const GpgME::KeyListResult & );
95 void slotNextKey( const GpgME::Key & key );
100 GpgME::Error startAJob();
103 const CryptoBackend::Protocol * const mProtocol;
105 const bool mIncludeSigs;
106 const bool mValidating;
108 std::set<TQString> mSentSet;
109 std::set<TQString> mScheduledSet;
110 std::set<TQString> mNextSet;
111 GpgME::KeyListResult mIntermediateResult;
112 TQGuardedPtr<KeyListJob> mJob;
GpgME::Error start(const TQStringList &patterns, bool secretOnly=false) Starts the keylist operation.
An abstract base class for asynchronous key listers.
|