• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Utility Library
 

KDevelop Utility Library

  • lib
  • util
execcommand.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 Copyright (C) 2002 Harald Fernengel <harry@kdevelop.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
20#ifndef _EXECCOMMAND_H_
21#define _EXECCOMMAND_H_
22
23#include <tqobject.h>
24#include <tqstringlist.h>
25
26class TDEProcess;
27class KProgressDialog;
28
45class ExecCommand : public TQObject
46{
47 TQ_OBJECT
48
49public:
50 ExecCommand( const TQString& executable, const TQStringList& args,
51 const TQString& workingDir = TQString(),
52 const TQStringList& env = TQStringList(), TQObject* parent = 0, const char* name = 0 );
53 ~ExecCommand();
54
55signals:
56 void finished( const TQString& output, const TQString& errorOutput );
57
58private slots:
59 void receivedStdout (TDEProcess *, char *buffer, int buflen);
60 void receivedStderr (TDEProcess *, char *buffer, int buflen);
61 void processExited();
62 void cancelClicked();
63
64private:
65 TDEProcess* proc;
66 KProgressDialog* progressDlg;
67 TQString out;
68 TQString err;
69};
70
71#endif
ExecCommand
This class invokes a binary with the arguments passed in the constructor and emits the signal finishe...
Definition execcommand.h:46

KDevelop Utility Library

Skip menu "KDevelop Utility Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

KDevelop Utility Library

Skip menu "KDevelop Utility Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Utility Library by doxygen 1.9.8
This website is maintained by Timothy Pearson.