• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

kgpg

Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KGpgExpandableNode Class Referenceabstract

#include <KGpgExpandableNode.h>

Inheritance diagram for KGpgExpandableNode:
Inheritance graph
[legend]

Public Member Functions

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 getName () const
 
virtual QString getNameComment () const
 
KGpgExpandableNode * getParentKeyNode () const
 
virtual QString getSize () const
 
virtual KgpgCore::KgpgKeyTrust getTrust () const
 
virtual KgpgCore::KgpgItemType getType () const =0
 
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 &regExp) 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

 KGpgExpandableNode (KGpgExpandableNode *parent=NULL)
 
virtual void readChildren ()=0
 
- 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)
 

Protected Attributes

KGpgNode::List children
 
- Protected Attributes inherited from KGpgNode
KGpgItemModel * m_model
 
KGpgExpandableNode * m_parent
 

Additional Inherited Members

- Public Types inherited from KGpgNode
typedef QList< KGpgNode * > List
 
- 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 that may have child objects.

Every class that represents something in the keyring that may have child objects inherits from this class. That does not mean that every child object always has children, but every child may have children.

Definition at line 34 of file KGpgExpandableNode.h.

Constructor & Destructor Documentation

KGpgExpandableNode::KGpgExpandableNode ( KGpgExpandableNode *  parent = NULL)
explicitprotected

Definition at line 27 of file KGpgExpandableNode.cpp.

KGpgExpandableNode::~KGpgExpandableNode ( )
virtual

Definition at line 34 of file KGpgExpandableNode.cpp.

Member Function Documentation

void KGpgExpandableNode::deleteChild ( KGpgNode *  child)
virtual

Definition at line 83 of file KGpgExpandableNode.cpp.

KGpgNode * KGpgExpandableNode::getChild ( const int  index) const
virtual

Returns the child node at the given index.

Parameters
indexchild index

index may be in range 0 to getChildCount() - 1.

Reimplemented from KGpgNode.

Definition at line 41 of file KGpgExpandableNode.cpp.

int KGpgExpandableNode::getChildCount ( )
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 from KGpgNode.

Definition at line 49 of file KGpgExpandableNode.cpp.

int KGpgExpandableNode::getChildIndex ( KGpgNode *  node) const
virtual

Returns the index for a given child node.

Returns
-1 if the given node is not a child of this object

Reimplemented from KGpgNode.

Definition at line 77 of file KGpgExpandableNode.cpp.

const KGpgNode::List & KGpgExpandableNode::getChildren ( ) const
virtual

Definition at line 71 of file KGpgExpandableNode.cpp.

bool KGpgExpandableNode::hasChildren ( ) const
virtual

check if there are any child nodes

The default implementation returns true if any child nodes were loaded. This may be reimplemented by child classes so they can indicate that there are child nodes before actually loading them.

This method indicates if there are children if this node is expanded. In contrast wasExpanded() will only return true if the child nodes are actually present in memory.

Reimplemented from KGpgNode.

Reimplemented in KGpgKeyNode.

Definition at line 58 of file KGpgExpandableNode.cpp.

virtual void KGpgExpandableNode::readChildren ( )
protectedpure virtual

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.

Implemented in KGpgRootNode, KGpgKeyNode, KGpgUatNode, KGpgGroupNode, KGpgUidNode, and KGpgSubkeyNode.

bool KGpgExpandableNode::wasExpanded ( ) const
virtual

check if there are any child nodes present in memory

Returns true if any child nodes were loaded.

This method indicates if the children of this node are already loaded into memory. In contrast hasChildren() may return true even if the child objects are not present in memory.

Definition at line 64 of file KGpgExpandableNode.cpp.

Member Data Documentation

KGpgNode::List KGpgExpandableNode::children
protected

Definition at line 41 of file KGpgExpandableNode.h.


The documentation for this class was generated from the following files:
  • KGpgExpandableNode.h
  • KGpgExpandableNode.cpp
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