KDEUI
knewpassworddialog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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