File indexing completed on 2024-04-14 03:51:51

0001 /*
0002     This file is part of the KDE project, module kdesu.
0003     SPDX-FileCopyrightText: 1999, 2000 Geert Jansen <jansen@kde.org>
0004     SPDX-FileCopyrightText: 1997, 1998 Lars Doelle <lars.doelle@on-line.de>
0005 
0006     SPDX-License-Identifier: GPL-2.0-only
0007 */
0008 
0009 #ifndef KDESUPTYPROCESS_P_H
0010 #define KDESUPTYPROCESS_P_H
0011 
0012 #include <KPty>
0013 
0014 #include <QByteArray>
0015 #include <QList>
0016 
0017 namespace KDESu
0018 {
0019 class PtyProcessPrivate
0020 {
0021 public:
0022     PtyProcessPrivate()
0023     {
0024     }
0025     virtual ~PtyProcessPrivate()
0026     {
0027         delete pty;
0028     }
0029 
0030     QList<QByteArray> env;
0031     KPty *pty = nullptr;
0032     QByteArray inputBuffer;
0033     // Whether to keep echo on after PTY creation
0034     bool wantLocalEcho = true;
0035 };
0036 
0037 }
0038 
0039 #endif