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
00117
void setUtf8Mode(
bool useUtf8);
00118
00119
00125
const char *ttyName() const;
00126
00132
int masterFd() const;
00133
00139
int slaveFd() const;
00140
00141 private:
00142
bool chownpty(
bool grant);
00143
00144 KPtyPrivate *d;
00145 };
00146
00147 #endif
00148 #endif
00149
This file is part of the documentation for kdecore Library Version 3.4.0.