stty.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef _STTY_H_
00028 #define _STTY_H_
00029
00030 class QSocketNotifier;
00031
00032 #include <qobject.h>
00033 #include <qstring.h>
00034
00035
00036 namespace JAVADebugger
00037 {
00038
00039 class STTY : public QObject
00040 {
00041 Q_OBJECT
00042
00043 public:
00044 STTY(bool ext=false, const QString &termAppName=QString());
00045 ~STTY();
00046
00047 QString getSlave() { return ttySlave; };
00048
00049 private slots:
00050 void OutReceived(int);
00051
00052 signals:
00053 void OutOutput(const char *);
00054 void ErrOutput(const char*);
00055
00056 private:
00057 int findTTY();
00058 bool findExternalTTY(const QString &termApp);
00059
00060 private:
00061 int fout;
00062 int ferr;
00063 QSocketNotifier *out;
00064 QSocketNotifier *err;
00065 QString ttySlave;
00066 int pid_;
00067
00068 char pty_master[50];
00069 char tty_slave[50];
00070 };
00071
00072 }
00073
00074 #endif
This file is part of the documentation for KDevelop Version 3.1.2.