2020-08-25 16:05:56 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
2014-07-31 14:52:05 +02:00
|
|
|
*
|
2020-08-22 01:19:58 +02:00
|
|
|
* SPDX-FileCopyrightText: 2007 Free Software Foundation, Inc.
|
|
|
|
* SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac <teo@kde.org>
|
|
|
|
* SPDX-FileCopyrightText: 2017-2018 Adriaan de Groot <groot@kde.org>
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2014-07-31 14:52:05 +02:00
|
|
|
*
|
|
|
|
* Portions from the Manjaro Installation Framework
|
|
|
|
* by Roland Singer <roland@manjaro.org>
|
|
|
|
* Copyright (C) 2007 Free Software Foundation, Inc.
|
|
|
|
*
|
2020-08-25 16:05:56 +02:00
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
2014-07-31 14:52:05 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef USERSPAGE_H
|
|
|
|
#define USERSPAGE_H
|
|
|
|
|
2018-01-23 13:02:49 +01:00
|
|
|
#include <QWidget>
|
2017-09-18 16:08:21 +02:00
|
|
|
|
2020-07-25 15:21:04 +02:00
|
|
|
class Config;
|
|
|
|
|
2019-11-01 13:38:14 +01:00
|
|
|
class QLabel;
|
|
|
|
|
2017-09-18 16:08:21 +02:00
|
|
|
namespace Ui
|
|
|
|
{
|
2014-07-31 14:52:05 +02:00
|
|
|
class Page_UserSetup;
|
|
|
|
}
|
|
|
|
|
|
|
|
class UsersPage : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2020-07-25 15:21:04 +02:00
|
|
|
explicit UsersPage( Config* config, QWidget* parent = nullptr );
|
2020-09-22 22:34:38 +02:00
|
|
|
~UsersPage() override;
|
2014-07-31 14:52:05 +02:00
|
|
|
|
2014-11-26 18:40:30 +01:00
|
|
|
void onActivate();
|
2014-07-31 19:06:31 +02:00
|
|
|
|
2014-07-31 14:52:05 +02:00
|
|
|
protected slots:
|
2014-08-13 17:16:54 +02:00
|
|
|
void onFullNameTextEdited( const QString& );
|
2020-07-28 10:21:23 +02:00
|
|
|
void reportLoginNameStatus( const QString& );
|
2020-07-28 10:45:38 +02:00
|
|
|
void reportHostNameStatus( const QString& );
|
2020-08-04 22:16:48 +02:00
|
|
|
void onReuseUserPasswordChanged( const int );
|
2020-08-17 15:01:35 +02:00
|
|
|
void reportUserPasswordStatus( int, const QString& );
|
|
|
|
void reportRootPasswordStatus( int, const QString& );
|
2014-07-31 14:52:05 +02:00
|
|
|
|
|
|
|
private:
|
2019-11-01 13:46:07 +01:00
|
|
|
void retranslate();
|
|
|
|
|
2014-07-31 14:52:05 +02:00
|
|
|
Ui::Page_UserSetup* ui;
|
2020-07-25 15:21:04 +02:00
|
|
|
Config* m_config;
|
2014-07-31 14:52:05 +02:00
|
|
|
};
|
|
|
|
|
2019-10-21 17:21:33 +02:00
|
|
|
#endif // USERSPAGE_H
|