File indexing completed on 2024-04-28 03:59:11

0001 /*
0002    SPDX-FileCopyrightText: 2024 g10 Code GmbH
0003    SPDX-FileContributor: Carl Schwan <carl.schwan@gnupg.com>
0004    SPDX-FileContributor: Sune Stolborg Vuorela <sune@vuorela.dk>
0005    SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 #ifndef KPASSWORD_H
0008 #define KPASSWORD_H
0009 #include <QObject>
0010 #include <kwidgetsaddons_export.h>
0011 
0012 namespace KPassword
0013 {
0014 Q_NAMESPACE_EXPORT(KWIDGETSADDONS_EXPORT)
0015 
0016 /**
0017  * This enum describe when the reveal password button is visible.
0018  * @since 6.0
0019  */
0020 enum class RevealMode {
0021     /**
0022      * Display the button when entering a new password, but doesn't let you see a
0023      * previously entered password. This is the default.
0024      */
0025     OnlyNew,
0026     /**
0027      * Never display the reveal button.
0028      */
0029     Never,
0030     /**
0031      * Always display the reveal button. Usefull in a password manager for example.
0032      */
0033     Always,
0034 };
0035 Q_ENUM_NS(RevealMode)
0036 
0037 }
0038 #endif // KPASSWORD_H