~larryprice/acolyterm/release-0.1

« back to all changes in this revision

Viewing changes to src/plugin/konsole/kpty_p.h

  • Committer: Larry Price
  • Date: 2016-06-15 14:47:59 UTC
  • Revision ID: larry.price@canonical.com-20160615144759-6wopn0gxwgta3x1n
Updating QMLTermWidget and removing unnecessary konsole codebase

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This file is part of the KDE libraries
2
 
 
3
 
    Copyright (C) 2003,2007 Oswald Buddenhagen <ossi@kde.org>
4
 
 
5
 
    Rewritten for QT4 by e_k <e_k at users.sourceforge.net>, Copyright (C)2008
6
 
 
7
 
    This library is free software; you can redistribute it and/or
8
 
    modify it under the terms of the GNU Library General Public
9
 
    License as published by the Free Software Foundation; either
10
 
    version 2 of the License, or (at your option) any later version.
11
 
 
12
 
    This library is distributed in the hope that it will be useful,
13
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 
    Library General Public License for more details.
16
 
 
17
 
    You should have received a copy of the GNU Library General Public License
18
 
    along with this library; see the file COPYING.LIB.  If not, write to
19
 
    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20
 
    Boston, MA 02110-1301, USA.
21
 
*/
22
 
 
23
 
#ifndef kpty_p_h
24
 
#define kpty_p_h
25
 
 
26
 
#include "kpty.h"
27
 
 
28
 
#include <QtCore/QByteArray>
29
 
 
30
 
struct KPtyPrivate {
31
 
 
32
 
    Q_DECLARE_PUBLIC(KPty)
33
 
 
34
 
    KPtyPrivate(KPty* parent);
35
 
    virtual ~KPtyPrivate();
36
 
 
37
 
#ifndef HAVE_OPENPTY
38
 
    bool chownpty(bool grant);
39
 
#endif
40
 
 
41
 
    int masterFd;
42
 
    int slaveFd;
43
 
    bool ownMaster:1;
44
 
 
45
 
    QByteArray ttyName;
46
 
 
47
 
    KPty *q_ptr;
48
 
};
49
 
 
50
 
#endif