File indexing completed on 2024-04-28 15:29:31
0001 /* 0002 This file is part of the KDE libraries 0003 SPDX-FileCopyrightText: 2003, 2007 Oswald Buddenhagen <ossi@kde.org> 0004 SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #ifndef kpty_p_h 0010 #define kpty_p_h 0011 0012 #include "kpty.h" 0013 0014 #include <config-pty.h> 0015 0016 #include <QByteArray> 0017 #include <QString> 0018 0019 class KPtyPrivate 0020 { 0021 public: 0022 Q_DECLARE_PUBLIC(KPty) 0023 0024 KPtyPrivate(KPty *parent); 0025 virtual ~KPtyPrivate(); 0026 #if !HAVE_OPENPTY 0027 bool chownpty(bool grant); 0028 #endif 0029 0030 int masterFd; 0031 int slaveFd; 0032 bool ownMaster : 1; 0033 0034 QByteArray ttyName; 0035 QString utempterPath; 0036 0037 bool withCTty = true; 0038 0039 KPty *q_ptr; 0040 }; 0041 0042 #endif