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

KDEUI

  • sources
  • kde-4.14
  • kdelibs
  • 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 
30 class QWidget;
31 
32 
68 class KDEUI_EXPORT KNewPasswordDialog
69  : public KDialog
70 {
71  Q_OBJECT
72 
73 public:
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 
193 protected:
194 
200  virtual bool checkPassword(const QString &) ;
201 
209  bool checkAndGetPassword(QString *pwd);
210 
211 Q_SIGNALS:
212 
216  void newPassword(const QString &password);
217 
218 
219 private:
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.h
QWidget
KNewPasswordDialog
A password input dialog.
Definition: knewpassworddialog.h:68
KDialog
A dialog base class with standard buttons and predefined layouts.
Definition: kdialog.h:128
QString
QDialog::accept
virtual void accept()
QPixmap
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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

Search



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