KDEUI
Go to the documentation of this file.
21 #ifndef KPASSWORDDIALOG_H
22 #define KPASSWORDDIALOG_H
25 #include <QtCore/QFlags>
69 ShowKeepPassword = 0x01,
74 ShowUsernameLine = 0x02,
78 UsernameReadOnly = 0x04,
83 ShowAnonymousLoginCheckBox = 0x08,
88 ShowDomainLine = 0x10,
95 Q_DECLARE_FLAGS(KPasswordDialogFlags, KPasswordDialogFlag)
133 const KPasswordDialogFlags& flags = 0,
134 const KDialog::ButtonCodes otherButtons = 0);
145 void setPrompt(
const QString& prompt );
150 QString prompt()
const;
155 void setPixmap(
const QPixmap&);
159 QPixmap pixmap()
const;
171 void addCommentLine(
const QString&
label,
const QString& comment );
178 void showErrorMessage(
const QString& message,
const ErrorType type = PasswordError );
184 QString password()
const;
189 void setUsername(
const QString&);
195 QString username()
const;
201 void setDomain(
const QString&);
208 QString domain()
const;
214 void setAnonymousMode(
bool anonymous);
220 bool anonymousMode()
const;
231 bool keepPassword()
const;
241 void setKeepPassword(
bool b );
251 void setUsernameReadOnly(
bool readOnly );
257 void setPassword(
const QString& password );
279 void gotPassword(
const QString& password ,
bool keep );
287 void gotUsernameAndPassword(
const QString& username,
const QString& password ,
bool keep );
295 virtual bool checkPassword();
299 Q_PRIVATE_SLOT(d,
void actuallyAccept())
300 Q_PRIVATE_SLOT(d,
void activated( const QString& userName ))
301 Q_PRIVATE_SLOT(d,
void updateFields())
304 class KPasswordDialogPrivate;
305 friend class KPasswordDialogPrivate;
306 KPasswordDialogPrivate* const d;
QString label(StandardShortcut id)
Returns a localized label for user-visible display.
@ UsernameError
A problem with the user name as entered.
@ PasswordError
Incorrect password.
@ FatalError
Error preventing further attempts, will result in disabling most of the interface.
A dialog base class with standard buttons and predefined layouts.
A dialog for requesting a password and optionaly a login from the end user.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.