1
//===========================================================================
3
// This file is part of the KDE project
5
// Copyright (c) 1999 Martin R. Jones <mjones@kde.org>
15
//===========================================================================
17
// Simple dialog for entering a password.
18
// It does not handle password validation.
20
class PasswordDlg : public QFrame
24
PasswordDlg(QWidget *parent);
26
//-----------------------------------------------------------------------
28
// Reset the password to ""
32
//-----------------------------------------------------------------------
34
// Show "Failed" in the dialog for 1.5 seconds
38
//-----------------------------------------------------------------------
40
// Keyboard events should be passed to this function directly.
41
// We accept key presses this way because the keyboard is grabbed, so we
42
// don't get any events. There's nicer ways of handling this, but this
45
void keyPressed(XKeyEvent *);
47
//-----------------------------------------------------------------------
49
// return the password the user entered.
51
QString password() const { return mPassword; }
55
QString currentUser();
56
QString passwordQueryMsg(bool name);
57
virtual void timerEvent(QTimerEvent *);