• 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
KGpgGroupNode.h
Go to the documentation of this file.
1 /* Copyright 2008,2009,2010,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 KGPGGROUPNODE_H
20 #define KGPGGROUPNODE_H
21 
22 #include "KGpgExpandableNode.h"
23 #include "KGpgKeyNode.h"
24 
25 class QString;
26 class QStringList;
27 
28 class KGpgGroupNodePrivate;
29 
33 class KGpgGroupNode : public KGpgExpandableNode
34 {
35 private:
36  KGpgGroupNodePrivate * const d_ptr;
37  Q_DECLARE_PRIVATE(KGpgGroupNode)
38  Q_DISABLE_COPY(KGpgGroupNode)
39 
40 protected:
41  virtual void readChildren();
42 
43 public:
44  KGpgGroupNode(KGpgRootNode *parent, const QString &name, const QStringList &members);
45  KGpgGroupNode(KGpgRootNode *parent, const QString &name, const KGpgKeyNode::List &members);
46  virtual ~KGpgGroupNode();
47 
48  virtual KgpgCore::KgpgItemType getType() const;
54  virtual QString getSize() const;
55  virtual QString getName() const;
56 
62  void rename(const QString &newName);
63 
67  void saveMembers();
68 
72  void remove();
73 
81  static QStringList readGroups();
82 };
83 
84 #endif /* KGPGGROUPNODE_H */
KGpgGroupNode
A GnuPG group of public keys.
Definition: KGpgGroupNode.h:33
KGpgGroupNode::getName
virtual QString getName() const
Definition: KGpgGroupNode.cpp:154
KGpgGroupNode::KGpgGroupNode
KGpgGroupNode(KGpgRootNode *parent, const QString &name, const QStringList &members)
Definition: KGpgGroupNode.cpp:117
QObject::name
const char * name() const
KGpgRootNode
The parent of all key data objects.
Definition: KGpgRootNode.h:38
KGpgGroupNode::rename
void rename(const QString &newName)
Rename this group node.
Definition: KGpgGroupNode.cpp:173
KGpgGroupNode::~KGpgGroupNode
virtual ~KGpgGroupNode()
Definition: KGpgGroupNode.cpp:139
KGpgGroupNode::getSize
virtual QString getSize() const
Return size of group.
Definition: KGpgGroupNode.cpp:162
QString
QList
KGpgExpandableNode.h
KGpgGroupNode::readGroups
static QStringList readGroups()
get all groups from GnuPG config file
Definition: KGpgGroupNode.cpp:255
QStringList
KGpgGroupNode::getType
virtual KgpgCore::KgpgItemType getType() const
Returns the item type of this object.
Definition: KGpgGroupNode.cpp:148
KGpgExpandableNode
The abstract base class for all classes that may have child objects.
Definition: KGpgExpandableNode.h:34
KGpgKeyNode.h
KGpgGroupNode::saveMembers
void saveMembers()
Write the current members to GnuPG config file.
Definition: KGpgGroupNode.cpp:202
QObject::parent
QObject * parent() const
KGpgGroupNode::readChildren
virtual void readChildren()
reimplemented in every base class to read in the child data
Definition: KGpgGroupNode.cpp:168
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