kdesu_pty.h

00001 /* vi: ts=8 sts=4 sw=4
00002  *
00003  * $Id: kdesu_pty.h 363273 2004-11-15 22:43:23Z mueller $
00004  *
00005  * This file is part of the KDE project, module kdesu.
00006  * Copyright (C) 1999,2000 Geert Jansen <jansen@kde.org>
00007  *
00008  * This is free software; you can use this library under the GNU Library 
00009  * General Public License, version 2. See the file "COPYING.LIB" for the 
00010  * exact licensing terms.
00011  */
00012 
00013 
00018 #ifndef __PTY_h_Included__
00019 #define __PTY_h_Included__
00020 
00021 #include <qcstring.h>
00022 
00023 #include <kdelibs_export.h>
00024 
00025 class KDESU_EXPORT PTY {
00026 
00027 public:
00031     PTY();
00032 
00036     ~PTY();
00037 
00042     int getpt();
00043 
00048     int grantpt();
00049 
00054     int unlockpt();
00055 
00060     QCString ptsname();
00061     
00062 private:
00063 
00064     int ptyfd;
00065     QCString ptyname, ttyname;
00066 
00067     class PTYPrivate;
00068     PTYPrivate *d;
00069 };
00070     
00071 #endif  // __PTY_h_Included__
KDE Home | KDE Accessibility Home | Description of Access Keys