2000-03-15 11:21:53 +00:00
|
|
|
/* vi: ts=8 sts=4 sw=4
|
|
|
|
*
|
2003-04-21 18:52:31 +00:00
|
|
|
* $Id$
|
2000-03-15 11:21:53 +00:00
|
|
|
*
|
|
|
|
* This file is part of the KDE project, module kdesu.
|
|
|
|
* Copyright (C) 2000 Geert Jansen <jansen@kde.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PasswdDlg_h_Incluced__
|
|
|
|
#define __PasswdDlg_h_Incluced__
|
|
|
|
|
2006-01-23 11:07:16 +00:00
|
|
|
#include <kpassworddialog.h>
|
2007-01-08 09:22:45 +00:00
|
|
|
#include <knewpassworddialog.h>
|
2007-05-09 22:23:52 +00:00
|
|
|
#include <QtCore/QByteRef>
|
2000-03-15 11:21:53 +00:00
|
|
|
|
|
|
|
class KDEpasswd1Dialog
|
|
|
|
: public KPasswordDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2003-04-21 18:52:31 +00:00
|
|
|
KDEpasswd1Dialog();
|
2000-03-15 11:21:53 +00:00
|
|
|
~KDEpasswd1Dialog();
|
|
|
|
|
2005-07-28 14:59:42 +00:00
|
|
|
static int getPassword(QByteArray &password);
|
2000-03-15 11:21:53 +00:00
|
|
|
|
2007-01-08 09:22:45 +00:00
|
|
|
void accept();
|
2000-03-15 11:21:53 +00:00
|
|
|
};
|
2007-05-03 17:55:57 +00:00
|
|
|
|
2000-03-15 11:21:53 +00:00
|
|
|
|
|
|
|
class KDEpasswd2Dialog
|
2007-01-08 09:22:45 +00:00
|
|
|
: public KNewPasswordDialog
|
2000-03-15 11:21:53 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2007-06-23 18:53:52 +00:00
|
|
|
KDEpasswd2Dialog(const char *oldpass, const QByteArray &user);
|
2000-03-15 11:21:53 +00:00
|
|
|
~KDEpasswd2Dialog();
|
|
|
|
|
2007-01-08 09:22:45 +00:00
|
|
|
void accept();
|
|
|
|
|
|
|
|
|
2000-03-15 11:21:53 +00:00
|
|
|
protected:
|
|
|
|
bool checkPassword(const char *password);
|
2007-05-03 17:55:57 +00:00
|
|
|
|
2000-03-15 11:21:53 +00:00
|
|
|
private:
|
|
|
|
const char *m_Pass;
|
2005-07-28 14:59:42 +00:00
|
|
|
QByteArray m_User;
|
2000-03-15 11:21:53 +00:00
|
|
|
};
|
2007-05-03 17:55:57 +00:00
|
|
|
|
2000-03-15 11:21:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif // __PasswdDlg_h_Incluced__
|