certmanager/lib Library API Documentation

job.cpp

00001 /*
00002     job.cpp
00003 
00004     This file is part of libkleopatra, the KDE keymanagement library
00005     Copyright (c) 2004,2005 Klarälvdalens Datakonsult AB
00006 
00007     Libkleopatra is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU General Public License as
00009     published by the Free Software Foundation; either version 2 of the
00010     License, or (at your option) any later version.
00011 
00012     Libkleopatra is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015     General Public License for more details.
00016 
00017     You should have received a copy of the GNU General Public License
00018     along with this program; if not, write to the Free Software
00019     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 
00021     In addition, as a special exception, the copyright holders give
00022     permission to link the code of this program with any edition of
00023     the Qt library by Trolltech AS, Norway (or with modified versions
00024     of Qt that use the same license as Qt), and distribute linked
00025     combinations including the two.  You must obey the GNU General
00026     Public License in all respects for all of the code used other than
00027     Qt.  If you modify this file, you may extend this exception to
00028     your version of the file, but you are not obligated to do so.  If
00029     you do not wish to do so, delete this exception statement from
00030     your version.
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 #include "specialjob.h"
00054 
00055 #include <qapplication.h>
00056 
00057 Kleo::Job::Job( QObject * parent, const char * name )
00058   : QObject( parent, name )
00059 {
00060   if ( qApp )
00061     connect( qApp, SIGNAL(aboutToQuit()), SLOT(slotCancel()) );
00062 }
00063 
00064 Kleo::Job::~Job() {
00065 
00066 }
00067 
00068 void Kleo::Job::showErrorDialog( QWidget *, const QString & ) const {
00069   qDebug( "Kleo::Job::showErrorDialog() should be reimplemented in Kleo::Job subclasses!");
00070 }
00071 
00072 
00073 
00074 #define make_job_subclass(x) \
00075   Kleo::x::x( QObject * parent, const char * name ) : Job( parent, name ) {} \
00076   Kleo::x::~x() {}
00077 
00078 make_job_subclass(KeyListJob)
00079 make_job_subclass(EncryptJob)
00080 make_job_subclass(DecryptJob)
00081 make_job_subclass(DecryptVerifyJob)
00082 make_job_subclass(SignJob)
00083 make_job_subclass(SignEncryptJob)
00084 make_job_subclass(VerifyDetachedJob)
00085 make_job_subclass(VerifyOpaqueJob)
00086 make_job_subclass(KeyGenerationJob)
00087 make_job_subclass(ImportJob)
00088 make_job_subclass(ExportJob)
00089 make_job_subclass(DownloadJob)
00090 make_job_subclass(DeleteJob)
00091 make_job_subclass(RefreshKeysJob)
00092 make_job_subclass(SpecialJob)
00093 
00094 #undef make_job_subclass
00095 
00096 #include "job.moc"
00097 
00098 #include "keylistjob.moc"
00099 #include "encryptjob.moc"
00100 #include "decryptjob.moc"
00101 #include "decryptverifyjob.moc"
00102 #include "signjob.moc"
00103 #include "signencryptjob.moc"
00104 #include "verifydetachedjob.moc"
00105 #include "verifyopaquejob.moc"
00106 #include "keygenerationjob.moc"
00107 #include "importjob.moc"
00108 #include "exportjob.moc"
00109 #include "downloadjob.moc"
00110 #include "deletejob.moc"
00111 #include "refreshkeysjob.moc"
00112 #include "specialjob.moc"
KDE Logo
This file is part of the documentation for certmanager/lib Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 25 11:18:19 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003