1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2003, 2007 Oswald Buddenhagen <ossi@kde.org>
4 SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#ifndef kpty_p_h
10#define kpty_p_h
11
12#include "kpty.h"
13
14#include <config-pty.h>
15
16#include <QByteArray>
17#include <QString>
18
19class KPtyPrivate
20{
21public:
22 Q_DECLARE_PUBLIC(KPty)
23
24 KPtyPrivate(KPty *parent);
25 virtual ~KPtyPrivate();
26#if !HAVE_OPENPTY
27 bool chownpty(bool grant);
28#endif
29
30 int masterFd;
31 int slaveFd;
32 bool ownMaster : 1;
33
34 QByteArray ttyName;
35 QString utempterPath;
36
37 bool withCTty = true;
38
39 KPty *q_ptr;
40};
41
42#endif
43

source code of kpty/src/kpty_p.h