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"
50#include "downloadjob.h"
52#include "refreshkeysjob.h"
53#include "specialjob.h"
55#include <gpgmepp/context.h>
57#include <tqapplication.h>
62Kleo::Job::Job( TQObject * parent,
const char * name )
63 : TQObject( parent, name )
66 connect( tqApp, TQ_SIGNAL(aboutToQuit()), TQ_SLOT(slotCancel()) );
73void Kleo::Job::showErrorDialog( TQWidget *,
const TQString & )
const {
74 kdDebug() <<
"Kleo::Job::showErrorDialog() should be reimplemented in Kleo::Job subclasses!" << endl;
77TQString Kleo::Job::auditLogAsHtml()
const {
78 kdDebug() <<
"Kleo::Job::auditLogAsHtml() should be reimplemented in Kleo::Job subclasses!" << endl;
82GpgME::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 ) );
87bool 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 ) {} \
96make_job_subclass(KeyListJob)
97make_job_subclass(EncryptJob)
98make_job_subclass(DecryptJob)
99make_job_subclass(DecryptVerifyJob)
100make_job_subclass(SignJob)
101make_job_subclass(SignEncryptJob)
102make_job_subclass(VerifyDetachedJob)
103make_job_subclass(VerifyOpaqueJob)
104make_job_subclass(KeyGenerationJob)
105make_job_subclass(ImportJob)
106make_job_subclass(ExportJob)
107make_job_subclass(DownloadJob)
108make_job_subclass(DeleteJob)
109make_job_subclass(RefreshKeysJob)
110make_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"