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

kgpg

Signals | Public Member Functions | Protected Member Functions | List of all members
KGpgRootNode Class Reference

#include <KGpgRootNode.h>

Inheritance diagram for KGpgRootNode:
Inheritance graph
[legend]

Signals

void newKeyNode (KGpgKeyNode *)
 

Public Member Functions

 KGpgRootNode (KGpgItemModel *model)
 
virtual ~KGpgRootNode ()
 
void addGroups (const QStringList &groups)
 
void addKeys (const QStringList &ids=QStringList())
 
KGpgRootNode * asRootNode ()
 
const KGpgRootNode * asRootNode () const
 
KGpgKeyNode * findKey (const QString &keyId)
 
int findKeyRow (const QString &keyId)
 
int findKeyRow (const KGpgKeyNode *key)
 
virtual KgpgCore::KgpgItemType getType () const
 
int groupChildren () const
 
void refreshKeys (KGpgKeyNode::List nodes)
 
- 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 getName () const
 
virtual QString getNameComment () const
 
KGpgExpandableNode * getParentKeyNode () const
 
virtual QString getSize () 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 &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

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 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)
 
- 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

The parent of all key data objects.

This object is invisible to the user but acts as the internal base object for everything in the keyring. It is anchestor of all other KGpgNode objects and the only one that will ever return NULL when calling getParentKeyNode() on it.

There is only one object of this type around at any time.

Definition at line 38 of file KGpgRootNode.h.

Constructor & Destructor Documentation

KGpgRootNode::KGpgRootNode ( KGpgItemModel *  model)
explicit

Definition at line 29 of file KGpgRootNode.cpp.

KGpgRootNode::~KGpgRootNode ( )
virtual

Definition at line 37 of file KGpgRootNode.cpp.

Member Function Documentation

void KGpgRootNode::addGroups ( const QStringList &  groups)

Create new group nodes.

Parameters
groupslist of group names to create

Definition at line 54 of file KGpgRootNode.cpp.

void KGpgRootNode::addKeys ( const QStringList &  ids = QStringList())

Definition at line 64 of file KGpgRootNode.cpp.

KGpgRootNode * KGpgRootNode::asRootNode ( )

Return a pointer to this object or NULL.

This returns a pointer to this object if the object will persist, i.e. is not currently in destruction. If the object is already cleaning up NULL is returned.

Definition at line 166 of file KGpgRootNode.cpp.

const KGpgRootNode * KGpgRootNode::asRootNode ( ) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 175 of file KGpgRootNode.cpp.

KGpgKeyNode * KGpgRootNode::findKey ( const QString &  keyId)

Find a key node with the given id.

This scans the list of primary keys for a key with the given id and returns the corresponding key node.

The key id will be matched against the characters given in keyId. If you give only 8 or 16 byte you will still find the key if it exists. To be really sure to find the correct node you should pass the complete fingerprint whenever possible.

Parameters
keyIdthe key id to find, any length is permitted
Returns
pointer to key node or NULL if no such key

Definition at line 118 of file KGpgRootNode.cpp.

int KGpgRootNode::findKeyRow ( const QString &  keyId)

Return the child number of the key with the given id.

This scans the list of direct children for a key with the given key id. It returns the number in the internal list of children which is identical to the row number in the item model. Since proxy models may sort the items you should only call this function from the primary model (i.e. KGpgItemModel).

The key id will be matched against the characters given in keyId. If you give only 8 or 16 byte you will still find the key if it exists. To be really sure to find the correct node you should pass the complete fingerprint whenever possible.

Parameters
keyIdthe key id to find, any length is permitted
Returns
the child number or -1 if there is no such key

Definition at line 129 of file KGpgRootNode.cpp.

int KGpgRootNode::findKeyRow ( const KGpgKeyNode *  key)

Return the child number of the given key.

Parameters
keythe key to search for

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 156 of file KGpgRootNode.cpp.

KgpgCore::KgpgItemType KGpgRootNode::getType ( ) const
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 48 of file KGpgRootNode.cpp.

int KGpgRootNode::groupChildren ( ) const

Return the group count.

Returns
the number of group nodes

Definition at line 150 of file KGpgRootNode.cpp.

void KGpgRootNode::newKeyNode ( KGpgKeyNode *  )
signal
void KGpgRootNode::readChildren ( )
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 43 of file KGpgRootNode.cpp.

void KGpgRootNode::refreshKeys ( KGpgKeyNode::List  nodes)

Definition at line 89 of file KGpgRootNode.cpp.


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