add more spacing
[personal-kdebase.git] / apps / kdepasswd / passwddlg.h
blob262e485007debbb796eab488daa1b28fe079ed47
1 /* vi: ts=8 sts=4 sw=4
3 * This file is part of the KDE project, module kdesu.
4 * Copyright (C) 2000 Geert Jansen <jansen@kde.org>
6 Permission to use, copy, modify, and distribute this software
7 and its documentation for any purpose and without fee is hereby
8 granted, provided that the above copyright notice appear in all
9 copies and that both that the copyright notice and this
10 permission notice and warranty disclaimer appear in supporting
11 documentation, and that the name of the author not be used in
12 advertising or publicity pertaining to distribution of the
13 software without specific, written prior permission.
15 The author disclaim all warranties with regard to this
16 software, including all implied warranties of merchantability
17 and fitness. In no event shall the author be liable for any
18 special, indirect or consequential damages or any damages
19 whatsoever resulting from loss of use, data or profits, whether
20 in an action of contract, negligence or other tortious action,
21 arising out of or in connection with the use or performance of
22 this software.
25 #ifndef PASSWDDLG_H
26 #define PASSWDDLG_H
28 #include <kpassworddialog.h>
29 #include <knewpassworddialog.h>
30 #include <QtCore/QByteRef>
32 class KDEpasswd1Dialog
33 : public KPasswordDialog
35 Q_OBJECT
37 public:
38 KDEpasswd1Dialog();
39 ~KDEpasswd1Dialog();
41 static int getPassword(QByteArray &password);
43 void accept();
47 class KDEpasswd2Dialog
48 : public KNewPasswordDialog
50 Q_OBJECT
52 public:
53 KDEpasswd2Dialog(const char *oldpass, const QByteArray &user);
54 ~KDEpasswd2Dialog();
56 void accept();
58 private:
59 const char *m_Pass;
60 QByteArray m_User;
65 #endif // PASSWDDLG_H