| 1 | /* |
| 2 | * File: HerculesExecutor.h |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: Aug 7, 2009 |
| 6 | * |
| 7 | * Copyright (c) 2009-2013 Jacob Dekel |
| 8 | * $Id$ |
| 9 | * |
| 10 | * This object runs hercules as a child process |
| 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 | |
| 27 | #ifndef HERCULESEXECUTOR_H_ |
| 28 | #define HERCULESEXECUTOR_H_cxx . . $ `HercStudio/HerculesExecutor.h:28:9`! |
| 29 | #include <QMainWindow> |
| 30 | #include <QProcess> |
| 31 | #include <string> |
| 32 | |
| 33 | class HerculesExecutorcxx . . $ HerculesExecutor# |
| 34 | { |
| 35 | public: |
| 36 | HerculesExecutorcxx . . $ HerculesExecutor#HerculesExecutor(d9bdacaaf48540d5).(QMainWindowcxx . . $ QMainWindow#& mainWindow, int pid=0); |
| 37 | virtual ~cxx . . $ HerculesExecutor#`~HerculesExecutor`(49f6e7a06ebc5aa8).HerculesExecutorcxx . . $ HerculesExecutor#(); |
| 38 | |
| 39 | int runcxx . . $ HerculesExecutor#run(6649784b9cb66156).(stdcxx . . $ std/::stringcxx . . $ std/string# configName, stdcxx . . $ std/::stringcxx . . $ std/string# herculesPath); |
| 40 | void issueCommandcxx . . $ HerculesExecutor#issueCommand(85c52e162fed56f9).(const char * command); |
| 41 | void issueFormattedCommandcxx . . $ HerculesExecutor#issueFormattedCommand(2fa786934fe80e24).(const char *format, const char * arg1); |
| 42 | void issueFormattedCommandcxx . . $ HerculesExecutor#issueFormattedCommand(34d26762b42c433a).(const char *format, const int arg1); |
| 43 | void issueFormattedCommandcxx . . $ HerculesExecutor#issueFormattedCommand(facfdab5246d4be7).(const char *format, const char * arg1, const char *arg2); |
| 44 | QByteArraycxx . . $ QByteArray# getLinecxx . . $ HerculesExecutor#getLine(b3c286cec66e09f4).(); |
| 45 | bool getLinecxx . . $ HerculesExecutor#getLine(37e8d18a243bba77).(char * buff, int max); |
| 46 | QByteArraycxx . . $ QByteArray# getStatusLinecxx . . $ HerculesExecutor#getStatusLine(b3c286cec66e09f4).(); |
| 47 | bool getStatusLinecxx . . $ HerculesExecutor#getStatusLine(37e8d18a243bba77).(char * buff, int max); |
| 48 | QProcesscxx . . $ QProcess# * getQProcesscxx . . $ HerculesExecutor#getQProcess(54dfb229bc559d84).(){ return mProcesscxx . . $ HerculesExecutor#mProcess.; }; |
| 49 | int statecxx . . $ HerculesExecutor#state(b126dc7c1de90089).() {return mProcesscxx . . $ HerculesExecutor#mProcess.->statecxx . . $ QProcess#state(12547b18370478e0).();}; |
| 50 | |
| 51 | private: |
| 52 | QMainWindowcxx . . $ QMainWindow# & mMainWindowcxx . . $ HerculesExecutor#mMainWindow.; |
| 53 | QProcesscxx . . $ QProcess# *mProcesscxx . . $ HerculesExecutor#mProcess.; |
| 54 | int mPidcxx . . $ HerculesExecutor#mPid.; |
| 55 | }; |
| 56 | |
| 57 | #endif /* HERCULESEXECUTOR_H_ */ |