39 #include "keylistjob.h"
40 #include "encryptjob.h"
41 #include "decryptjob.h"
42 #include "decryptverifyjob.h"
44 #include "signencryptjob.h"
45 #include "verifydetachedjob.h"
46 #include "verifyopaquejob.h"
47 #include "keygenerationjob.h"
48 #include "importjob.h"
49 #include "exportjob.h"
50 #include "downloadjob.h"
51 #include "deletejob.h"
52 #include "refreshkeysjob.h"
53 #include "specialjob.h"
55 #include <gpgmepp/context.h>
57 #include <tqapplication.h>
60 #include <gpg-error.h>
62 Kleo::Job::Job( TQObject * parent,
const char * name )
63 : TQObject( parent, name )
66 connect( tqApp, TQ_SIGNAL(aboutToQuit()), TQ_SLOT(slotCancel()) );
73 void Kleo::Job::showErrorDialog( TQWidget *,
const TQString & )
const {
74 kdDebug() <<
"Kleo::Job::showErrorDialog() should be reimplemented in Kleo::Job subclasses!" << endl;
77 TQString Kleo::Job::auditLogAsHtml()
const {
78 kdDebug() <<
"Kleo::Job::auditLogAsHtml() should be reimplemented in Kleo::Job subclasses!" << endl;
82 GpgME::Error Kleo::Job::auditLogError()
const {
83 kdDebug() <<
"Kleo::Job::auditLogError() should be reimplemented in Kleo::Job subclasses!" << endl;
84 return GpgME::Error( gpg_error( GPG_ERR_NOT_IMPLEMENTED ) );
87 bool Kleo::Job::isAuditLogSupported()
const {
88 const GpgME::Error err = auditLogError();
89 return err.code() != GPG_ERR_NOT_IMPLEMENTED ;
92 #define make_job_subclass(x) \
93 Kleo::x::x( TQObject * parent, const char * name ) : Job( parent, name ) {} \
96 make_job_subclass(KeyListJob)
97 make_job_subclass(EncryptJob)
98 make_job_subclass(DecryptJob)
99 make_job_subclass(DecryptVerifyJob)
100 make_job_subclass(SignJob)
101 make_job_subclass(SignEncryptJob)
102 make_job_subclass(VerifyDetachedJob)
103 make_job_subclass(VerifyOpaqueJob)
104 make_job_subclass(KeyGenerationJob)
105 make_job_subclass(ImportJob)
106 make_job_subclass(ExportJob)
107 make_job_subclass(DownloadJob)
108 make_job_subclass(DeleteJob)
109 make_job_subclass(RefreshKeysJob)
110 make_job_subclass(SpecialJob)
112 #undef make_job_subclass
116 #include "keylistjob.moc"
117 #include "encryptjob.moc"
118 #include "decryptjob.moc"
119 #include "decryptverifyjob.moc"
120 #include "signjob.moc"
121 #include "signencryptjob.moc"
122 #include "verifydetachedjob.moc"
123 #include "verifyopaquejob.moc"
124 #include "keygenerationjob.moc"
125 #include "importjob.moc"
126 #include "exportjob.moc"
127 #include "downloadjob.moc"
128 #include "deletejob.moc"
129 #include "refreshkeysjob.moc"
130 #include "specialjob.moc"