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

kgpg

KGpgKeyNode Class Reference

#include <kgpgitemnode.h>

Inheritance diagram for KGpgKeyNode:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 124 of file kgpgitemnode.h.


Signals

void updated (KGpgKeyNode *)

Public Member Functions

virtual KgpgKey * copyKey () const
virtual QString getBeautifiedFingerprint () const
virtual QString getComment () const
virtual QDate getCreation () const
virtual QString getEmail () const
virtual QDate getExpiration () const
virtual QString getId () const
const KgpgKey * getKey () const
QString getKeyId () const
virtual QString getName () const
virtual QString getSignCount () const
virtual QString getSize () const
virtual KgpgKeyTrust getTrust () const
virtual KgpgItemType getType () const
virtual bool hasChildren () const
 KGpgKeyNode (KGpgExpandableNode *parent, const KgpgKey &k)
void setKey (const KgpgKey &key)
virtual ~KGpgKeyNode ()

Static Public Member Functions

static KgpgItemType getType (const KgpgKey *k)

Protected Member Functions

virtual void readChildren ()

Constructor & Destructor Documentation

KGpgKeyNode::KGpgKeyNode ( KGpgExpandableNode *  parent,
const KgpgKey &  k 
) [explicit]

Definition at line 198 of file kgpgitemnode.cpp.

KGpgKeyNode::~KGpgKeyNode (  )  [virtual]

Definition at line 204 of file kgpgitemnode.cpp.


Member Function Documentation

KgpgKey * KGpgKeyNode::copyKey (  )  const [virtual]

Creates a copy of the KgpgKey that belongs to this class.

Definition at line 321 of file kgpgitemnode.cpp.

virtual QString KGpgKeyNode::getBeautifiedFingerprint (  )  const [inline, virtual]

Print the full key fingerprint with spaces inserted.

For display purposes you normally don't want to print the full fingerprint as is because it's too many hex characters at once. This function returns the fingerprint in the format usually used for printing this out, i.e. with a space after each fourth hex character.

Returns:
the full fingerprint with spaces inserted

Definition at line 170 of file kgpgitemnode.h.

virtual QString KGpgKeyNode::getComment (  )  const [inline, virtual]

Reimplemented from KGpgNode.

Definition at line 172 of file kgpgitemnode.h.

QDate KGpgKeyNode::getCreation (  )  const [virtual]

Reimplemented from KGpgNode.

Definition at line 249 of file kgpgitemnode.cpp.

QString KGpgKeyNode::getEmail (  )  const [virtual]

Reimplemented from KGpgNode.

Definition at line 237 of file kgpgitemnode.cpp.

QDate KGpgKeyNode::getExpiration (  )  const [virtual]

Reimplemented from KGpgNode.

Definition at line 243 of file kgpgitemnode.cpp.

QString KGpgKeyNode::getId (  )  const [virtual]

Reimplemented from KGpgNode.

Definition at line 255 of file kgpgitemnode.cpp.

const KgpgKey * KGpgKeyNode::getKey (  )  const

Returns a reference to the key used in this object.

This allows direct access to the values of the key e.g. for KgpgKeyInfo

Definition at line 338 of file kgpgitemnode.cpp.

QString KGpgKeyNode::getKeyId (  )  const [inline]

Definition at line 151 of file kgpgitemnode.h.

QString KGpgKeyNode::getName (  )  const [virtual]

Reimplemented from KGpgNode.

Definition at line 231 of file kgpgitemnode.cpp.

QString KGpgKeyNode::getSignCount (  )  const [virtual]

Return the number of signatures of the primary user id.

This is different from the number of children of this node as there is usually at least one subkey and there may also be additional user ids or attributes. This does not count the signatures to those slave objects, only the ones that are direct children of this node.

Returns:
the number of signatures to the primary user id

Definition at line 314 of file kgpgitemnode.cpp.

QString KGpgKeyNode::getSize (  )  const [virtual]

Reimplemented from KGpgNode.

Definition at line 225 of file kgpgitemnode.cpp.

virtual KgpgKeyTrust KGpgKeyNode::getTrust (  )  const [inline, virtual]

Reimplemented from KGpgNode.

Definition at line 149 of file kgpgitemnode.h.

KgpgItemType KGpgKeyNode::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 210 of file kgpgitemnode.cpp.

KgpgItemType KGpgKeyNode::getType ( const KgpgKey *  k  )  [static]

Definition at line 216 of file kgpgitemnode.cpp.

virtual bool KGpgKeyNode::hasChildren (  )  const [inline, virtual]

Reimplemented from KGpgExpandableNode.

Definition at line 143 of file kgpgitemnode.h.

void KGpgKeyNode::readChildren (  )  [protected, virtual]

Implements KGpgExpandableNode.

Definition at line 261 of file kgpgitemnode.cpp.

void KGpgKeyNode::setKey ( const KgpgKey &  key  ) 

Replaces the current key information with the new one.

All sub-items (i.e. signatures, user ids ...) will be deleted. This must only be used when the id of both new and old key is the same.

Definition at line 326 of file kgpgitemnode.cpp.

void KGpgKeyNode::updated ( KGpgKeyNode *   )  [signal]


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