File indexing completed on 2024-05-12 05:22:53
0001 /* 0002 test_keygen.h 0003 0004 This file is part of libkleopatra's test suite. 0005 SPDX-FileCopyrightText: 2004 Klarälvdalens Datakonsult AB 0006 0007 SPDX-License-Identifier: GPL-2.0-only 0008 */ 0009 0010 #pragma once 0011 0012 #include <QByteArray> 0013 #include <QDialog> 0014 0015 namespace GpgME 0016 { 0017 class Error; 0018 class KeyGenerationResult; 0019 } 0020 0021 class QLineEdit; 0022 0023 class KeyGenerator : public QDialog 0024 { 0025 Q_OBJECT 0026 public: 0027 KeyGenerator(QWidget *parent = nullptr); 0028 ~KeyGenerator() override; 0029 0030 public Q_SLOTS: 0031 void slotStartKeyGeneration(); 0032 void slotResult(const GpgME::KeyGenerationResult &res, const QByteArray &keyData); 0033 0034 private: 0035 void showError(const GpgME::Error &err); 0036 0037 private: 0038 QLineEdit *mLineEdits[20]; 0039 };