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>
|
2008-01-09 13:13:05 +00:00
|
|
|
|
|
|
|
Permission to use, copy, modify, and distribute this software
|
|
|
|
and its documentation for any purpose and without fee is hereby
|
|
|
|
granted, provided that the above copyright notice appear in all
|
|
|
|
copies and that both that the copyright notice and this
|
|
|
|
permission notice and warranty disclaimer appear in supporting
|
|
|
|
documentation, and that the name of the author not be used in
|
|
|
|
advertising or publicity pertaining to distribution of the
|
|
|
|
software without specific, written prior permission.
|
|
|
|
|
|
|
|
The author disclaim all warranties with regard to this
|
|
|
|
software, including all implied warranties of merchantability
|
|
|
|
and fitness. In no event shall the author be liable for any
|
|
|
|
special, indirect or consequential damages or any damages
|
|
|
|
whatsoever resulting from loss of use, data or profits, whether
|
|
|
|
in an action of contract, negligence or other tortious action,
|
|
|
|
arising out of or in connection with the use or performance of
|
|
|
|
this software.
|
2000-03-15 11:21:53 +00:00
|
|
|
*/
|
|
|
|
|
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
|
|
|
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
|