• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

libkleo

  • sources
  • kde-4.12
  • kdepim
  • libkleo
  • kleo
job.cpp
Go to the documentation of this file.
1 /*
2  job.cpp
3 
4  This file is part of libkleopatra, the KDE keymanagement library
5  Copyright (c) 2004,2005 Klarälvdalens Datakonsult AB
6 
7  Libkleopatra is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of the
10  License, or (at your option) any later version.
11 
12  Libkleopatra is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 
21  In addition, as a special exception, the copyright holders give
22  permission to link the code of this program with any edition of
23  the Qt library by Trolltech AS, Norway (or with modified versions
24  of Qt that use the same license as Qt), and distribute linked
25  combinations including the two. You must obey the GNU General
26  Public License in all respects for all of the code used other than
27  Qt. If you modify this file, you may extend this exception to
28  your version of the file, but you are not obligated to do so. If
29  you do not wish to do so, delete this exception statement from
30  your version.
31 */
32 
33 
34 #include "job.h"
35 
36 #include "keylistjob.h"
37 #include "listallkeysjob.h"
38 #include "encryptjob.h"
39 #include "decryptjob.h"
40 #include "decryptverifyjob.h"
41 #include "signjob.h"
42 #include "signkeyjob.h"
43 #include "signencryptjob.h"
44 #include "verifydetachedjob.h"
45 #include "verifyopaquejob.h"
46 #include "keygenerationjob.h"
47 #include "importjob.h"
48 #include "importfromkeyserverjob.h"
49 #include "exportjob.h"
50 #include "changeexpiryjob.h"
51 #include "changeownertrustjob.h"
52 #include "changepasswdjob.h"
53 #include "downloadjob.h"
54 #include "deletejob.h"
55 #include "refreshkeysjob.h"
56 #include "adduseridjob.h"
57 #include "specialjob.h"
58 
59 #include <gpgme++/error.h>
60 
61 #include <QCoreApplication>
62 #include <kdebug.h>
63 
64 #include <gpg-error.h>
65 
66 Kleo::Job::Job( QObject * parent )
67  : QObject( parent )
68 {
69  if ( QCoreApplication * app = QCoreApplication::instance() )
70  connect( app, SIGNAL(aboutToQuit()), SLOT(slotCancel()) );
71 }
72 
73 Kleo::Job::~Job() {
74 
75 }
76 
77 void Kleo::Job::showErrorDialog( QWidget *, const QString & ) const {
78  kDebug(5150) <<"Kleo::Job::showErrorDialog() should be reimplemented in Kleo::Job subclasses!";
79 }
80 
81 QString Kleo::Job::auditLogAsHtml() const {
82  kDebug(5150) << "Kleo::Job::auditLogAsHtml() should be reimplemented in Kleo::Job subclasses!" << endl;
83  return QString();
84 }
85 
86 GpgME::Error Kleo::Job::auditLogError() const {
87  kDebug(5150) << "Kleo::Job::auditLogError() should be reimplemented in Kleo::Job subclasses!" << endl;
88  return GpgME::Error::fromCode( GPG_ERR_NOT_IMPLEMENTED );
89 }
90 
91 bool Kleo::Job::isAuditLogSupported() const {
92  return auditLogError().code() != GPG_ERR_NOT_IMPLEMENTED ;
93 }
94 
95 #define make_job_subclass_ext(x,y) \
96  Kleo::x::x( QObject * parent ) : y( parent ) {} \
97  Kleo::x::~x() {}
98 
99 #define make_job_subclass(x) make_job_subclass_ext(x,Job)
100 
101 make_job_subclass(KeyListJob)
102 make_job_subclass(ListAllKeysJob)
103 make_job_subclass(EncryptJob)
104 make_job_subclass(DecryptJob)
105 make_job_subclass(DecryptVerifyJob)
106 make_job_subclass(SignJob)
107 make_job_subclass(SignEncryptJob)
108 make_job_subclass(SignKeyJob)
109 make_job_subclass(VerifyDetachedJob)
110 make_job_subclass(VerifyOpaqueJob)
111 make_job_subclass(KeyGenerationJob)
112 make_job_subclass(AbstractImportJob)
113 make_job_subclass_ext(ImportJob,AbstractImportJob)
114 make_job_subclass_ext(ImportFromKeyserverJob,AbstractImportJob)
115 make_job_subclass(ExportJob)
116 make_job_subclass(ChangeExpiryJob)
117 make_job_subclass(ChangeOwnerTrustJob)
118 make_job_subclass(ChangePasswdJob)
119 make_job_subclass(DownloadJob)
120 make_job_subclass(DeleteJob)
121 make_job_subclass(RefreshKeysJob)
122 make_job_subclass(AddUserIDJob)
123 make_job_subclass(SpecialJob)
124 
125 #undef make_job_subclass
126 
127 #include "job.moc"
128 
129 #include "keylistjob.moc"
130 #include "listallkeysjob.moc"
131 #include "encryptjob.moc"
132 #include "decryptjob.moc"
133 #include "decryptverifyjob.moc"
134 #include "signjob.moc"
135 #include "signencryptjob.moc"
136 #include "signkeyjob.moc"
137 #include "verifydetachedjob.moc"
138 #include "verifyopaquejob.moc"
139 #include "keygenerationjob.moc"
140 #include "abstractimportjob.moc"
141 #include "importjob.moc"
142 #include "importfromkeyserverjob.moc"
143 #include "exportjob.moc"
144 #include "changeexpiryjob.moc"
145 #include "changeownertrustjob.moc"
146 #include "changepasswdjob.moc"
147 #include "downloadjob.moc"
148 #include "deletejob.moc"
149 #include "refreshkeysjob.moc"
150 #include "adduseridjob.moc"
151 #include "specialjob.moc"
Kleo::Job::~Job
~Job()
Definition: job.cpp:73
signkeyjob.h
QWidget
importjob.h
changepasswdjob.h
make_job_subclass_ext
#define make_job_subclass_ext(x, y)
Definition: job.cpp:95
QString
Kleo::Job::slotCancel
virtual void slotCancel()=0
QObject
signencryptjob.h
adduseridjob.h
exportjob.h
listallkeysjob.h
decryptjob.h
make_job_subclass
#define make_job_subclass(x)
Definition: job.cpp:99
changeexpiryjob.h
changeownertrustjob.h
importfromkeyserverjob.h
verifydetachedjob.h
refreshkeysjob.h
job.h
Kleo::Job::Job
Job(QObject *parent)
Definition: job.cpp:66
Kleo::Job::auditLogAsHtml
virtual QString auditLogAsHtml() const
Definition: job.cpp:81
signjob.h
Kleo::Job::isAuditLogSupported
bool isAuditLogSupported() const
Definition: job.cpp:91
keylistjob.h
deletejob.h
specialjob.h
keygenerationjob.h
decryptverifyjob.h
verifyopaquejob.h
downloadjob.h
Kleo::Job::auditLogError
virtual GpgME::Error auditLogError() const
Definition: job.cpp:86
Kleo::Job::showErrorDialog
virtual void showErrorDialog(QWidget *parent=0, const QString &caption=QString()) const
Definition: job.cpp:77
encryptjob.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:57:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkleo

Skip menu "libkleo"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal