| 1 | /* |
| 2 | * File: LogRunner.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 collects data from the hercules log into the queue |
| 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 LOGRUNNER_H_ |
| 28 | #define LOGRUNNER_H_cxx . . $ `HercStudio/LogRunner.h:28:9`! |
| 29 | |
| 30 | #include "Runner.h"cxx . . $ `<file>/HercStudio/Runner.h`/ |
| 31 | #include "HerculesStudio.h"cxx . . $ `<file>/HercStudio/HerculesStudio.h`/ |
| 32 | #include "SynchronizedQueue.h"cxx . . $ `<file>/HercStudio/SynchronizedQueue.h`/ |
| 33 | #include "HerculesExecutor.h"cxx . . $ `<file>/HercStudio/HerculesExecutor.h`/ |
| 34 | |
| 35 | #include <QThread> |
| 36 | #include <QWidget> |
| 37 | |
| 38 | class QProcesscxx . . $ QProcess#; |
| 39 | class LogRunnercxx . . $ LogRunner# : public Runnercxx . . $ Runner# |
| 40 | { |
| 41 | Q_OBJECTcxx . . $ LogRunner#trUtf8(75d9f1c324b4579d). |
| 42 | public: |
| 43 | LogRunnercxx . . $ LogRunner#LogRunner(5d9b11d72cda9ed7).(SynchronizedQueuecxx . . $ SynchronizedQueue#& logQueue, HerculesExecutorcxx . . $ HerculesExecutor# * herculesExecutor, int maxQueueSize); |
| 44 | virtual ~cxx . . $ LogRunner#`~LogRunner`(49f6e7a06ebc5aa8).LogRunnercxx . . $ LogRunner#(); |
| 45 | |
| 46 | void runcxx . . $ LogRunner#run(49f6e7a06ebc5aa8).(); |
| 47 | |
| 48 | private: |
| 49 | stdcxx . . $ std/::stringcxx . . $ std/string# mLogFifocxx . . $ LogRunner#mLogFifo.; |
| 50 | HerculesExecutorcxx . . $ HerculesExecutor# *mHerculesExecutorcxx . . $ LogRunner#mHerculesExecutor.; |
| 51 | QProcesscxx . . $ QProcess# *mProcesscxx . . $ LogRunner#mProcess.; |
| 52 | bool mRunningcxx . . $ LogRunner#mRunning.; |
| 53 | int mMaxQueueSizecxx . . $ LogRunner#mMaxQueueSize.; |
| 54 | |
| 55 | public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 56 | #ifdef hFramework |
| 57 | void readStandardOutput(); |
| 58 | #endif |
| 59 | }; |
| 60 | |
| 61 | #endif /* LOGRUNNER_H_ */ |