/* === This file is part of Calamares - === * * SPDX-FileCopyrightText: 2007 Free Software Foundation, Inc. * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac * SPDX-FileCopyrightText: 2017-2018 Adriaan de Groot * SPDX-License-Identifier: GPL-3.0-or-later * * Portions from the Manjaro Installation Framework * by Roland Singer * Copyright (C) 2007 Free Software Foundation, Inc. * * Calamares is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Calamares 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Calamares. If not, see . */ #ifndef USERSPAGE_H #define USERSPAGE_H #include class Config; class QLabel; namespace Ui { class Page_UserSetup; } class UsersPage : public QWidget { Q_OBJECT public: explicit UsersPage( Config* config, QWidget* parent = nullptr ); virtual ~UsersPage(); void onActivate(); protected slots: void onFullNameTextEdited( const QString& ); void reportLoginNameStatus( const QString& ); void reportHostNameStatus( const QString& ); void onReuseUserPasswordChanged( const int ); void reportUserPasswordStatus( int, const QString& ); void reportRootPasswordStatus( int, const QString& ); private: void retranslate(); Ui::Page_UserSetup* ui; Config* m_config; }; #endif // USERSPAGE_H