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

interfaces

  • interfaces
  • tdescript
  • sample
shellscript.h
1 /* This file is part of the KDE project
2  Copyright (C) 2001 Ian Reinhart Geiser (geiseri@kde.org)
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 #ifndef __shellscript_h__
20 #define __shellscript_h__
21 
22 #include <scriptinterface.h>
23 #include <tqvariant.h>
24 #include <tqobject.h>
25 #include <tdeprocess.h>
26 //using namespace KScriptInterface;
27 class ShellScript : public KScriptInterface
28 {
29  TQ_OBJECT
30 public:
31  ShellScript(KScriptClientInterface *parent, const char *name, const TQStringList &args);
32  virtual ~ShellScript();
33  TQString script() const;
34  void setScript( const TQString &scriptFile );
35  void setScript( const TQString &scriptLibFile, const TQString &method );
36  void run(TQObject *context = 0, const TQVariant &arg = 0);
37  void kill();
38 private slots:
39  void Exit(TDEProcess *proc);
40  void stdErr(TDEProcess *proc, char *buffer, int buflen);
41  void stdOut(TDEProcess *proc, char *buffer, int buflen);
42 private:
43  TDEProcess *m_script;
44  KScriptClientInterface *ScriptClientInterface;
45  TQString m_scriptName;
46 };
47 
48 #endif
KScriptClientInterface
This class is used for allowing feedback to the main system.
Definition: scriptclientinterface.h:74
KScriptInterface
This class is the base for all script engines.
Definition: scriptinterface.h:48
KScriptInterface::run
virtual void run(TQObject *context=0, const TQVariant &arg=0)=0
Run the actual script code This can both take a context object that will be shared between the main a...
KScriptInterface::script
virtual TQString script() const =0
Return the current script code data.
KScriptInterface::kill
virtual void kill()=0
Abort the scripts run.
KScriptInterface::ScriptClientInterface
KScriptClientInterface * ScriptClientInterface
This is the method for sending feedback to applications.
Definition: scriptinterface.h:85
KScriptInterface::setScript
virtual void setScript(const TQString &scriptFile)=0
Sets the path to the script library that we are going to embed.
TDEProcess

interfaces

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

interfaces

Skip menu "interfaces"
  • 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 interfaces by doxygen 1.9.1
This website is maintained by Timothy Pearson.