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

interfaces

  • interfaces
  • kscript
  • 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 <kprocess.h>
26 //using namespace KScriptInterface;
27 class ShellScript : public KScriptInterface
28 {
29  Q_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(KProcess *proc);
40  void stdErr(KProcess *proc, char *buffer, int buflen);
41  void stdOut(KProcess *proc, char *buffer, int buflen);
42 private:
43  KProcess *m_script;
44  KScriptClientInterface *ScriptClientInterface;
45  TQString m_scriptName;
46 };
47 
48 #endif
KProcess
KScriptInterface::ScriptClientInterface
KScriptClientInterface * ScriptClientInterface
This is the method for sending feedback to applications.
Definition: scriptinterface.h:85
KScriptInterface::script
virtual TQString script() const =0
Return the current script code data.
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...
KScriptClientInterface
This class is used for allowing feedback to the main system.
Definition: scriptclientinterface.h:73
KScriptInterface::setScript
virtual void setScript(const TQString &scriptFile)=0
Sets the path to the script library that we are going to embed.
KScriptInterface::kill
virtual void kill()=0
Abort the scripts run.
KScriptInterface
This class is the base for all script engines.
Definition: scriptinterface.h:47

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
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for interfaces by doxygen 1.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |