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

kgpg

  • sources
  • kde-4.14
  • kdeutils
  • kgpg
  • transactions
kgpggeneraterevoke.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010,2012,2013 Rolf Eike Beer <kde@opensource.sf-tec.de>
3  */
4 
5 /***************************************************************************
6  * *
7  * This program is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation; either version 2 of the License, or *
10  * (at your option) any later version. *
11  * *
12  ***************************************************************************/
13 
14 #ifndef KGPGGENERATEREVOKE_H
15 #define KGPGGENERATEREVOKE_H
16 
17 #include "kgpgtransaction.h"
18 
19 #include "core/kgpgkey.h"
20 
21 #include <KUrl>
22 #include <QObject>
23 
24 class QString;
25 
29 class KGpgGenerateRevoke: public KGpgTransaction {
30  Q_OBJECT
31 
32  Q_DISABLE_COPY(KGpgGenerateRevoke)
33  KGpgGenerateRevoke(); // = delete C++0x
34 public:
43  KGpgGenerateRevoke(QObject *parent, const QString &keyID, const KUrl &revokeUrl, const int reason, const QString &description);
44  virtual ~KGpgGenerateRevoke();
45 
49  const QString &getOutput() const;
50 
51 signals:
52  void revokeCertificate(const QString &cert);
53 
54 protected:
55  virtual bool preStart();
56  virtual bool nextLine(const QString &line);
57  virtual ts_boolanswer boolQuestion(const QString &line);
58  virtual void finish();
59  virtual bool passphraseReceived();
60  virtual ts_boolanswer confirmOverwrite (KUrl &currentFile);
61 
62 private:
63  QString m_keyid;
64  KUrl m_revUrl;
65  int m_reason;
66  QString m_description;
67  QString m_output;
68 };
69 
70 #endif // KGPGGENERATEREVOKE_H
kgpgtransaction.h
kgpgkey.h
KGpgGenerateRevoke::~KGpgGenerateRevoke
virtual ~KGpgGenerateRevoke()
Definition: kgpggeneraterevoke.cpp:39
KGpgGenerateRevoke::confirmOverwrite
virtual ts_boolanswer confirmOverwrite(KUrl &currentFile)
called when GnuPG asks for confirmation for overwriting a file
Definition: kgpggeneraterevoke.cpp:114
KGpgGenerateRevoke
generate a revokation certificate
Definition: kgpggeneraterevoke.h:29
QObject
KGpgGenerateRevoke::nextLine
virtual bool nextLine(const QString &line)
Called for every line the gpg process writes.
Definition: kgpggeneraterevoke.cpp:54
QString
KGpgTransaction::ts_boolanswer
ts_boolanswer
result codes for GnuPG boolean questions
Definition: kgpgtransaction.h:73
KGpgGenerateRevoke::finish
virtual void finish()
Called when the gpg process finishes.
Definition: kgpggeneraterevoke.cpp:91
KGpgGenerateRevoke::getOutput
const QString & getOutput() const
returns the revokation certificate
Definition: kgpggeneraterevoke.cpp:121
KGpgGenerateRevoke::passphraseReceived
virtual bool passphraseReceived()
called when GnuPG accepted the passphrase
Definition: kgpggeneraterevoke.cpp:106
description
static const char description[]
Definition: main.cpp:23
KGpgTransaction
Process one GnuPG operation.
Definition: kgpgtransaction.h:44
KGpgGenerateRevoke::boolQuestion
virtual ts_boolanswer boolQuestion(const QString &line)
Called for every boolean question GnuPG answers.
Definition: kgpggeneraterevoke.cpp:79
KGpgGenerateRevoke::revokeCertificate
void revokeCertificate(const QString &cert)
QObject::parent
QObject * parent() const
KGpgGenerateRevoke::preStart
virtual bool preStart()
Called before the gpg process is started.
Definition: kgpggeneraterevoke.cpp:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kgpg

Skip menu "kgpg"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • sweeper

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