| 1 | /* |
| 2 | * File: Watchdog.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 is the watchdog for the hercules 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 WATCHDOG_H_ |
| 28 | #define WATCHDOG_H_cxx . . $ `HercStudio/Watchdog.h:28:9`! |
| 29 | |
| 30 | #include <QThread> |
| 31 | #include <QProcess> |
| 32 | |
| 33 | class Watchdogcxx . . $ Watchdog# : public QThreadcxx . . $ QThread# |
| 34 | { |
| 35 | Q_OBJECTcxx . . $ QString#QString(e1217c004a86c950). |
| 36 | public: |
| 37 | Watchdogcxx . . $ Watchdog#Watchdog(918ebd27a9ddbad3).(int herculesPid, bool child); |
| 38 | Watchdogcxx . . $ Watchdog#Watchdog(d95c7bd8e85c9818).(QProcesscxx . . $ QProcess# * herculesProcess); |
| 39 | virtual ~cxx . . $ Watchdog#`~Watchdog`(49f6e7a06ebc5aa8).Watchdogcxx . . $ Watchdog#(); |
| 40 | |
| 41 | virtual void runcxx . . $ Watchdog#run(49f6e7a06ebc5aa8).(); |
| 42 | |
| 43 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 44 | void HerculesEndedcxx . . $ Watchdog#HerculesEnded(49f6e7a06ebc5aa8).(); |
| 45 | |
| 46 | private: |
| 47 | int mHerculesPidcxx . . $ Watchdog#mHerculesPid.; |
| 48 | bool mChildcxx . . $ Watchdog#mChild.; |
| 49 | QProcesscxx . . $ QProcess# * mProcesscxx . . $ Watchdog#mProcess.; |
| 50 | }; |
| 51 | |
| 52 | #endif /* WATCHDOG_H_ */ |