File indexing completed on 2025-01-19 04:23:27

0001 /* This file is part of the KDE libraries
0002 
0003     Copyright (C) 2003,2007 Oswald Buddenhagen <ossi@kde.org>
0004 
0005     Rewritten for QT4 by e_k <e_k at users.sourceforge.net>, Copyright (C)2008
0006 
0007     This library is free software; you can redistribute it and/or
0008     modify it under the terms of the GNU Library General Public
0009     License as published by the Free Software Foundation; either
0010     version 2 of the License, or (at your option) any later version.
0011 
0012     This library is distributed in the hope that it will be useful,
0013     but WITHOUT ANY WARRANTY; without even the implied warranty of
0014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0015     Library General Public License for more details.
0016 
0017     You should have received a copy of the GNU Library General Public License
0018     along with this library; see the file COPYING.LIB.  If not, write to
0019     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0020     Boston, MA 02110-1301, USA.
0021 */
0022 
0023 #ifndef kpty_p_h
0024 #define kpty_p_h
0025 
0026 #include "kpty.h"
0027 
0028 #include <QByteArray>
0029 
0030 class KPtyPrivate {
0031 public:
0032 
0033     Q_DECLARE_PUBLIC(KPty)
0034 
0035     KPtyPrivate(KPty* parent);
0036     virtual ~KPtyPrivate();
0037 
0038     bool chownpty(bool grant);
0039 
0040     int masterFd;
0041     int slaveFd;
0042     bool ownMaster:1;
0043 
0044     QByteArray ttyName;
0045 
0046     KPty *q_ptr;
0047 };
0048 
0049 #endif