KDE3Support
k3passworddialog.cpp
Go to the documentation of this file.
305 K3PasswordDialog::K3PasswordDialog(Types type, bool enableKeep, ButtonCodes extraBttn, const QString& icon,
337 const QPixmap pix( KIconLoader::global()->loadIcon( d->iconName, KIconLoader::NoGroup, KIconLoader::SizeHuge, 0, QStringList(), 0, true));
414 const QString strengthBarWhatsThis(i18n("The password strength meter gives an indication of the security "
539 int K3PasswordDialog::getPassword(QWidget *parent, QByteArray &password, const QString &caption,
572 int K3PasswordDialog::getNewPassword(QWidget *parent, QByteArray &password, const QString &caption,
585 int K3PasswordDialog::getNewPassword(QWidget *parent, QByteArray &password, const QString &prompt)
620 d->m_MatchLabel->setText(i18np("Password must be at least 1 character long", "Password must be at least %1 characters long", minPasswordLength));
int passwordStrengthWarningLevel() const
Password strength level below which a warning is given.
Definition: k3passworddialog.cpp:723
QString i18n(const char *text)
int maximumPasswordLength() const
Maximum acceptable password length.
Definition: k3passworddialog.cpp:697
Definition: k3passworddialog.h:47
virtual int heightForWidth(int w) const
Qt::KeyboardModifiers modifiers() const
Type type() const
type * find(void *key) const
virtual QSize sizeHint() const
int width() const
void setModal(bool modal)
QString & fill(QChar ch, int size)
bool remove(void *key)
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
static KIconLoader * global()
void setText(const QString &)
Definition: k3passworddialog.h:47
QString i18np(const char *sing, const char *plur, const A1 &a1)
virtual bool event(QEvent *e)
void setPixmap(const QPixmap &)
void setMinimumWidth(int minw)
virtual QSize sizeHint() const
static int getNewPassword(QWidget *parent, QByteArray &password, const QString &caption, const QString &prompt)
Pops up the dialog, asks the user for a password and returns it.
Definition: k3passworddialog.cpp:572
void setEchoMode(EchoMode)
int exec()
void setAlignment(QFlags< Qt::AlignmentFlag >)
void textChanged(const QString &text)
virtual void keyPressEvent(QKeyEvent *)
Definition: k3passworddialog.cpp:188
int length() const
void setSpacing(int spacing)
KSharedConfigPtr config()
bool isNull() const
void setBuddy(QWidget *buddy)
QSize size() const
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
void ignore()
void setRowStretch(int row, int stretch)
void setAllowEmptyPasswords(bool allowed)
Allow empty passwords? - Default: false.
Definition: k3passworddialog.cpp:666
Definition: k3passworddialog.h:47
void setUpdatesEnabled(bool enable)
virtual bool checkPassword(const char *password)
Virtual function that can be overridden to provide password checking in derived classes.
Definition: k3passworddialog.cpp:533
void setFocus()
static void sorry(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
bool isEmpty() const
QString trimmed() const
virtual void focusInEvent(QFocusEvent *e)
Definition: k3passworddialog.cpp:178
QString text() const
static void disableCoreDumps()
Static helper function that disables core dumps.
Definition: k3passworddialog.cpp:592
void setText(const QString &)
void setMargin(int margin)
void setReasonablePasswordLength(int reasonableLength)
Password length that is expected to be reasonably safe.
Definition: k3passworddialog.cpp:703
virtual void accept()
Types
This enum distinguishes the two operation modes of this dialog:
Definition: k3passworddialog.h:168
void setMaxPasswordLength(int newLength)
Set the current maximum password length.
Definition: k3passworddialog.cpp:272
void setAcceptDrops(bool on)
QByteArray toLocal8Bit() const
int key() const
void setFixedSize(const QSize &s)
void setChecked(bool)
void setAutoDelete(bool enable)
K3PasswordDialog(Types type, bool enableKeep, ButtonCodes extraBttn, QWidget *parent=0)
Constructs a password dialog.
Definition: k3passworddialog.cpp:293
void addLayout(QLayout *layout, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
virtual void focusInEvent(QFocusEvent *e)
The user is asked to enter a password and to confirm it a second time.
Definition: k3passworddialog.h:179
void setWhatsThis(const QString &)
bool keep() const
Returns true if the user wants to keep the password.
Definition: k3passworddialog.cpp:732
static int getPassword(QWidget *parent, QByteArray &password, const QString &caption, const QString &prompt, bool *keep=0L)
Pops up the dialog, asks the user for a password, and returns it.
Definition: k3passworddialog.cpp:539
void setFixedHeight(int h)
void addLine(const QString &key, const QString &value)
Adds a line of information to the dialog.
Definition: k3passworddialog.cpp:467
void setWindowTitle(const QString &)
QWidget(QWidget *parent, QFlags< Qt::WindowType > f)
void setMinimumPasswordLength(int minLength)
Minimum acceptable password length.
Definition: k3passworddialog.cpp:676
virtual QSize sizeHint() const
void replace(void *key, const type *item)
int height() const
void setSpacing(int space)
int reasonablePasswordLength() const
Password length that is expected to be reasonably safe.
Definition: k3passworddialog.cpp:712
static int * ourMaxLength(const K3PasswordEdit *const e)
Definition: k3passworddialog.cpp:61
K3PasswordEdit(QWidget *parent=0)
Constructs a password input widget using the user's global "echo mode" setting.
Definition: k3passworddialog.cpp:102
void setMaximumPasswordLength(int maxLength)
Maximum acceptable password length.
Definition: k3passworddialog.cpp:685
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int minimumPasswordLength() const
Minimum acceptable password length.
Definition: k3passworddialog.cpp:681
T readEntry(const QString &key, const T &aDefault) const
void setPasswordStrengthWarningLevel(int warningLevel)
Set the password strength level below which a warning is given Value is in the range 0 to 99...
Definition: k3passworddialog.cpp:717
const QString & commitString() const
static int warningContinueCancel(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonContinue=KStandardGuiItem::cont(), const KGuiItem &buttonCancel=KStandardGuiItem::cancel(), const QString &dontAskAgainName=QString(), Options options=Notify)
void setWordWrap(bool on)
int maxPasswordLength() const
Returns the current maximum password length.
Definition: k3passworddialog.cpp:285
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.