kde_terminal_interface.h

00001 // interface.h -*- C++ -*-
00002 // Copyright (C)  2002  Dominique Devriese <devriese@kde.org>
00003 // Copyright (C)  2005  Peter Rockai <me@mornfall.net>
00004 
00005 // This library is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU Lesser General Public
00007 // License as published by the Free Software Foundation; either
00008 // version 2.1 of the License, or (at your option) any later version.
00009 
00010 // This library is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // Lesser General Public License for more details.
00014 
00015 // You should have received a copy of the GNU Lesser General Public
00016 // License along with this library; if not, write to the Free Software
00017 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00018 // 02110-1301  USA
00019 
00020 #ifndef KDELIBS_TERMINAL_INTERFACE_H
00021 #define KDELIBS_TERMINAL_INTERFACE_H
00022 
00023 class QString;
00024 class QStrList;
00025 
00026 #include <kdemacros.h>
00027 
00092 class KDE_EXPORT TerminalInterface
00093 {
00094 public:
00098   virtual void startProgram( const QString& program,
00099                              const QStrList& args ) = 0;
00105   virtual void showShellInDir( const QString& dir ) = 0;
00106 
00111   virtual void sendInput( const QString& text ) = 0;
00112 
00113 };
00114 
00129 class KDE_EXPORT ExtTerminalInterface
00130 {
00131 public:
00135   virtual void startProgram( const QString& program,
00136                              const QStrList& args ) = 0;
00142   virtual void showShellInDir( const QString& dir ) = 0;
00143 
00148   virtual void sendInput( const QString& text ) = 0;
00149 
00158   virtual void setAutoStartShell(bool enabled) = 0;
00159 
00165   virtual void setAutoDestroy(bool enabled) = 0;
00166 };
00167 
00168 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys