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 CERTIFICATEWIZARDIMPL_H
00034 #define CERTIFICATEWIZARDIMPL_H
00035 #include "certificatewizard.h"
00036
00037 #include <tqcstring.h>
00038 #include <tqvaluevector.h>
00039 #include <tqlineedit.h>
00040 #include <kurl.h>
00041
00042 namespace GpgME {
00043 class KeyGenerationResult;
00044 }
00045 namespace TDEIO {
00046 class Job;
00047 }
00048
00049 class CertificateWizardImpl : public CertificateWizard
00050 {
00051 Q_OBJECT
00052
00053
00054 public:
00055 CertificateWizardImpl( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00056 ~CertificateWizardImpl();
00057
00058 bool sendToCA() const;
00059 TQString caEMailAddress() const;
00060 KURL saveFileUrl() const;
00061
00062 typedef TQPair<TQString, TQLineEdit*> StringLEPair;
00063 typedef TQValueVector< StringLEPair > AttrPairList;
00064
00065 public:
00066 virtual void showPage( TQWidget * page );
00067 virtual void accept();
00068
00069 private slots:
00070 void slotGenerateCertificate();
00071 void slotResult( const GpgME::KeyGenerationResult & res, const TQByteArray & keyData );
00072 void slotSetValuesFromWhoAmI();
00073 void slotEnablePersonalDataPageExit();
00074 void slotURLSelected( const TQString& );
00075
00076 void slotHelpClicked();
00077
00078 void slotUploadResult( TDEIO::Job* );
00079
00080 private:
00081 void createPersonalDataPage();
00082 void sendCertificate( const TQString& email, const TQByteArray& certificateData );
00083
00084 private:
00085 AttrPairList _attrPairList;
00086 TQByteArray _keyData;
00087 };
00088
00089 #endif // CERTIFICATEWIZARDIMPL_H