Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / kdm / kfrontend / kconsole.h
blob881c515873b7c08a59d1a7e1f3e147bbf07df916
1 /*
3 xconsole widget for KDM
5 Copyright (C) 2002-2003 Oswald Buddenhagen <ossi@kde.org>
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 #ifndef KCONSOLE_H
25 #define KCONSOLE_H
27 #include <QtGui/QTextEdit>
29 class KPty;
30 class QSocketNotifier;
32 class KConsole : public QTextEdit {
33 Q_OBJECT
34 typedef QTextEdit inherited;
36 public:
37 KConsole( QWidget *_parent = 0 );
38 ~KConsole();
40 private Q_SLOTS:
41 void slotData();
43 private:
44 int openConsole();
45 void closeConsole();
47 KPty *pty;
48 QSocketNotifier *notifier;
49 QString leftover;
50 int fd;
53 #endif // KCONSOLE_H