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>
|
2005-07-28 14:59:42 +00:00
|
|
|
#include <QByteArray>
|
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
|
|
|
|
|
|
|
protected:
|
|
|
|
bool checkPassword(const char *password);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class KDEpasswd2Dialog
|
|
|
|
: public KPasswordDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2005-07-28 14:59:42 +00:00
|
|
|
KDEpasswd2Dialog(const char *oldpass, QByteArray user);
|
2000-03-15 11:21:53 +00:00
|
|
|
~KDEpasswd2Dialog();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
bool checkPassword(const char *password);
|
|
|
|
|
|
|
|
private:
|
|
|
|
const char *m_Pass;
|
2005-07-28 14:59:42 +00:00
|
|
|
QByteArray m_User;
|
2000-03-15 11:21:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // __PasswdDlg_h_Incluced__
|