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
00026 #include <QtGui/QLineEdit>
00027
00028 #include <kdialog.h>
00029
00030 class QWidget;
00031
00032
00064 class KDEUI_EXPORT KNewPasswordDialog
00065 : public KDialog
00066 {
00067 Q_OBJECT
00068
00069 public:
00075 explicit KNewPasswordDialog(QWidget *parent=0);
00076
00080 virtual ~KNewPasswordDialog();
00081
00085 void setPrompt(const QString &prompt);
00086
00090 QString prompt() const;
00091
00097 void setPixmap(const QPixmap&);
00098
00102 QPixmap pixmap() const;
00103
00109 void setAllowEmptyPasswords(bool allowed);
00110
00116 bool allowEmptyPasswords() const;
00117
00125 void setMinimumPasswordLength(int minLength);
00126
00130 int minimumPasswordLength() const;
00131
00137 void setMaximumPasswordLength(int maxLength);
00138
00142 int maximumPasswordLength() const;
00143
00153 void setReasonablePasswordLength(int reasonableLength);
00154
00158 int reasonablePasswordLength() const;
00159
00169 void setPasswordStrengthWarningLevel(int warningLevel);
00170
00174 int passwordStrengthWarningLevel() const;
00175
00182 QString password() const;
00183
00187 virtual void accept();
00188
00189 protected:
00190
00196 virtual bool checkPassword(const QString &) ;
00197
00205 bool checkAndGetPassword(QString *pwd);
00206
00207 Q_SIGNALS:
00208
00212 void newPassword(const QString &password);
00213
00214
00215 private:
00216 class KNewPasswordDialogPrivate;
00217 KNewPasswordDialogPrivate* const d;
00218
00219 Q_PRIVATE_SLOT( d, void _k_textChanged() )
00220 };
00221
00222 #endif // KNEWPASSWORDDIALOG_H
00223
00224