1/*
2 * Copyright (C) 2003-2008 Justin Karneges <justin@affinix.com>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#pragma once
20
21#include "qcaprovider.h"
22
23namespace gpgQCAPlugin {
24
25class MyKeyStoreList;
26
27class MyKeyStoreEntry : public QCA::KeyStoreEntryContext
28{
29 Q_OBJECT
30public:
31 QCA::KeyStoreEntry::Type item_type;
32 QCA::PGPKey pub, sec;
33 QString _storeId, _storeName;
34
35 MyKeyStoreEntry(const QCA::PGPKey &_pub, const QCA::PGPKey &_sec, QCA::Provider *p);
36 MyKeyStoreEntry(const MyKeyStoreEntry &from);
37 ~MyKeyStoreEntry() override;
38
39 // reimplemented Provider::Context
40 QCA::Provider::Context *clone() const override;
41
42 // reimplemented KeyStoreEntryContext
43 QCA::KeyStoreEntry::Type type() const override;
44 QString name() const override;
45 QString id() const override;
46 QString storeId() const override;
47 QString storeName() const override;
48 QCA::PGPKey pgpSecretKey() const override;
49 QCA::PGPKey pgpPublicKey() const override;
50 QString serialize() const override;
51};
52
53} // end namespace gpgQCAPlugin
54

source code of qca/plugins/qca-gnupg/mykeystoreentry.h