calamares/src/modules/users/UsersPage.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.3 KiB
C
Raw Normal View History

/* === 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.
*
* Calamares is Free Software: see the License-Identifier above.
2014-07-31 14:52:05 +02:00
*
*/
#ifndef USERSPAGE_H
#define USERSPAGE_H
#include <QWidget>
class Config;
class QLabel;
namespace Ui
{
2014-07-31 14:52:05 +02:00
class Page_UserSetup;
}
class UsersPage : public QWidget
{
Q_OBJECT
public:
explicit UsersPage( Config* config, QWidget* parent = nullptr );
~UsersPage() override;
2014-07-31 14:52:05 +02:00
void onActivate();
2014-07-31 14:52:05 +02:00
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& );
2014-07-31 14:52:05 +02:00
private:
void retranslate();
2014-07-31 14:52:05 +02:00
Ui::Page_UserSetup* ui;
Config* m_config;
2014-07-31 14:52:05 +02:00
};
#endif // USERSPAGE_H