File indexing completed on 2024-12-01 04:35:32
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 0010 #include <QObject> 0011 class RocketChatAccount; 0012 class LIBRUQOLACORE_EXPORT E2eKeyManager : public QObject 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit E2eKeyManager(RocketChatAccount *account, QObject *parent = nullptr); 0017 ~E2eKeyManager() override; 0018 0019 void decodeEncryptionKey(); 0020 0021 void fetchMyKeys(); 0022 0023 [[nodiscard]] bool needToDecodeEncryptionKey() const; 0024 0025 Q_SIGNALS: 0026 void needDecodeEncryptionKey(); 0027 void failedDecodeEncryptionKey(); 0028 void fetchMyKeysDone(const QJsonObject &replyObject); 0029 0030 private: 0031 RocketChatAccount *const mAccount; 0032 };