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

kgpg

KGpgRootNode Class Reference

#include <kgpgitemnode.h>

Inheritance diagram for KGpgRootNode:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 207 of file kgpgitemnode.h.


Signals

void newKeyNode (KGpgKeyNode *)

Public Member Functions

void addGroups ()
void addKeys (const QStringList &ids=QStringList())
KGpgKeyNode * findKey (const QString &keyId)
int findKeyRow (const QString &keyId)
virtual KgpgItemType getType () const
int groupChildren () const
 KGpgRootNode (KGpgItemModel *model)
void refreshKeys (KGpgKeyNodeList nodes)
virtual ~KGpgRootNode ()

Protected Member Functions

virtual void readChildren ()

Constructor & Destructor Documentation

KGpgRootNode::KGpgRootNode ( KGpgItemModel *  model  )  [explicit]

Definition at line 84 of file kgpgitemnode.cpp.

virtual KGpgRootNode::~KGpgRootNode (  )  [inline, virtual]

Definition at line 222 of file kgpgitemnode.h.


Member Function Documentation

void KGpgRootNode::addGroups (  ) 

Definition at line 92 of file kgpgitemnode.cpp.

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

Definition at line 101 of file kgpgitemnode.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:
keyId the key id to find, any length is permitted
Returns:
pointer to key node or NULL if no such key

Definition at line 170 of file kgpgitemnode.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:
keyId the key id to find, any length is permitted
Returns:
the child number or -1 if there is no such key

Definition at line 183 of file kgpgitemnode.cpp.

virtual KgpgItemType KGpgRootNode::getType (  )  const [inline, 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 225 of file kgpgitemnode.h.

int KGpgRootNode::groupChildren (  )  const [inline]

Definition at line 265 of file kgpgitemnode.h.

void KGpgRootNode::newKeyNode ( KGpgKeyNode *   )  [signal]

virtual void KGpgRootNode::readChildren (  )  [inline, protected, virtual]

Implements KGpgExpandableNode.

Definition at line 217 of file kgpgitemnode.h.

void KGpgRootNode::refreshKeys ( KGpgKeyNodeList  nodes  ) 

Definition at line 134 of file kgpgitemnode.cpp.


The documentation for this class was generated from the following files:
  • kgpgitemnode.h
  • kgpgitemnode.cpp

kgpg

Skip menu "kgpg"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • okteta
  • printer-applet
  • superkaramba
  • sweeper
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal