• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

kpty.h

00001 /* This file is part of the KDE libraries
00002 
00003     Copyright (C) 1997-2002 The Konsole Developers
00004     Copyright (C) 2002 Waldo Bastian <bastian@kde.org>
00005     Copyright (C) 2002-2003 Oswald Buddenhagen <ossi@kde.org>
00006 
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Library General Public
00009     License as published by the Free Software Foundation; either
00010     version 2 of the License, or (at your option) any later version.
00011 
00012     This library is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015     Library General Public License for more details.
00016 
00017     You should have received a copy of the GNU Library General Public License
00018     along with this library; see the file COPYING.LIB.  If not, write to
00019     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020     Boston, MA 02110-1301, USA.
00021 */
00022 
00023 #ifndef __kpty_h__
00024 #define __kpty_h__
00025 
00026 #include <tqglobal.h>
00027 #include <tdelibs_export.h>
00028 
00029 #ifdef Q_OS_UNIX
00030 
00031 struct KPtyPrivate;
00032 
00040 class TDECORE_EXPORT KPty {
00041 
00042 public:
00043 
00047   KPty();
00048 
00055   ~KPty();
00056 
00062   bool open();
00063 
00069   bool setPty(int pty_master);
00070 
00074   void close();
00075 
00080   void setCTty();
00081 
00092   void login(const char *user = 0, const char *remotehost = 0);
00093 
00097   void logout();
00098 
00106   void setWinSize(int lines, int columns);
00107 
00115   void setXonXoff(bool useXonXoff);
00116 
00124   void setUtf8Mode(bool useUtf8);
00125 
00126 
00132   const char *ttyName() const;
00133 
00139   int masterFd() const;
00140 
00146   int slaveFd() const;
00147 
00148 protected:
00149   bool _attachPty(int pty_master);
00150 
00151 private:
00152   bool chownpty(bool grant);
00153 
00154   KPtyPrivate *d;
00155 };
00156 
00157 #endif //Q_OS_UNIX
00158 #endif
00159 

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.7.1
This website is maintained by Timothy Pearson.