• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

  • kdeui
  • dialogs
knewpassworddialog.h
Go to the documentation of this file.
1// vi: ts=8 sts=4 sw=4
2/* This file is part of the KDE libraries
3 Copyright (C) 1998 Pietro Iglio <iglio@fub.it>
4 Copyright (C) 1999,2000 Geert Jansen <jansen@kde.org>
5 Copyright (C) 2004,2005 Andrew Coles <andrew_coles@yahoo.co.uk>
6 Copyright (C) 2006,2007 Olivier Goffart <ogoffart @ kde.org>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public
10 License version 2 as published by the Free Software Foundation.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
21*/
22#ifndef KNEWPASSWORDDIALOG_H
23#define KNEWPASSWORDDIALOG_H
24
25// ### KDE 5: remove
26#include <QtGui/QLineEdit>
27
28#include <kdialog.h>
29
30class QWidget;
31
32
68class KDEUI_EXPORT KNewPasswordDialog
69 : public KDialog
70{
71 Q_OBJECT
72
73public:
79 explicit KNewPasswordDialog(QWidget *parent=0);
80
84 virtual ~KNewPasswordDialog();
85
89 void setPrompt(const QString &prompt);
90
94 QString prompt() const;
95
101 void setPixmap(const QPixmap&);
102
106 QPixmap pixmap() const;
107
113 void setAllowEmptyPasswords(bool allowed);
114
120 bool allowEmptyPasswords() const;
121
129 void setMinimumPasswordLength(int minLength);
130
134 int minimumPasswordLength() const;
135
141 void setMaximumPasswordLength(int maxLength);
142
146 int maximumPasswordLength() const;
147
157 void setReasonablePasswordLength(int reasonableLength);
158
162 int reasonablePasswordLength() const;
163
173 void setPasswordStrengthWarningLevel(int warningLevel);
174
178 int passwordStrengthWarningLevel() const;
179
186 QString password() const;
187
191 virtual void accept();
192
193protected:
194
200 virtual bool checkPassword(const QString &) ;
201
209 bool checkAndGetPassword(QString *pwd);
210
211Q_SIGNALS:
212
216 void newPassword(const QString &password);
217
218
219private:
220 class KNewPasswordDialogPrivate;
221 KNewPasswordDialogPrivate* const d;
222
223 Q_PRIVATE_SLOT( d, void _k_textChanged() )
224};
225
226#endif // KNEWPASSWORDDIALOG_H
227
228// kate: space-indent on; indent-width 4; encoding utf-8; replace-tabs on;
KDialog
A dialog base class with standard buttons and predefined layouts.
Definition: kdialog.h:129
KNewPasswordDialog
A password input dialog.
Definition: knewpassworddialog.h:70
KNewPasswordDialog::newPassword
void newPassword(const QString &password)
The dialog has been accepted, and the new password is password.
QWidget
kdialog.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal