calamares/src/modules/users/UsersPage.h

64 lines
1.7 KiB
C
Raw Normal View History

2014-07-31 14:52:05 +02:00
/* === This file is part of Calamares - <http://github.com/calamares> ===
*
* Copyright 2014, Teo Mrnjavac <teo@kde.org>
*
* Portions from the Manjaro Installation Framework
* by Roland Singer <roland@manjaro.org>
* 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 <http://www.gnu.org/licenses/>.
*/
#ifndef USERSPAGE_H
#define USERSPAGE_H
#include "Typedefs.h"
2014-07-31 14:52:05 +02:00
#include <QWidget>
namespace Ui {
class Page_UserSetup;
}
class UsersPage : public QWidget
{
Q_OBJECT
public:
explicit UsersPage( QWidget* parent = nullptr );
virtual ~UsersPage();
bool isReady();
QList< Calamares::job_ptr > createJobs();
2014-07-31 14:52:05 +02:00
protected slots:
void onUsernameTextChanged( const QString& );
void onHostnameTextChanged( const QString& );
void onPasswordTextChanged( const QString& );
void onRootPasswordTextChanged( const QString& );
signals:
void checkReady( bool );
private:
Ui::Page_UserSetup* ui;
bool m_readyUsername;
bool m_readyHostname;
bool m_readyPassword;
bool m_readyRootPassword;
};
#endif // USERSPAGE_H