kgpg
#include <KGpgGroupNode.h>
Public Member Functions | |
KGpgGroupNode (KGpgRootNode *parent, const QString &name, const QStringList &members) | |
KGpgGroupNode (KGpgRootNode *parent, const QString &name, const KGpgKeyNode::List &members) | |
virtual | ~KGpgGroupNode () |
virtual QString | getName () const |
virtual QString | getSize () const |
virtual KgpgCore::KgpgItemType | getType () const |
void | remove () |
void | rename (const QString &newName) |
void | saveMembers () |
Public Member Functions inherited from KGpgExpandableNode | |
virtual | ~KGpgExpandableNode () |
virtual void | deleteChild (KGpgNode *child) |
virtual KGpgNode * | getChild (const int index) const |
virtual int | getChildCount () |
virtual int | getChildIndex (KGpgNode *node) const |
virtual const KGpgNode::List & | getChildren () const |
virtual bool | hasChildren () const |
virtual bool | wasExpanded () const |
Public Member Functions inherited from KGpgNode | |
virtual | ~KGpgNode () |
virtual QString | getComment () const |
virtual QDateTime | getCreation () const |
virtual QString | getEmail () const |
virtual QDateTime | getExpiration () const |
virtual QString | getId () const |
virtual QString | getNameComment () const |
KGpgExpandableNode * | getParentKeyNode () const |
virtual KgpgCore::KgpgKeyTrust | getTrust () const |
KGpgExpandableNode * | toExpandableNode () |
const KGpgExpandableNode * | toExpandableNode () const |
KGpgGroupMemberNode * | toGroupMemberNode () |
const KGpgGroupMemberNode * | toGroupMemberNode () const |
KGpgGroupNode * | toGroupNode () |
const KGpgGroupNode * | toGroupNode () const |
KGpgKeyNode * | toKeyNode () |
const KGpgKeyNode * | toKeyNode () const |
KGpgOrphanNode * | toOrphanNode () |
const KGpgOrphanNode * | toOrphanNode () const |
KGpgRefNode * | toRefNode () |
const KGpgRefNode * | toRefNode () const |
KGpgRootNode * | toRootNode () |
const KGpgRootNode * | toRootNode () const |
KGpgSignableNode * | toSignableNode () |
const KGpgSignableNode * | toSignableNode () const |
KGpgSignNode * | toSignNode () |
const KGpgSignNode * | toSignNode () const |
KGpgSubkeyNode * | toSubkeyNode () |
const KGpgSubkeyNode * | toSubkeyNode () const |
KGpgUatNode * | toUatNode () |
const KGpgUatNode * | toUatNode () const |
KGpgUidNode * | toUidNode () |
const KGpgUidNode * | toUidNode () const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Static Public Member Functions | |
static QStringList | readGroups () |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions | |
virtual void | readChildren () |
Protected Member Functions inherited from KGpgExpandableNode | |
KGpgExpandableNode (KGpgExpandableNode *parent=NULL) | |
Protected Member Functions inherited from KGpgNode | |
KGpgNode (KGpgExpandableNode *parent) | |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Additional Inherited Members | |
Public Types inherited from KGpgNode | |
typedef QList< KGpgNode * > | List |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Protected Attributes inherited from KGpgExpandableNode | |
KGpgNode::List | children |
Protected Attributes inherited from KGpgNode | |
KGpgItemModel * | m_model |
KGpgExpandableNode * | m_parent |
Properties inherited from QObject | |
objectName | |
Detailed Description
A GnuPG group of public keys.
Definition at line 33 of file KGpgGroupNode.h.
Constructor & Destructor Documentation
KGpgGroupNode::KGpgGroupNode | ( | KGpgRootNode * | parent, |
const QString & | name, | ||
const QStringList & | members | ||
) |
Definition at line 117 of file KGpgGroupNode.cpp.
KGpgGroupNode::KGpgGroupNode | ( | KGpgRootNode * | parent, |
const QString & | name, | ||
const KGpgKeyNode::List & | members | ||
) |
Definition at line 127 of file KGpgGroupNode.cpp.
|
virtual |
Definition at line 139 of file KGpgGroupNode.cpp.
Member Function Documentation
|
virtual |
Reimplemented from KGpgNode.
Definition at line 154 of file KGpgGroupNode.cpp.
|
virtual |
Return size of group.
- Returns
- the number of keys in this group
Reimplemented from KGpgNode.
Definition at line 162 of file KGpgGroupNode.cpp.
|
virtual |
Returns the item type of this object.
Since every subclass returns a distinct value you can use the result of this function to decide which cast to take. Note that there are subclasses (KGpgKeyNode, KGpgGroupMemberNode) that can return two different values.
Implements KGpgNode.
Definition at line 148 of file KGpgGroupNode.cpp.
|
protectedvirtual |
reimplemented in every base class to read in the child data
This allows the child objects to delay the loading of the child objects until they are really needed to avoid time consuming operations for data never used.
Implements KGpgExpandableNode.
Definition at line 168 of file KGpgGroupNode.cpp.
|
static |
get all groups from GnuPG config file
- Returns
- list of groups names and their keys
The strings are themself space separated list. The first entry is the group name, the others are the keys inside
Definition at line 255 of file KGpgGroupNode.cpp.
void KGpgGroupNode::remove | ( | ) |
Remove this group from the GnuPG config file.
Definition at line 233 of file KGpgGroupNode.cpp.
void KGpgGroupNode::rename | ( | const QString & | newName | ) |
Rename this group node.
- Parameters
-
newName new name of the group
Definition at line 173 of file KGpgGroupNode.cpp.
void KGpgGroupNode::saveMembers | ( | ) |
Write the current members to GnuPG config file.
Definition at line 202 of file KGpgGroupNode.cpp.
The documentation for this class was generated from the following files:
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.