00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef CERTIFICATEINFOWIDGETIMPL_H
00034 #define CERTIFICATEINFOWIDGETIMPL_H
00035
00036 #include "certificateinfowidget.h"
00037
00038 #include <gpgmepp/key.h>
00039
00040 #include <tqvaluelist.h>
00041
00042 class TDEProcess;
00043 class TQListViewItem;
00044
00045 namespace GpgME {
00046 class KeyListResult;
00047 }
00048
00049 class CertificateInfoWidgetImpl : public CertificateInfoWidget {
00050 Q_OBJECT
00051
00052 public:
00053 CertificateInfoWidgetImpl( const GpgME::Key & key, bool external,
00054 TQWidget * parent=0, const char * name=0);
00055
00056 void setKey( const GpgME::Key & key );
00057
00058 signals:
00059 void requestCertificateDownload( const TQString & fingerprint, const TQString& displayName );
00060
00061 private slots:
00062 void slotShowInfo( TQListViewItem* );
00063 void slotShowCertPathDetails( TQListViewItem* );
00064 void slotImportCertificate();
00065 void slotCertificateChainListingResult( const GpgME::KeyListResult & res );
00066 void slotNextKey( const GpgME::Key & key );
00067 void slotKeyExistanceCheckNextCandidate( const GpgME::Key & key );
00068 void slotKeyExistanceCheckFinished();
00069 void slotCollectStdout(TDEProcess *, char *, int);
00070 void slotCollectStderr(TDEProcess *, char *, int);
00071 void slotDumpProcessExited(TDEProcess*);
00072
00073 private:
00074 void startCertificateChainListing();
00075 void startCertificateDump();
00076 void startKeyExistanceCheck();
00077 void updateChainView();
00078
00079 private:
00080 TQCString mDumpOutput;
00081 TQCString mDumpError;
00082 TQValueList<GpgME::Key> mChain;
00083 bool mExternal;
00084 bool mFoundIssuer;
00085 bool mHaveKeyLocally;
00086 };
00087
00088 #endif // CERTIFICATEINFOWIDGETIMPL_H