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

kgpg

  • sources
  • kde-4.14
  • kdeutils
  • kgpg
  • core
KGpgOrphanNode.cpp
Go to the documentation of this file.
1 /* Copyright 2008,2009,2010,2012 Rolf Eike Beer <kde@opensource.sf-tec.de>
2  *
3  * This program is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU General Public License as
5  * published by the Free Software Foundation; either version 2 of
6  * the License or (at your option) version 3 or any later version
7  * accepted by the membership of KDE e.V. (or its successor approved
8  * by the membership of KDE e.V.), which shall act as a proxy
9  * defined in Section 14 of version 3 of the license.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 #include "KGpgOrphanNode.h"
20 
21 KGpgOrphanNode::KGpgOrphanNode(KGpgExpandableNode *parent, const KgpgKey &k)
22  : KGpgNode(parent),
23  m_key(new KgpgKey(k))
24 {
25 }
26 
27 KGpgOrphanNode::~KGpgOrphanNode()
28 {
29  delete m_key;
30 }
31 
32 KgpgItemType
33 KGpgOrphanNode::getType() const
34 {
35  return ITYPE_SECRET;
36 }
37 
38 QString
39 KGpgOrphanNode::getName() const
40 {
41  return m_key->name();
42 }
43 
44 QString
45 KGpgOrphanNode::getEmail() const
46 {
47  return m_key->email();
48 }
49 
50 QString
51 KGpgOrphanNode::getSize() const
52 {
53  return QString::number(m_key->size());
54 }
55 
56 QDateTime
57 KGpgOrphanNode::getExpiration() const
58 {
59  return m_key->expirationDate();
60 }
61 
62 QDateTime
63 KGpgOrphanNode::getCreation() const
64 {
65  return m_key->creationDate();
66 }
67 
68 QString
69 KGpgOrphanNode::getId() const
70 {
71  return m_key->fullId();
72 }
73 
74 KgpgCore::KgpgKeyTrust
75 KGpgOrphanNode::getTrust() const
76 {
77  return m_key->trust();
78 }
79 
80 const QString &
81 KGpgOrphanNode::getFingerprint() const
82 {
83  return m_key->fingerprint();
84 }
KgpgCore::KgpgKey::size
uint size() const
Definition: kgpgkey.cpp:263
KgpgCore::KgpgKey::creationDate
QDateTime creationDate() const
Definition: kgpgkey.cpp:298
KGpgOrphanNode::getFingerprint
const QString & getFingerprint() const
Definition: KGpgOrphanNode.cpp:81
KgpgCore::KgpgKey
Definition: kgpgkey.h:236
KgpgCore::KgpgKey::fullId
QString fullId() const
Definition: kgpgkey.cpp:238
KgpgCore::KgpgKey::fingerprint
const QString & fingerprint() const
Definition: kgpgkey.cpp:258
KgpgCore::KgpgKey::name
QString name() const
Definition: kgpgkey.cpp:243
KGpgOrphanNode::KGpgOrphanNode
KGpgOrphanNode(KGpgExpandableNode *parent, const KgpgKey &k)
Definition: KGpgOrphanNode.cpp:21
QString::number
QString number(int n, int base)
KGpgOrphanNode.h
KgpgCore::KgpgKey::email
QString email() const
Definition: kgpgkey.cpp:248
KgpgCore::ITYPE_SECRET
secret key
Definition: kgpgkey.h:92
KGpgOrphanNode::getName
virtual QString getName() const
Definition: KGpgOrphanNode.cpp:39
QString
KGpgNode
The abstract base class for all classes representing keyring data.
Definition: KGpgNode.h:42
KgpgCore::KgpgKey::trust
KgpgKeyTrust trust() const
Definition: kgpgkey.cpp:293
KGpgOrphanNode::getCreation
virtual QDateTime getCreation() const
Definition: KGpgOrphanNode.cpp:63
KGpgOrphanNode::getSize
virtual QString getSize() const
Returns a string describing the size of this object.
Definition: KGpgOrphanNode.cpp:51
KGpgOrphanNode::~KGpgOrphanNode
virtual ~KGpgOrphanNode()
Definition: KGpgOrphanNode.cpp:27
KGpgExpandableNode
The abstract base class for all classes that may have child objects.
Definition: KGpgExpandableNode.h:34
KGpgOrphanNode::getType
virtual KgpgCore::KgpgItemType getType() const
Returns the item type of this object.
Definition: KGpgOrphanNode.cpp:33
KGpgOrphanNode::getExpiration
virtual QDateTime getExpiration() const
Definition: KGpgOrphanNode.cpp:57
KGpgOrphanNode::getTrust
virtual KgpgCore::KgpgKeyTrust getTrust() const
Definition: KGpgOrphanNode.cpp:75
KGpgOrphanNode::getEmail
virtual QString getEmail() const
Definition: KGpgOrphanNode.cpp:45
KGpgOrphanNode::getId
virtual QString getId() const
Definition: KGpgOrphanNode.cpp:69
QDateTime
KgpgCore::KgpgKey::expirationDate
QDateTime expirationDate() const
Definition: kgpgkey.cpp:303
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