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

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 #include <QtGui/QLineEdit>
00026 
00027 #include <kdialog.h>
00028 
00029 class QWidget;
00030 
00031 
00063 class KDEUI_EXPORT KNewPasswordDialog
00064     : public KDialog
00065 {
00066     Q_OBJECT
00067 
00068 public:
00074     explicit KNewPasswordDialog(QWidget *parent=0);
00075 
00079     virtual ~KNewPasswordDialog();
00080 
00084     void setPrompt(const QString &prompt);
00085 
00089     QString prompt() const;
00090 
00096     void setPixmap(const QPixmap&);
00097 
00101     QPixmap pixmap() const;
00102 
00108     void setAllowEmptyPasswords(bool allowed);
00109 
00115     bool allowEmptyPasswords() const;
00116 
00124     void setMinimumPasswordLength(int minLength);
00125 
00129     int minimumPasswordLength() const;
00130 
00136     void setMaximumPasswordLength(int maxLength);
00137 
00141     int maximumPasswordLength() const;
00142 
00152     void setReasonablePasswordLength(int reasonableLength);
00153 
00157     int reasonablePasswordLength() const;
00158 
00168     void setPasswordStrengthWarningLevel(int warningLevel);
00169 
00173     int passwordStrengthWarningLevel() const;
00174 
00178     QString password() const;
00179 
00183     virtual void accept();
00184 
00185 protected:
00186 
00192     virtual bool checkPassword(const QString &) ;
00193 
00194 Q_SIGNALS:
00195 
00199     void newPassword(const QString &password);
00200 
00201 
00202 private:
00203     class KNewPasswordDialogPrivate;
00204     KNewPasswordDialogPrivate* const d;
00205 
00206     Q_PRIVATE_SLOT( d, void _k_textChanged() )
00207 };
00208 
00209 #endif // KNEWPASSWORDDIALOG_H
00210 
00211 // kate: space-indent on; indent-width 4; encoding utf-8; replace-tabs on;

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal