• 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
KGpgExpandableNode.h
Go to the documentation of this file.
1 /* Copyright 2008,2009,2012 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 KGPGEXPANDABLENODE_H
20 #define KGPGEXPANDABLENODE_H
21 
22 #include "KGpgNode.h"
23 
24 class KGpgSubkeyNode;
25 class KGpgRefNode;
26 
34 class KGpgExpandableNode : public KGpgNode
35 {
36  Q_OBJECT
37 
38  friend class KGpgRefNode;
39  friend class KGpgSubkeyNode;
40 protected:
41  KGpgNode::List children;
42 
50  virtual void readChildren() = 0;
51 
52  explicit KGpgExpandableNode(KGpgExpandableNode *parent = NULL);
53 public:
54  virtual ~KGpgExpandableNode();
55 
67  virtual bool hasChildren() const;
77  virtual bool wasExpanded() const;
78  virtual int getChildCount();
79  virtual const KGpgNode::List &getChildren() const;
80  virtual KGpgNode *getChild(const int index) const;
81  virtual int getChildIndex(KGpgNode *node) const;
82  virtual void deleteChild(KGpgNode *child);
83 };
84 
85 #endif /* KGPGEXPANDABLENODE_H */
QObject::child
QObject * child(const char *objName, const char *inheritsClass, bool recursiveSearch) const
KGpgExpandableNode::getChildren
virtual const KGpgNode::List & getChildren() const
Definition: KGpgExpandableNode.cpp:71
KGpgExpandableNode::getChildIndex
virtual int getChildIndex(KGpgNode *node) const
Returns the index for a given child node.
Definition: KGpgExpandableNode.cpp:77
KGpgExpandableNode::~KGpgExpandableNode
virtual ~KGpgExpandableNode()
Definition: KGpgExpandableNode.cpp:34
KGpgExpandableNode::KGpgExpandableNode
KGpgExpandableNode(KGpgExpandableNode *parent=NULL)
Definition: KGpgExpandableNode.cpp:27
KGpgExpandableNode::getChild
virtual KGpgNode * getChild(const int index) const
Returns the child node at the given index.
Definition: KGpgExpandableNode.cpp:41
KGpgExpandableNode::deleteChild
virtual void deleteChild(KGpgNode *child)
Definition: KGpgExpandableNode.cpp:83
KGpgRefNode
Class for child objects that are only a reference to a primary key.
Definition: KGpgRefNode.h:39
KGpgExpandableNode::getChildCount
virtual int getChildCount()
Return how many child nodes exist.
Definition: KGpgExpandableNode.cpp:49
KGpgSubkeyNode
a subkey of a public key or key pair
Definition: KGpgSubkeyNode.h:31
QList< KGpgNode * >
KGpgExpandableNode::children
KGpgNode::List children
Definition: KGpgExpandableNode.h:41
KGpgNode
The abstract base class for all classes representing keyring data.
Definition: KGpgNode.h:42
KGpgExpandableNode::hasChildren
virtual bool hasChildren() const
check if there are any child nodes
Definition: KGpgExpandableNode.cpp:58
KGpgExpandableNode
The abstract base class for all classes that may have child objects.
Definition: KGpgExpandableNode.h:34
KGpgExpandableNode::wasExpanded
virtual bool wasExpanded() const
check if there are any child nodes present in memory
Definition: KGpgExpandableNode.cpp:64
KGpgNode.h
KGpgExpandableNode::readChildren
virtual void readChildren()=0
reimplemented in every base class to read in the child data
QObject::parent
QObject * parent() const
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