File indexing completed on 2024-04-21 09:41:35

0001 /*
0002     SPDX-FileCopyrightText: 2008, 2009, 2010 Rolf Eike Beer <kde@opensource.sf-tec.de>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 #ifndef KGPGSIGNNODE_H
0007 #define KGPGSIGNNODE_H
0008 
0009 #include "KGpgRefNode.h"
0010 
0011 class KGpgSignableNode;
0012 
0013 class KGpgSignNodePrivate;
0014 
0015 /**
0016  * @brief A signature to another key object
0017  */
0018 class KGpgSignNode : public KGpgRefNode
0019 {
0020 private:
0021     KGpgSignNodePrivate * const d_ptr;
0022     Q_DECLARE_PRIVATE(KGpgSignNode)
0023 
0024 public:
0025     typedef QList<KGpgSignNode *> List;
0026 
0027     /**
0028      * @brief constructor for KGpgSignNode
0029      * @param parent the signed node
0030      * @param s GnuPG line describing this signature
0031      */
0032     explicit KGpgSignNode(KGpgSignableNode *parent, const QStringList &s);
0033     ~KGpgSignNode() override;
0034 
0035     KgpgCore::KgpgItemType getType() const override;
0036     QDateTime getExpiration() const override;
0037     QString getName() const override;
0038     QDateTime getCreation() const override;
0039 };
0040 
0041 #endif /* KGPGSIGNNODE_H */