File: sudlg.h

package info (click to toggle)
kde-cli-tools 4%3A6.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,396 kB
  • sloc: cpp: 4,368; sh: 42; makefile: 7
file content (38 lines) | stat: -rw-r--r-- 753 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* vi: ts=8 sts=4 sw=4
 *
 * This file is part of the KDE project, module kdesu.
 * SPDX-FileCopyrightText: 2000 Geert Jansen <jansen@kde.org>
 * SPDX-License-Identifier: Artistic-2.0
 */

#ifndef __SuDlg_h_Included__
#define __SuDlg_h_Included__

#include <QByteArray>

#include <KPasswordDialog>
#include <KDESu/SuProcess>

using namespace KDESu;

class KDEsuDialog : public KPasswordDialog
{
    Q_OBJECT

public:
    KDEsuDialog(QByteArray user, QByteArray authUser, bool enableKeep, const QString &icon, bool withIgnoreButton);
    ~KDEsuDialog() override;

    enum ResultCodes { AsUser = 10 };

private Q_SLOTS:
    void slotUser1();

protected:
    bool checkPassword() override;

private:
    SuProcess proc;
};

#endif // __SuDlg_h_Included__