kpty.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __kpty_h__
00024 #define __kpty_h__
00025
00026 #include <qglobal.h>
00027 #include <kdelibs_export.h>
00028
00029 #ifdef Q_OS_UNIX
00030
00031 struct KPtyPrivate;
00032
00040 class KDECORE_EXPORT KPty {
00041
00042 public:
00043
00047 KPty();
00048
00055 ~KPty();
00056
00062 bool open();
00063
00067 void close();
00068
00073 void setCTty();
00074
00085 void login(const char *user = 0, const char *remotehost = 0);
00086
00090 void logout();
00091
00099 void setWinSize(int lines, int columns);
00100
00108 void setXonXoff(bool useXonXoff);
00109
00115 const char *ttyName() const;
00116
00122 int masterFd() const;
00123
00129 int slaveFd() const;
00130
00131 private:
00132 bool chownpty(bool grant);
00133
00134 KPtyPrivate *d;
00135 };
00136
00137 #endif //Q_OS_UNIX
00138 #endif
00139
This file is part of the documentation for kdecore Library Version 3.3.90.