File indexing completed on 2024-12-08 04:34:21

0001 /*
0002   SPDX-FileCopyrightText: 2024 Laurent Montel <montel.org>
0003 
0004   SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "e2edecodeencryptionkeywidget.h"
0008 #include <KLocalizedString>
0009 
0010 E2eDecodeEncryptionKeyWidget::E2eDecodeEncryptionKeyWidget(QWidget *parent)
0011     : KMessageWidget(parent)
0012 {
0013     setVisible(false);
0014     setCloseButtonVisible(false);
0015     setMessageType(Information);
0016     setPosition(KMessageWidget::Header);
0017     setText(i18n("Save your encryption password. Click here to view and copy your password."));
0018 
0019     auto decodeEncryptionKeyAction = new QAction(i18n("Decrypte Encryption Key"), this);
0020     decodeEncryptionKeyAction->setObjectName(QStringLiteral("decodeEncryptionKeyAction"));
0021     connect(decodeEncryptionKeyAction, &QAction::triggered, this, &E2eDecodeEncryptionKeyWidget::decodeEncrytionKey);
0022     addAction(decodeEncryptionKeyAction);
0023 }
0024 
0025 E2eDecodeEncryptionKeyWidget::~E2eDecodeEncryptionKeyWidget() = default;
0026 
0027 #include "moc_e2edecodeencryptionkeywidget.cpp"