• 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
  • core
KGpgRefNode.h
Go to the documentation of this file.
1 /* Copyright 2008,2009 Rolf Eike Beer <kde@opensource.sf-tec.de>
2  *
3  * This program is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU General Public License as
5  * published by the Free Software Foundation; either version 2 of
6  * the License or (at your option) version 3 or any later version
7  * accepted by the membership of KDE e.V. (or its successor approved
8  * by the membership of KDE e.V.), which shall act as a proxy
9  * defined in Section 14 of version 3 of the license.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 #ifndef KGPGREFNODE_H
20 #define KGPGREFNODE_H
21 
22 #include "KGpgNode.h"
23 
24 class KGpgKeyNode;
25 class KGpgRootNode;
26 
39 class KGpgRefNode : public KGpgNode
40 {
41  Q_OBJECT
42 
43 private:
44  const QString m_id;
45  bool m_selfsig;
46 
47 protected:
48  KGpgKeyNode *m_keynode;
49 
50  explicit KGpgRefNode(KGpgExpandableNode *parent, KGpgKeyNode *key);
51  explicit KGpgRefNode(KGpgExpandableNode *parent, const QString &keyid);
52 
53  KGpgRootNode *getRootNode() const;
54 
55 public:
56  virtual ~KGpgRefNode();
57 
58  virtual QString getId() const;
59  virtual QString getName() const;
60  virtual QString getEmail() const;
70  virtual KGpgKeyNode *getRefNode() const;
71 
77  bool isUnknown() const;
78 
92  void unRef(KGpgRootNode *root);
93 
94 private Q_SLOTS:
95  void keyUpdated(KGpgKeyNode *);
96 };
97 
98 #endif /* KGPGREFNODE_H */
KGpgRefNode::isUnknown
bool isUnknown() const
Check if the referenced key exists.
Definition: KGpgRefNode.cpp:140
KGpgRefNode::unRef
void unRef(KGpgRootNode *root)
Break the current reference.
Definition: KGpgRefNode.cpp:106
KGpgKeyNode
A public key with or without corresponding secret key.
Definition: KGpgKeyNode.h:33
KGpgRefNode::~KGpgRefNode
virtual ~KGpgRefNode()
Definition: KGpgRefNode.cpp:72
KGpgRootNode
The parent of all key data objects.
Definition: KGpgRootNode.h:38
KGpgRefNode::getRootNode
KGpgRootNode * getRootNode() const
Definition: KGpgRefNode.cpp:79
KGpgRefNode
Class for child objects that are only a reference to a primary key.
Definition: KGpgRefNode.h:39
QString
KGpgRefNode::m_keynode
KGpgKeyNode * m_keynode
Definition: KGpgRefNode.h:48
KGpgRefNode::getRefNode
virtual KGpgKeyNode * getRefNode() const
Get the node of the primary key this node references to.
Definition: KGpgRefNode.cpp:146
KGpgRefNode::KGpgRefNode
KGpgRefNode(KGpgExpandableNode *parent, KGpgKeyNode *key)
Definition: KGpgRefNode.cpp:60
KGpgNode
The abstract base class for all classes representing keyring data.
Definition: KGpgNode.h:42
KGpgExpandableNode
The abstract base class for all classes that may have child objects.
Definition: KGpgExpandableNode.h:34
KGpgRefNode::getId
virtual QString getId() const
Definition: KGpgRefNode.cpp:115
KGpgRefNode::getEmail
virtual QString getEmail() const
Definition: KGpgRefNode.cpp:132
KGpgNode.h
QObject::parent
QObject * parent() const
KGpgRefNode::getName
virtual QString getName() const
Definition: KGpgRefNode.cpp:124
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