job.cpp
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 #ifdef HAVE_CONFIG_H
00034 #include <config.h>
00035 #endif
00036
00037 #include "job.h"
00038
00039 #include "keylistjob.h"
00040 #include "encryptjob.h"
00041 #include "decryptjob.h"
00042 #include "decryptverifyjob.h"
00043 #include "signjob.h"
00044 #include "signencryptjob.h"
00045 #include "verifydetachedjob.h"
00046 #include "verifyopaquejob.h"
00047 #include "keygenerationjob.h"
00048 #include "importjob.h"
00049 #include "exportjob.h"
00050 #include "downloadjob.h"
00051 #include "deletejob.h"
00052 #include "refreshkeysjob.h"
00053
00054 #include <qapplication.h>
00055
00056 Kleo::Job::Job( QObject * parent, const char * name )
00057 : QObject( parent, name )
00058 {
00059 if ( qApp )
00060 connect( qApp, SIGNAL(aboutToQuit()), SLOT(slotCancel()) );
00061 }
00062
00063 Kleo::Job::~Job() {
00064
00065 }
00066
00067 void Kleo::Job::showErrorDialog( QWidget *, const QString & ) const {
00068 qDebug( "Kleo::Job::showErrorDialog() should be reimplemented in Kleo::Job subclasses!");
00069 }
00070
00071
00072
00073 #define make_job_subclass(x) \
00074 Kleo::x::x( QObject * parent, const char * name ) : Job( parent, name ) {} \
00075 Kleo::x::~x() {}
00076
00077 make_job_subclass(KeyListJob)
00078 make_job_subclass(EncryptJob)
00079 make_job_subclass(DecryptJob)
00080 make_job_subclass(DecryptVerifyJob)
00081 make_job_subclass(SignJob)
00082 make_job_subclass(SignEncryptJob)
00083 make_job_subclass(VerifyDetachedJob)
00084 make_job_subclass(VerifyOpaqueJob)
00085 make_job_subclass(KeyGenerationJob)
00086 make_job_subclass(ImportJob)
00087 make_job_subclass(ExportJob)
00088 make_job_subclass(DownloadJob)
00089 make_job_subclass(DeleteJob)
00090 make_job_subclass(RefreshKeysJob)
00091
00092 #undef make_job_subclass
00093
00094 #include "job.moc"
00095
00096 #include "keylistjob.moc"
00097 #include "encryptjob.moc"
00098 #include "decryptjob.moc"
00099 #include "decryptverifyjob.moc"
00100 #include "signjob.moc"
00101 #include "signencryptjob.moc"
00102 #include "verifydetachedjob.moc"
00103 #include "verifyopaquejob.moc"
00104 #include "keygenerationjob.moc"
00105 #include "importjob.moc"
00106 #include "exportjob.moc"
00107 #include "downloadjob.moc"
00108 #include "deletejob.moc"
00109 #include "refreshkeysjob.moc"
This file is part of the documentation for certmanager/lib Library Version 3.3.2.