2018-12-25 15:34:59 -05:00
|
|
|
/*******************************************************************************
|
|
|
|
* gui/StartDialog.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-14 22:18:48 -05:00
|
|
|
|
|
|
|
#ifndef _STARTDIALOG_H
|
|
|
|
#define _STARTDIALOG_H
|
|
|
|
|
|
|
|
#include "ui_StartDialog.h"
|
|
|
|
|
2012-10-31 21:07:36 -04:00
|
|
|
class StartDialog : public QDialog
|
2007-11-14 22:18:48 -05:00
|
|
|
{
|
2012-08-22 09:44:23 -04:00
|
|
|
Q_OBJECT
|
2007-11-14 22:18:48 -05:00
|
|
|
|
|
|
|
public:
|
2012-08-22 09:44:23 -04:00
|
|
|
/** Default constructor */
|
2012-10-31 21:07:36 -04:00
|
|
|
StartDialog(QWidget *parent = 0);
|
2007-11-14 22:18:48 -05:00
|
|
|
|
2012-08-22 09:44:23 -04:00
|
|
|
bool requestedNewCert();
|
2007-11-14 22:18:48 -05:00
|
|
|
|
|
|
|
protected:
|
2012-08-22 09:44:23 -04:00
|
|
|
void closeEvent (QCloseEvent * event);
|
2007-11-14 22:18:48 -05:00
|
|
|
|
2012-08-22 09:44:23 -04:00
|
|
|
private slots:
|
2007-11-14 22:18:48 -05:00
|
|
|
void loadPerson();
|
2017-05-08 04:51:15 -04:00
|
|
|
void updateSelectedProfile(int);
|
2010-04-08 07:55:10 -04:00
|
|
|
|
2016-12-03 14:04:25 -05:00
|
|
|
#ifdef RS_AUTOLOGIN
|
2010-04-08 07:55:10 -04:00
|
|
|
/**
|
|
|
|
* Warns the user that autologin is not secure
|
|
|
|
*/
|
|
|
|
void notSecureWarning();
|
2016-12-03 14:04:25 -05:00
|
|
|
#endif // RS_AUTOLOGIN
|
2012-08-22 09:44:23 -04:00
|
|
|
|
|
|
|
void on_labelProfile_linkActivated(QString link);
|
|
|
|
|
2007-11-14 22:18:48 -05:00
|
|
|
private:
|
2012-08-22 09:44:23 -04:00
|
|
|
/** Qt Designer generated object */
|
|
|
|
Ui::StartDialog ui;
|
2007-11-14 22:18:48 -05:00
|
|
|
|
2012-08-22 09:44:23 -04:00
|
|
|
bool reqNewCert;
|
2007-11-14 22:18:48 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|