Debian Codegraph @

HercUtilities/GenericUtility.h

raw symbols SCIP
1 /*
2 * File: GenericUtility.h
3 *
4 * Author: Jacob Dekel
5 * Created on: Aug 26, 2010
6 *
7 * Copyright (c) 2010 Jacob Dekel
8 * $Id$
9 *
10 * This object is a base class for all utilities
11 *
12 * This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 *
25 */
26 #ifndef GENERICUTILITY_H_
27 #define GENERICUTILITY_H_cxx . . $ `HercUtilities/GenericUtility.h:27:9`!
28
29 #include <QDialog>
30 #include <QProcess>
31 #include <string>
32 #include <vector>
33
34 class UtilityExecutorcxx . . $ UtilityExecutor#;
35 class UtilityRunnercxx . . $ UtilityRunner#;
36
37 class GenericUtilitycxx . . $ GenericUtility# : public QDialogcxx . . $ QDialog#
38 {
39 Q_OBJECTcxx . . $ GenericUtility#QPrivateSignal#
40 public:
41 GenericUtilitycxx . . $ GenericUtility#GenericUtility(c2ce7417dc68f8ba).(QStringcxx . . $ QString# name, QWidgetcxx . . $ QWidget# *parent = 0);
42 virtual ~cxx . . $ GenericUtility#`~GenericUtility`(49f6e7a06ebc5aa8).GenericUtilitycxx . . $ GenericUtility#();
43
44 protected:
45 QStringcxx . . $ QString# mNamecxx . . $ GenericUtility#mName.;
46 UtilityExecutorcxx . . $ UtilityExecutor# * mExecutorcxx . . $ GenericUtility#mExecutor.;
47 UtilityRunnercxx . . $ UtilityRunner# * mRunnercxx . . $ GenericUtility#mRunner.;
48 UtilityRunnercxx . . $ UtilityRunner# * mErrorRunnercxx . . $ GenericUtility#mErrorRunner.;
49 bool mStartedcxx . . $ GenericUtility#mStarted., mFinishedcxx . . $ GenericUtility#mFinished., mFinishedOKcxx . . $ GenericUtility#mFinishedOK.;
50 int mRccxx . . $ GenericUtility#mRc.;
51
52 bool runOrStopClickedcxx . . $ GenericUtility#runOrStopClicked(c9857a73d68e59ba).(); // returns false if currently running
53 int executecxx . . $ GenericUtility#execute(e5618828c763ae1e).(const stdcxx . . $ std/::stringcxx . . $ std/string# & pCommand, const stdcxx . . $ std/::stringcxx . . $ std/string#& pPath, stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#>& pParameters, const QStringcxx . . $ QString# &workingDIrectory=QStringcxx . . $ QString#QString(49f6e7a06ebc5aa8).());
54 stdcxx . . $ std/::stringcxx . . $ std/string# getFlatCommandcxx . . $ GenericUtility#getFlatCommand(d005fb85d13f8245).(const stdcxx . . $ std/::stringcxx . . $ std/string# & command, const stdcxx . . $ std/::stringcxx . . $ std/string#& path, stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#>& parameters);
55
56 protected:
57 virtual void finishedSlotcxx . . $ GenericUtility#finishedSlot(49f6e7a06ebc5aa8).() = 0;
58
59 private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!:
60 void timeoutcxx . . $ GenericUtility#timeout(49f6e7a06ebc5aa8).();
61 void finishedcxx . . $ GenericUtility#finished(15c350e1a5203cbf).(int result, QProcesscxx . . $ QProcess#::ExitStatuscxx . . $ QProcess#ExitStatus# status);
62 void errorSlotcxx . . $ GenericUtility#errorSlot(49f6e7a06ebc5aa8).();
63 void runnerErrorcxx . . $ GenericUtility#runnerError(45672f3c6961a244).(const QByteArraycxx . . $ QByteArray#& line);
64
65 signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!:
66 void errorcxx . . $ GenericUtility#error(49f6e7a06ebc5aa8).();
67 void outputcxx . . $ GenericUtility#output(ddc4016aa177531b).(QByteArraycxx . . $ QByteArray# line);
68 };
69
70 #endif /* GENERICUTILITY_H_ */