2018-12-25 21:34:59 +01:00
|
|
|
/*******************************************************************************
|
|
|
|
* gui/GenCertDialog.h *
|
|
|
|
* *
|
|
|
|
* Copyright (C) 2006 Crypton <retroshare.project@gmail.com> *
|
|
|
|
* *
|
|
|
|
* This program is free software: you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU Affero General Public License as *
|
|
|
|
* published by the Free Software Foundation, either version 3 of the *
|
|
|
|
* License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU Affero General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU Affero General Public License *
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
|
|
|
* *
|
|
|
|
*******************************************************************************/
|
2007-11-15 03:18:48 +00:00
|
|
|
|
|
|
|
#ifndef _GENCERTDIALOG_H
|
|
|
|
#define _GENCERTDIALOG_H
|
|
|
|
|
|
|
|
#include "ui_GenCertDialog.h"
|
|
|
|
|
2013-09-23 20:55:34 +00:00
|
|
|
class QMouseEvent ;
|
|
|
|
|
2007-11-15 03:18:48 +00:00
|
|
|
class GenCertDialog : public QDialog
|
|
|
|
{
|
2012-11-01 01:07:36 +00:00
|
|
|
Q_OBJECT
|
2007-11-15 03:18:48 +00:00
|
|
|
|
|
|
|
public:
|
2012-11-01 01:07:36 +00:00
|
|
|
/** Default constructor */
|
2021-04-09 11:54:57 +02:00
|
|
|
explicit GenCertDialog(bool onlyGenerateIdentity, QWidget *parent = 0);
|
2007-11-15 03:18:48 +00:00
|
|
|
|
2013-09-23 20:55:34 +00:00
|
|
|
virtual ~GenCertDialog() ;
|
|
|
|
virtual void mouseMoveEvent(QMouseEvent *e) ;
|
2016-08-06 17:15:56 +02:00
|
|
|
QString getGXSNickname() {return mGXSNickname;}
|
2007-11-15 03:18:48 +00:00
|
|
|
private slots:
|
|
|
|
void genPerson();
|
2017-02-01 23:08:57 +01:00
|
|
|
bool importIdentity();
|
2012-07-10 21:40:53 +00:00
|
|
|
void exportIdentity();
|
2017-02-01 21:55:06 +01:00
|
|
|
void setupState();
|
2017-02-01 23:08:57 +01:00
|
|
|
void switchReuseExistingNode();
|
2013-09-23 20:55:34 +00:00
|
|
|
void grabMouse();
|
2017-02-12 21:45:22 +01:00
|
|
|
void updateCheckLabels();
|
2020-11-06 15:45:47 +01:00
|
|
|
void useI2pChecked(bool checked);
|
2010-01-19 21:44:13 +00:00
|
|
|
|
2007-11-15 03:18:48 +00:00
|
|
|
private:
|
2017-02-01 23:08:57 +01:00
|
|
|
void initKeyList();
|
2007-11-15 03:18:48 +00:00
|
|
|
|
2012-11-01 01:07:36 +00:00
|
|
|
/** Qt Designer generated object */
|
|
|
|
Ui::GenCertDialog ui;
|
2012-08-07 19:16:17 +00:00
|
|
|
|
2012-11-01 01:07:36 +00:00
|
|
|
bool genNewGPGKey;
|
2015-05-21 09:03:58 +00:00
|
|
|
bool haveGPGKeys;
|
2012-11-01 01:07:36 +00:00
|
|
|
bool mOnlyGenerateIdentity;
|
2017-02-12 23:35:43 +01:00
|
|
|
bool mAllFieldsOk ;
|
|
|
|
bool mEntropyOk ;
|
2016-08-06 17:15:56 +02:00
|
|
|
QString mGXSNickname;
|
2013-09-23 20:55:34 +00:00
|
|
|
|
|
|
|
QTimer *entropy_timer ;
|
2007-11-15 03:18:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|