Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / apps / konsole / src / kwrited.h
bloba6088bcd2414ed322fa289acb413fdff4abe2b53
1 /*
2 kwrited is a write(1) receiver for KDE.
3 Copyright (C) 1997,1998 by Lars Doelle <lars.doelle@on-line.de>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 02110-1301 USA.
21 #ifndef KWRITED_H
22 #define KWRITED_H
24 #include <kdedmodule.h>
25 #include <QtGui/QTextEdit>
26 #include <QtGui/QMenu>
28 class KPty;
30 class KWrited : public QTextEdit
31 { Q_OBJECT
32 public:
33 KWrited();
34 ~KWrited();
35 protected:
36 virtual void contextMenuEvent(QContextMenuEvent *);
38 private Q_SLOTS:
39 void block_in(int fd);
40 void clearText(void);
41 private:
42 KPty* pty;
45 class KWritedModule : public KDEDModule
47 Q_OBJECT
48 public:
49 KWritedModule(QObject* parent, const QList<QVariant>&);
50 ~KWritedModule();
51 private:
52 KWrited* pro;
55 #endif