• 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
kgpgchangetrust.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008,2009,2012 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 KGPGCHANGETRUST_H
15 #define KGPGCHANGETRUST_H
16 
17 #include "kgpgeditkeytransaction.h"
18 
19 #include "core/kgpgkey.h"
20 
21 #include <gpgme.h>
22 #include <QObject>
23 
27 class KGpgChangeTrust: public KGpgEditKeyTransaction {
28  Q_OBJECT
29 
30  Q_DISABLE_COPY(KGpgChangeTrust)
31 public:
32  KGpgChangeTrust(QObject *parent, const QString &keyid, const gpgme_validity_t trust);
33  virtual ~KGpgChangeTrust();
34 
35  void setTrust(const gpgme_validity_t trust);
36 
37 protected:
38  virtual bool nextLine(const QString &line);
39  virtual ts_boolanswer boolQuestion(const QString &line);
40  virtual bool preStart();
41 
42 private:
43  gpgme_validity_t m_trust;
44 };
45 
46 #endif // KGPGCHANGETRUST_H
KGpgChangeTrust
change the owner trust level of a public key
Definition: kgpgchangetrust.h:27
KGpgEditKeyTransaction
edit a single property of a key
Definition: kgpgeditkeytransaction.h:24
kgpgkey.h
KGpgChangeTrust::preStart
virtual bool preStart()
reset class before next operation starts
Definition: kgpgchangetrust.cpp:27
KGpgChangeTrust::setTrust
void setTrust(const gpgme_validity_t trust)
Definition: kgpgchangetrust.cpp:58
QObject
KGpgChangeTrust::~KGpgChangeTrust
virtual ~KGpgChangeTrust()
Definition: kgpgchangetrust.cpp:22
QString
KGpgTransaction::ts_boolanswer
ts_boolanswer
result codes for GnuPG boolean questions
Definition: kgpgtransaction.h:73
KGpgChangeTrust::KGpgChangeTrust
KGpgChangeTrust(QObject *parent, const QString &keyid, const gpgme_validity_t trust)
Definition: kgpgchangetrust.cpp:16
KGpgChangeTrust::nextLine
virtual bool nextLine(const QString &line)
handle standard GnuPG prompts
Definition: kgpgchangetrust.cpp:35
kgpgeditkeytransaction.h
KGpgChangeTrust::boolQuestion
virtual ts_boolanswer boolQuestion(const QString &line)
Called for every boolean question GnuPG answers.
Definition: kgpgchangetrust.cpp:48
QObject::parent
QObject * parent() const
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