KDEUI
knewpassworddialog.h
Go to the documentation of this file.
00001 // vi: ts=8 sts=4 sw=4 00002 /* This file is part of the KDE libraries 00003 Copyright (C) 1998 Pietro Iglio <iglio@fub.it> 00004 Copyright (C) 1999,2000 Geert Jansen <jansen@kde.org> 00005 Copyright (C) 2004,2005 Andrew Coles <andrew_coles@yahoo.co.uk> 00006 Copyright (C) 2006,2007 Olivier Goffart <ogoffart @ kde.org> 00007 00008 This library is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU Library General Public 00010 License version 2 as published by the Free Software Foundation. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Library General Public License for more details. 00016 00017 You should have received a copy of the GNU Library General Public License 00018 along with this library; see the file COPYING.LIB. If not, write to 00019 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 Boston, MA 02110-1301, USA. 00021 */ 00022 #ifndef KNEWPASSWORDDIALOG_H 00023 #define KNEWPASSWORDDIALOG_H 00024 00025 // ### KDE 5: remove 00026 #include <QtGui/QLineEdit> 00027 00028 #include <kdialog.h> 00029 00030 class QWidget; 00031 00032 00068 class KDEUI_EXPORT KNewPasswordDialog 00069 : public KDialog 00070 { 00071 Q_OBJECT 00072 00073 public: 00079 explicit KNewPasswordDialog(QWidget *parent=0); 00080 00084 virtual ~KNewPasswordDialog(); 00085 00089 void setPrompt(const QString &prompt); 00090 00094 QString prompt() const; 00095 00101 void setPixmap(const QPixmap&); 00102 00106 QPixmap pixmap() const; 00107 00113 void setAllowEmptyPasswords(bool allowed); 00114 00120 bool allowEmptyPasswords() const; 00121 00129 void setMinimumPasswordLength(int minLength); 00130 00134 int minimumPasswordLength() const; 00135 00141 void setMaximumPasswordLength(int maxLength); 00142 00146 int maximumPasswordLength() const; 00147 00157 void setReasonablePasswordLength(int reasonableLength); 00158 00162 int reasonablePasswordLength() const; 00163 00173 void setPasswordStrengthWarningLevel(int warningLevel); 00174 00178 int passwordStrengthWarningLevel() const; 00179 00186 QString password() const; 00187 00191 virtual void accept(); 00192 00193 protected: 00194 00200 virtual bool checkPassword(const QString &) ; 00201 00209 bool checkAndGetPassword(QString *pwd); 00210 00211 Q_SIGNALS: 00212 00216 void newPassword(const QString &password); 00217 00218 00219 private: 00220 class KNewPasswordDialogPrivate; 00221 KNewPasswordDialogPrivate* const d; 00222 00223 Q_PRIVATE_SLOT( d, void _k_textChanged() ) 00224 }; 00225 00226 #endif // KNEWPASSWORDDIALOG_H 00227 00228 // kate: space-indent on; indent-width 4; encoding utf-8; replace-tabs on;
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Wed May 2 2012 17:57:26 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Wed May 2 2012 17:57:26 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.