1cd9b93a22
- point to main Calamares site in the 'part of' headers instead of to github (this is the "this file is part of Calamares" opening line for most files). - remove boilerplate from all source files, CMake modules and completions, this is the 3-paragraph summary of the GPL-3.0-or-later, which has a meaning entirely covered by the SPDX tag.
58 lines
1.0 KiB
C++
58 lines
1.0 KiB
C++
/* === This file is part of Calamares - <https://calamares.io> ===
|
|
*
|
|
* SPDX-FileCopyrightText: 2016 Teo Mrnjavac <teo@kde.org>
|
|
* SPDX-FileCopyrightText: 2020 Adriaan de Groot <groot@kde.org>
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*
|
|
* Calamares is Free Software: see the License-Identifier above.
|
|
*
|
|
*/
|
|
|
|
|
|
#ifndef ENCRYPTWIDGET_H
|
|
#define ENCRYPTWIDGET_H
|
|
|
|
#include <QWidget>
|
|
|
|
namespace Ui
|
|
{
|
|
class EncryptWidget;
|
|
}
|
|
|
|
class EncryptWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
enum class Encryption : unsigned short
|
|
{
|
|
Disabled = 0,
|
|
Unconfirmed,
|
|
Confirmed
|
|
};
|
|
|
|
explicit EncryptWidget( QWidget* parent = nullptr );
|
|
|
|
void reset();
|
|
|
|
Encryption state() const;
|
|
void setText( const QString& text );
|
|
|
|
QString passphrase() const;
|
|
|
|
void retranslate();
|
|
|
|
signals:
|
|
void stateChanged( Encryption );
|
|
|
|
private:
|
|
void updateState();
|
|
void onPassphraseEdited();
|
|
void onCheckBoxStateChanged( int checked );
|
|
|
|
Ui::EncryptWidget* m_ui;
|
|
Encryption m_state;
|
|
};
|
|
|
|
#endif // ENCRYPTWIDGET_H
|