File indexing completed on 2024-12-08 04:33:10

0001 /*
0002   SPDX-FileCopyrightText: 2024 Laurent Montel <montel.org>
0003 
0004   SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 #include "libruqolacore_export.h"
0009 #include <QDebug>
0010 #include <QJsonObject>
0011 #include <QString>
0012 
0013 class LIBRUQOLACORE_EXPORT E2eKey
0014 {
0015 public:
0016     E2eKey();
0017     ~E2eKey();
0018 
0019     void parseKeyInfo(const QJsonObject &replyObject);
0020 
0021     [[nodiscard]] QString binaryPrivateKey() const;
0022     void setBinaryPrivateKey(const QString &newBinaryPrivateKey);
0023 
0024 private:
0025     QString mBinaryPrivateKey;
0026     QString mPublicKey;
0027 };
0028 Q_DECLARE_METATYPE(E2eKey)
0029 Q_DECLARE_TYPEINFO(E2eKey, Q_RELOCATABLE_TYPE);
0030 LIBRUQOLACORE_EXPORT QDebug operator<<(QDebug d, const E2eKey &t);