1/*
2 SPDX-FileCopyrightText: 2024 g10 Code GmbH
3 SPDX-FileContributor: Carl Schwan <carl.schwan@gnupg.com>
4 SPDX-FileContributor: Sune Stolborg Vuorela <sune@vuorela.dk>
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7#ifndef KPASSWORD_H
8#define KPASSWORD_H
9#include <QObject>
10#include <kwidgetsaddons_export.h>
11
12/*!
13 * \namespace KPassword
14 */
15namespace KPassword
16{
17Q_NAMESPACE_EXPORT(KWIDGETSADDONS_EXPORT)
18
19/*!
20 * This enum describe when the reveal password button is visible.
21 * \since 6.0
22 *
23 * \value OnlyNew Display the button when entering a new password, but doesn't let you see a previously entered password. This is the default.
24 * \value Never Never display the reveal button.
25 * \value Always Always display the reveal button. Usefull in a password manager for example.
26 *
27 */
28enum class RevealMode {
29 OnlyNew,
30 Never,
31 Always,
32};
33Q_ENUM_NS(RevealMode)
34
35}
36#endif // KPASSWORD_H
37

source code of kwidgetsaddons/src/kpassword.h