• 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
KGpgNode.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 KGPGNODE_H
20 #define KGPGNODE_H
21 
22 #include <QPixmap>
23 #include "kgpgkey.h"
24 
25 class KGpgExpandableNode;
26 class KGpgKeyNode;
27 class KGpgRootNode;
28 class KGpgUidNode;
29 class KGpgSignableNode;
30 class KGpgSubkeyNode;
31 class KGpgUatNode;
32 class KGpgGroupNode;
33 class KGpgRefNode;
34 class KGpgGroupMemberNode;
35 class KGpgSignNode;
36 class KGpgOrphanNode;
37 class KGpgItemModel;
38 
42 class KGpgNode : public QObject
43 {
44  Q_OBJECT
45 
46  friend class KGpgItemModel;
47 
48  KGpgNode(); // = delete C++0x
49 protected:
50  KGpgExpandableNode *m_parent;
51  KGpgItemModel *m_model;
52 
57  explicit KGpgNode(KGpgExpandableNode *parent);
58 
59 public:
60  typedef QList<KGpgNode *> List;
61 
65  virtual ~KGpgNode();
66 
73  virtual bool hasChildren() const;
80  virtual int getChildCount();
87  virtual KGpgNode *getChild(const int index) const;
92  virtual int getChildIndex(KGpgNode *node) const;
93 
102  virtual KgpgCore::KgpgItemType getType() const = 0;
103  virtual KgpgCore::KgpgKeyTrust getTrust() const;
112  virtual QString getSize() const;
113  virtual QString getName() const;
114  virtual QString getEmail() const;
115  virtual QDateTime getExpiration() const;
116  virtual QDateTime getCreation() const;
117  virtual QString getId() const;
118  virtual QString getComment() const;
119  virtual QString getNameComment() const;
128  KGpgExpandableNode *getParentKeyNode() const;
129 
130  KGpgExpandableNode *toExpandableNode();
131  const KGpgExpandableNode *toExpandableNode() const;
132  KGpgSignableNode *toSignableNode();
133  const KGpgSignableNode *toSignableNode() const;
134  KGpgKeyNode *toKeyNode();
135  const KGpgKeyNode *toKeyNode() const;
136  KGpgRootNode *toRootNode();
137  const KGpgRootNode *toRootNode() const;
138  KGpgUidNode *toUidNode();
139  const KGpgUidNode *toUidNode() const;
140  KGpgSubkeyNode *toSubkeyNode();
141  const KGpgSubkeyNode *toSubkeyNode() const;
142  KGpgUatNode *toUatNode();
143  const KGpgUatNode *toUatNode() const;
144  KGpgGroupNode *toGroupNode();
145  const KGpgGroupNode *toGroupNode() const;
146  KGpgRefNode *toRefNode();
147  const KGpgRefNode *toRefNode() const;
148  KGpgGroupMemberNode *toGroupMemberNode();
149  const KGpgGroupMemberNode *toGroupMemberNode() const;
150  KGpgSignNode *toSignNode();
151  const KGpgSignNode *toSignNode() const;
152  KGpgOrphanNode *toOrphanNode();
153  const KGpgOrphanNode *toOrphanNode() const;
154 };
155 
156 #endif /* KGPGNODE_H */
KGpgItemModel
Definition: kgpgitemmodel.h:44
KGpgNode::toRootNode
KGpgRootNode * toRootNode()
Definition: KGpgNode.cpp:112
KGpgNode::getParentKeyNode
KGpgExpandableNode * getParentKeyNode() const
Returns the parent node in the key hierarchy.
Definition: KGpgNode.cpp:330
KGpgGroupNode
A GnuPG group of public keys.
Definition: KGpgGroupNode.h:33
KGpgNode::getNameComment
virtual QString getNameComment() const
Definition: KGpgNode.cpp:51
KGpgUatNode
A user attribute (i.e.
Definition: KGpgUatNode.h:36
kgpgkey.h
KGpgNode::toRefNode
KGpgRefNode * toRefNode()
Definition: KGpgNode.cpp:192
KGpgNode::getComment
virtual QString getComment() const
Definition: KGpgNode.cpp:324
KGpgKeyNode
A public key with or without corresponding secret key.
Definition: KGpgKeyNode.h:33
KGpgNode::List
QList< KGpgNode * > List
Definition: KGpgNode.h:60
KGpgNode::getCreation
virtual QDateTime getCreation() const
Definition: KGpgNode.cpp:312
KGpgNode::getType
virtual KgpgCore::KgpgItemType getType() const =0
Returns the item type of this object.
KGpgNode::getExpiration
virtual QDateTime getExpiration() const
Definition: KGpgNode.cpp:306
KGpgNode::toSignableNode
KGpgSignableNode * toSignableNode()
Definition: KGpgNode.cpp:78
KGpgRootNode
The parent of all key data objects.
Definition: KGpgRootNode.h:38
KGpgNode::getSize
virtual QString getSize() const
Returns a string describing the size of this object.
Definition: KGpgNode.cpp:288
QObject
KGpgNode::toGroupMemberNode
KGpgGroupMemberNode * toGroupMemberNode()
Definition: KGpgNode.cpp:208
KGpgOrphanNode
A lone secret key without public key.
Definition: KGpgOrphanNode.h:33
KGpgRefNode
Class for child objects that are only a reference to a primary key.
Definition: KGpgRefNode.h:39
KGpgItemModel::index
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: kgpgitemmodel.cpp:44
KGpgSubkeyNode
a subkey of a public key or key pair
Definition: KGpgSubkeyNode.h:31
QString
QList< KGpgNode * >
KGpgNode::getChildIndex
virtual int getChildIndex(KGpgNode *node) const
Returns the index for a given child node.
Definition: KGpgNode.cpp:275
KGpgNode::toOrphanNode
KGpgOrphanNode * toOrphanNode()
Definition: KGpgNode.cpp:240
KGpgNode
The abstract base class for all classes representing keyring data.
Definition: KGpgNode.h:42
KGpgNode::toExpandableNode
KGpgExpandableNode * toExpandableNode()
Definition: KGpgNode.cpp:60
KGpgExpandableNode
The abstract base class for all classes that may have child objects.
Definition: KGpgExpandableNode.h:34
KGpgNode::toUatNode
KGpgUatNode * toUatNode()
Definition: KGpgNode.cpp:160
KGpgNode::toKeyNode
KGpgKeyNode * toKeyNode()
Definition: KGpgNode.cpp:94
KGpgNode::~KGpgNode
virtual ~KGpgNode()
destructor
Definition: KGpgNode.cpp:41
KGpgNode::getId
virtual QString getId() const
Definition: KGpgNode.cpp:318
KGpgNode::toUidNode
KGpgUidNode * toUidNode()
Definition: KGpgNode.cpp:128
KGpgGroupMemberNode
A member of a GnuPG group.
Definition: KGpgGroupMemberNode.h:35
KGpgNode::m_parent
KGpgExpandableNode * m_parent
Definition: KGpgNode.h:50
KGpgNode::toGroupNode
KGpgGroupNode * toGroupNode()
Definition: KGpgNode.cpp:176
KGpgNode::getEmail
virtual QString getEmail() const
Definition: KGpgNode.cpp:300
KGpgNode::getChild
virtual KGpgNode * getChild(const int index) const
Returns the child node at the given index.
Definition: KGpgNode.cpp:268
KGpgNode::getChildCount
virtual int getChildCount()
Return how many child nodes exist.
Definition: KGpgNode.cpp:262
KGpgNode::toSignNode
KGpgSignNode * toSignNode()
Definition: KGpgNode.cpp:224
KGpgNode::getName
virtual QString getName() const
Definition: KGpgNode.cpp:294
KGpgUidNode
A user id of a public key or key pair.
Definition: KGpgUidNode.h:33
KGpgNode::toSubkeyNode
KGpgSubkeyNode * toSubkeyNode()
Definition: KGpgNode.cpp:144
KGpgSignNode
A signature to another key object.
Definition: KGpgSignNode.h:31
KGpgNode::hasChildren
virtual bool hasChildren() const
Returns if this node has child nodes.
Definition: KGpgNode.cpp:256
QObject::parent
QObject * parent() const
KGpgNode::getTrust
virtual KgpgCore::KgpgKeyTrust getTrust() const
Definition: KGpgNode.cpp:282
KGpgSignableNode
An object that may have KGpgSignNode children.
Definition: KGpgSignableNode.h:31
QDateTime
KGpgNode::m_model
KGpgItemModel * m_model
Definition: KGpgNode.h:51
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