2000-03-15 11:21:53 +00:00
|
|
|
/* vi: ts=8 sts=4 sw=4
|
|
|
|
*
|
|
|
|
* This file is part of the KDE project, module kdesu.
|
|
|
|
* Copyright (C) 2000 Geert Jansen <jansen@kde.org>
|
|
|
|
*/
|
|
|
|
|
2007-12-23 22:58:09 +00:00
|
|
|
#ifndef PASSWDDLG_H
|
|
|
|
#define PASSWDDLG_H
|
2000-03-15 11:21:53 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
|
2007-12-23 22:58:09 +00:00
|
|
|
#endif // PASSWDDLG_H
|