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

kgpg

  • sources
  • kde-4.12
  • kdeutils
  • kgpg
kgpgchangekey.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008,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 KGPGCHANGEKEY_H
15 #define KGPGCHANGEKEY_H
16 
17 #include "core/kgpgkey.h"
18 
19 #include <QObject>
20 #include <QDateTime>
21 
22 class KGpgKeyNode;
23 class KGpgTransaction;
24 class QWidget;
25 
43 class KGpgChangeKey : public QObject
44 {
45  Q_OBJECT
46 
47 public:
66  KGpgChangeKey(KGpgKeyNode *node, QWidget *widget);
70  ~KGpgChangeKey();
71 
78  void setExpiration(const QDateTime &date);
79 
85  void setDisable(const bool &disable);
86 
92  void setOwTrust(const KgpgCore::KgpgKeyOwnerTrust &trust);
93 
107  bool apply();
108 
118  bool wasChanged();
119 
132  void selfdestruct(const bool &applyChanges);
133 
137  void setParentWidget(QWidget *widget);
138 signals:
147  void done(int result);
148 
165  void keyNeedsRefresh(KGpgKeyNode *node);
166 
167 private slots:
171  void nextStep(int result);
172 
173 private:
174  QDateTime m_expiration;
175  bool m_disable;
176  KgpgCore::KgpgKeyOwnerTrust m_owtrust;
177  KgpgCore::KgpgKey m_key;
178  KGpgKeyNode *m_node;
179  KGpgTransaction *m_current;
180  QWidget *m_parentWidget;
181  int m_step;
182  int m_failed;
183  bool m_autodestroy;
184 };
185 
186 #endif // KGPGCHANGEKEY_H
KGpgChangeKey::wasChanged
bool wasChanged()
Checks if the cached values differ from those of the key.
Definition: kgpgchangekey.cpp:153
KGpgChangeKey::KGpgChangeKey
KGpgChangeKey(KGpgKeyNode *node, QWidget *widget)
Creates a change object for a given key node.
Definition: kgpgchangekey.cpp:23
KGpgChangeKey::setDisable
void setDisable(const bool &disable)
Cache new disable flag.
Definition: kgpgchangekey.cpp:48
QWidget
KGpgChangeKey::setParentWidget
void setParentWidget(QWidget *widget)
set a new parent widget for the transactions
Definition: kgpgchangekey.cpp:181
kgpgkey.h
KgpgCore::KgpgKey
Definition: kgpgkey.h:254
QObject
KGpgKeyNode
A public key with or without corresponding secret key.
Definition: KGpgKeyNode.h:33
KGpgChangeKey::~KGpgChangeKey
~KGpgChangeKey()
Destroys the object.
Definition: kgpgchangekey.cpp:38
KGpgChangeKey::selfdestruct
void selfdestruct(const bool &applyChanges)
Tell the object to remove itself once all work is done.
Definition: kgpgchangekey.cpp:167
KGpgChangeKey::setOwTrust
void setOwTrust(const KgpgCore::KgpgKeyOwnerTrust &trust)
Cache new owner trust.
Definition: kgpgchangekey.cpp:53
KGpgChangeKey::done
void done(int result)
This signal gets emitted every time apply() has done all of it's work.
KGpgChangeKey::setExpiration
void setExpiration(const QDateTime &date)
Cache new expiration date.
Definition: kgpgchangekey.cpp:43
KGpgChangeKey
A class for changing several properties of a key at once.
Definition: kgpgchangekey.h:43
KGpgChangeKey::apply
bool apply()
Apply all cached changes to the key.
Definition: kgpgchangekey.cpp:58
KGpgTransaction
Process one GnuPG operation.
Definition: kgpgtransaction.h:44
KGpgChangeKey::keyNeedsRefresh
void keyNeedsRefresh(KGpgKeyNode *node)
This signal get's emitted if apply finishes in detached mode.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:51 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
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • 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