• 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
KGpgRootNode.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 KGPGROOTNODE_H
20 #define KGPGROOTNODE_H
21 
22 #include "KGpgExpandableNode.h"
23 #include "KGpgKeyNode.h"
24 
25 class KGpgGroupNode;
26 class QString;
27 class QStringList;
28 
38 class KGpgRootNode : public KGpgExpandableNode
39 {
40  Q_OBJECT
41 
42  friend class KGpgGroupNode;
43 
44 private:
45  int m_groups;
46  int m_deleting;
47 
48 protected:
49  virtual void readChildren();
50 
51 public:
52  explicit KGpgRootNode(KGpgItemModel *model);
53  virtual ~KGpgRootNode();
54 
55  virtual KgpgCore::KgpgItemType getType() const;
56 
61  void addGroups(const QStringList &groups);
62  void addKeys(const QStringList &ids = QStringList());
63  void refreshKeys(KGpgKeyNode::List nodes);
78  KGpgKeyNode *findKey(const QString &keyId);
96  int findKeyRow(const QString &keyId);
97 
104  int findKeyRow(const KGpgKeyNode *key);
105 
110  int groupChildren() const;
111 
119  KGpgRootNode *asRootNode();
123  const KGpgRootNode *asRootNode() const;
124 
125 Q_SIGNALS:
126  void newKeyNode(KGpgKeyNode *);
127 };
128 
129 #endif /* KGPGROOTNODE_H */
KGpgItemModel
Definition: kgpgitemmodel.h:44
KGpgGroupNode
A GnuPG group of public keys.
Definition: KGpgGroupNode.h:33
KGpgRootNode::refreshKeys
void refreshKeys(KGpgKeyNode::List nodes)
Definition: KGpgRootNode.cpp:89
KGpgRootNode::KGpgRootNode
KGpgRootNode(KGpgItemModel *model)
Definition: KGpgRootNode.cpp:29
KGpgKeyNode
A public key with or without corresponding secret key.
Definition: KGpgKeyNode.h:33
KGpgRootNode
The parent of all key data objects.
Definition: KGpgRootNode.h:38
KGpgRootNode::~KGpgRootNode
virtual ~KGpgRootNode()
Definition: KGpgRootNode.cpp:37
QString
QList
KGpgExpandableNode.h
QStringList
KGpgRootNode::addGroups
void addGroups(const QStringList &groups)
Create new group nodes.
Definition: KGpgRootNode.cpp:54
KGpgRootNode::findKey
KGpgKeyNode * findKey(const QString &keyId)
Find a key node with the given id.
Definition: KGpgRootNode.cpp:118
KGpgRootNode::addKeys
void addKeys(const QStringList &ids=QStringList())
Definition: KGpgRootNode.cpp:64
KGpgExpandableNode
The abstract base class for all classes that may have child objects.
Definition: KGpgExpandableNode.h:34
KGpgRootNode::asRootNode
KGpgRootNode * asRootNode()
Return a pointer to this object or NULL.
Definition: KGpgRootNode.cpp:166
KGpgRootNode::findKeyRow
int findKeyRow(const QString &keyId)
Return the child number of the key with the given id.
Definition: KGpgRootNode.cpp:129
KGpgRootNode::getType
virtual KgpgCore::KgpgItemType getType() const
Returns the item type of this object.
Definition: KGpgRootNode.cpp:48
KGpgKeyNode.h
KGpgRootNode::groupChildren
int groupChildren() const
Return the group count.
Definition: KGpgRootNode.cpp:150
KGpgRootNode::newKeyNode
void newKeyNode(KGpgKeyNode *)
KGpgRootNode::readChildren
virtual void readChildren()
reimplemented in every base class to read in the child data
Definition: KGpgRootNode.cpp:43
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