kgpg
KGpgKeyNode Class Reference
#include <kgpgitemnode.h>

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] |
| QDate KGpgKeyNode::getCreation | ( | ) | const [virtual] |
| QString KGpgKeyNode::getEmail | ( | ) | const [virtual] |
| QDate KGpgKeyNode::getExpiration | ( | ) | const [virtual] |
| QString KGpgKeyNode::getId | ( | ) | const [virtual] |
| 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] |
| 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] |
| virtual KgpgKeyTrust KGpgKeyNode::getTrust | ( | ) | const [inline, virtual] |
| 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] |
| void KGpgKeyNode::readChildren | ( | ) | [protected, virtual] |
| 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:
KDE 4.2 API Reference