1 | /* |
2 | This file is part of the KDE project, module kdesu. |
3 | SPDX-FileCopyrightText: 1999, 2000 Geert Jansen <jansen@kde.org> |
4 | SPDX-FileCopyrightText: 1997, 1998 Lars Doelle <lars.doelle@on-line.de> |
5 | |
6 | SPDX-License-Identifier: GPL-2.0-only |
7 | */ |
8 | |
9 | #ifndef KDESUPTYPROCESS_P_H |
10 | #define KDESUPTYPROCESS_P_H |
11 | |
12 | #include <KPty> |
13 | |
14 | #include <QByteArray> |
15 | #include <QList> |
16 | |
17 | namespace KDESu |
18 | { |
19 | class PtyProcessPrivate |
20 | { |
21 | public: |
22 | PtyProcessPrivate() |
23 | { |
24 | } |
25 | virtual ~PtyProcessPrivate() |
26 | { |
27 | delete pty; |
28 | } |
29 | |
30 | QList<QByteArray> env; |
31 | KPty *pty = nullptr; |
32 | QByteArray inputBuffer; |
33 | // Whether to keep echo on after PTY creation |
34 | bool wantLocalEcho = true; |
35 | }; |
36 | |
37 | } |
38 | |
39 | #endif |
40 | |