• 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
kgpgeditkeytransaction.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009 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 KGPGEDITKEYTRANSACTION_H
15 #define KGPGEDITKEYTRANSACTION_H
16 
17 #include <QObject>
18 
19 #include "kgpgtransaction.h"
20 
24 class KGpgEditKeyTransaction: public KGpgTransaction {
25  Q_OBJECT
26 
27  Q_DISABLE_COPY(KGpgEditKeyTransaction)
28  KGpgEditKeyTransaction(); // = delete C++0x
29 
30 protected:
39  KGpgEditKeyTransaction(QObject *parent, const QString &keyid, const QString &command, const bool hasValue, const bool autoSave = true);
40 
41 public:
45  virtual ~KGpgEditKeyTransaction();
46 
50  QString getKeyid() const;
51 
52 protected:
59  virtual bool preStart();
60 
74  virtual bool nextLine(const QString &line);
75 
76  virtual ts_boolanswer boolQuestion(const QString &line);
77 
84  void replaceValue(const QString &arg);
85 
93  void replaceCommand(const QString &cmd);
94 
95 private:
96  int m_cmdpos;
97  int m_argpos;
98  const bool m_autosave;
99  const QString m_keyid;
100 };
101 
102 #endif // KGPGEDITKEYTRANSACTION_H
kgpgtransaction.h
KGpgEditKeyTransaction
edit a single property of a key
Definition: kgpgeditkeytransaction.h:24
KGpgEditKeyTransaction::getKeyid
QString getKeyid() const
return the id of the key we are editing
Definition: kgpgeditkeytransaction.cpp:46
KGpgEditKeyTransaction::~KGpgEditKeyTransaction
virtual ~KGpgEditKeyTransaction()
destructor
Definition: kgpgeditkeytransaction.cpp:41
QObject
KGpgEditKeyTransaction::nextLine
virtual bool nextLine(const QString &line)
handle standard GnuPG prompts
Definition: kgpgeditkeytransaction.cpp:60
QString
KGpgTransaction::ts_boolanswer
ts_boolanswer
result codes for GnuPG boolean questions
Definition: kgpgtransaction.h:73
KGpgEditKeyTransaction::replaceCommand
void replaceCommand(const QString &cmd)
replace the command
Definition: kgpgeditkeytransaction.cpp:101
KGpgEditKeyTransaction::boolQuestion
virtual ts_boolanswer boolQuestion(const QString &line)
Called for every boolean question GnuPG answers.
Definition: kgpgeditkeytransaction.cpp:83
KGpgTransaction
Process one GnuPG operation.
Definition: kgpgtransaction.h:44
KGpgEditKeyTransaction::preStart
virtual bool preStart()
reset class before next operation starts
Definition: kgpgeditkeytransaction.cpp:52
QObject::parent
QObject * parent() const
KGpgEditKeyTransaction::replaceValue
void replaceValue(const QString &arg)
replace the argument of the edit command
Definition: kgpgeditkeytransaction.cpp:93
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