kgpg
#include <KGpgNode.h>
Public Types | |
typedef QList< KGpgNode * > | List |
Public Member Functions | |
virtual | ~KGpgNode () |
virtual KGpgNode * | getChild (const int index) const |
virtual int | getChildCount () |
virtual int | getChildIndex (KGpgNode *node) const |
virtual QString | getComment () const |
virtual QDateTime | getCreation () const |
virtual QString | getEmail () const |
virtual QDateTime | getExpiration () const |
virtual QString | getId () const |
virtual QString | getName () const |
virtual QString | getNameComment () const |
KGpgExpandableNode * | getParentKeyNode () const |
virtual QString | getSize () const |
virtual KgpgCore::KgpgKeyTrust | getTrust () const |
virtual KgpgCore::KgpgItemType | getType () const =0 |
virtual bool | hasChildren () 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 |
Protected Member Functions | |
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) |
Protected Attributes | |
KGpgItemModel * | m_model |
KGpgExpandableNode * | m_parent |
Additional Inherited Members | |
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) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Detailed Description
The abstract base class for all classes representing keyring data.
Definition at line 42 of file KGpgNode.h.
Member Typedef Documentation
Definition at line 60 of file KGpgNode.h.
Constructor & Destructor Documentation
|
explicitprotected |
constructor
- Parameters
-
parent the parent node in item hierarchy
Definition at line 32 of file KGpgNode.cpp.
|
virtual |
destructor
Definition at line 41 of file KGpgNode.cpp.
Member Function Documentation
|
virtual |
Returns the child node at the given index.
- Parameters
-
index child index
index may be in range 0 to getChildCount() - 1.
Reimplemented in KGpgExpandableNode.
Definition at line 268 of file KGpgNode.cpp.
|
virtual |
Return how many child nodes exist.
When the child nodes do not already exist this will create them. This is the reason why this method is not const.
Reimplemented in KGpgExpandableNode.
Definition at line 262 of file KGpgNode.cpp.
|
virtual |
Returns the index for a given child node.
- Returns
- -1 if the given node is not a child of this object
Reimplemented in KGpgExpandableNode.
Definition at line 275 of file KGpgNode.cpp.
|
virtual |
Reimplemented in KGpgKeyNode, and KGpgUidNode.
Definition at line 324 of file KGpgNode.cpp.
|
virtual |
Reimplemented in KGpgKeyNode, KGpgUatNode, KGpgSignNode, KGpgOrphanNode, KGpgSubkeyNode, and KGpgGroupMemberNode.
Definition at line 312 of file KGpgNode.cpp.
|
virtual |
Reimplemented in KGpgKeyNode, KGpgRefNode, KGpgUidNode, and KGpgOrphanNode.
Definition at line 300 of file KGpgNode.cpp.
|
virtual |
Reimplemented in KGpgKeyNode, KGpgSignNode, KGpgOrphanNode, KGpgSubkeyNode, and KGpgGroupMemberNode.
Definition at line 306 of file KGpgNode.cpp.
|
virtual |
Reimplemented in KGpgKeyNode, KGpgRefNode, KGpgUatNode, KGpgOrphanNode, KGpgUidNode, and KGpgSubkeyNode.
Definition at line 318 of file KGpgNode.cpp.
|
virtual |
Reimplemented in KGpgKeyNode, KGpgRefNode, KGpgGroupNode, KGpgUatNode, KGpgSignNode, KGpgUidNode, KGpgOrphanNode, and KGpgSubkeyNode.
Definition at line 294 of file KGpgNode.cpp.
|
virtual |
Definition at line 51 of file KGpgNode.cpp.
KGpgExpandableNode * KGpgNode::getParentKeyNode | ( | ) | const |
Returns the parent node in the key hierarchy.
For all "primary" items like keys and key groups this will return the (invisible) root node. Calling this function for the root node will return NULL. No other node but the root node has a NULL parent.
Definition at line 330 of file KGpgNode.cpp.
|
virtual |
Returns a string describing the size of this object.
Subclasses may return a value that makes sense for whatever object they represent.
The default implementation returns an empty string.
Reimplemented in KGpgKeyNode, KGpgGroupNode, KGpgUatNode, KGpgOrphanNode, KGpgSubkeyNode, and KGpgGroupMemberNode.
Definition at line 288 of file KGpgNode.cpp.
|
virtual |
Reimplemented in KGpgKeyNode, KGpgUatNode, KGpgUidNode, KGpgSubkeyNode, KGpgOrphanNode, and KGpgGroupMemberNode.
Definition at line 282 of file KGpgNode.cpp.
|
pure 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.
Implemented in KGpgKeyNode, KGpgRootNode, KGpgUatNode, KGpgGroupNode, KGpgSignNode, KGpgUidNode, KGpgGroupMemberNode, KGpgSubkeyNode, and KGpgOrphanNode.
|
virtual |
Returns if this node has child nodes.
This may be reimplemented by child classes so they can indicate that there are child nodes before actually loading them.
Reimplemented in KGpgExpandableNode, and KGpgKeyNode.
Definition at line 256 of file KGpgNode.cpp.
KGpgExpandableNode * KGpgNode::toExpandableNode | ( | ) |
Definition at line 60 of file KGpgNode.cpp.
const KGpgExpandableNode * KGpgNode::toExpandableNode | ( | ) | const |
Definition at line 69 of file KGpgNode.cpp.
KGpgGroupMemberNode * KGpgNode::toGroupMemberNode | ( | ) |
Definition at line 208 of file KGpgNode.cpp.
const KGpgGroupMemberNode * KGpgNode::toGroupMemberNode | ( | ) | const |
Definition at line 216 of file KGpgNode.cpp.
KGpgGroupNode * KGpgNode::toGroupNode | ( | ) |
Definition at line 176 of file KGpgNode.cpp.
const KGpgGroupNode * KGpgNode::toGroupNode | ( | ) | const |
Definition at line 184 of file KGpgNode.cpp.
KGpgKeyNode * KGpgNode::toKeyNode | ( | ) |
Definition at line 94 of file KGpgNode.cpp.
const KGpgKeyNode * KGpgNode::toKeyNode | ( | ) | const |
Definition at line 103 of file KGpgNode.cpp.
KGpgOrphanNode * KGpgNode::toOrphanNode | ( | ) |
Definition at line 240 of file KGpgNode.cpp.
const KGpgOrphanNode * KGpgNode::toOrphanNode | ( | ) | const |
Definition at line 248 of file KGpgNode.cpp.
KGpgRefNode * KGpgNode::toRefNode | ( | ) |
Definition at line 192 of file KGpgNode.cpp.
const KGpgRefNode * KGpgNode::toRefNode | ( | ) | const |
Definition at line 200 of file KGpgNode.cpp.
KGpgRootNode * KGpgNode::toRootNode | ( | ) |
Definition at line 112 of file KGpgNode.cpp.
const KGpgRootNode * KGpgNode::toRootNode | ( | ) | const |
Definition at line 120 of file KGpgNode.cpp.
KGpgSignableNode * KGpgNode::toSignableNode | ( | ) |
Definition at line 78 of file KGpgNode.cpp.
const KGpgSignableNode * KGpgNode::toSignableNode | ( | ) | const |
Definition at line 86 of file KGpgNode.cpp.
KGpgSignNode * KGpgNode::toSignNode | ( | ) |
Definition at line 224 of file KGpgNode.cpp.
const KGpgSignNode * KGpgNode::toSignNode | ( | ) | const |
Definition at line 232 of file KGpgNode.cpp.
KGpgSubkeyNode * KGpgNode::toSubkeyNode | ( | ) |
Definition at line 144 of file KGpgNode.cpp.
const KGpgSubkeyNode * KGpgNode::toSubkeyNode | ( | ) | const |
Definition at line 152 of file KGpgNode.cpp.
KGpgUatNode * KGpgNode::toUatNode | ( | ) |
Definition at line 160 of file KGpgNode.cpp.
const KGpgUatNode * KGpgNode::toUatNode | ( | ) | const |
Definition at line 168 of file KGpgNode.cpp.
KGpgUidNode * KGpgNode::toUidNode | ( | ) |
Definition at line 128 of file KGpgNode.cpp.
const KGpgUidNode * KGpgNode::toUidNode | ( | ) | const |
Definition at line 136 of file KGpgNode.cpp.
Member Data Documentation
|
protected |
Definition at line 51 of file KGpgNode.h.
|
protected |
Definition at line 50 of file KGpgNode.h.
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.