File indexing completed on 2024-04-28 05:27:02
0001 /* vi: ts=8 sts=4 sw=4 0002 * 0003 * This file is part of the KDE project, module kdesu. 0004 * SPDX-FileCopyrightText: 2000 Geert Jansen <jansen@kde.org> 0005 * SPDX-License-Identifier: Artistic-2.0 0006 */ 0007 0008 #ifndef __SuDlg_h_Included__ 0009 #define __SuDlg_h_Included__ 0010 0011 #include <QByteArray> 0012 0013 #include <KPasswordDialog> 0014 #include <KDESu/SuProcess> 0015 0016 using namespace KDESu; 0017 0018 class KDEsuDialog : public KPasswordDialog 0019 { 0020 Q_OBJECT 0021 0022 public: 0023 KDEsuDialog(QByteArray user, QByteArray authUser, bool enableKeep, const QString &icon, bool withIgnoreButton); 0024 ~KDEsuDialog() override; 0025 0026 enum ResultCodes { AsUser = 10 }; 0027 0028 private Q_SLOTS: 0029 void slotUser1(); 0030 0031 protected: 0032 bool checkPassword() override; 0033 0034 private: 0035 SuProcess proc; 0036 }; 0037 0038 #endif // __SuDlg_h_Included__