(34178100a3cf97a8875c200bc0500cbdd97bb8b7)
#include <QtCore/qcoreapplication.h>
#include <QtCore/qcommandlineparser.h>
#include <QtCore/qdatetime.h>
#include <QtCore/qfileinfo.h>
#include <QtCore/qprocess.h>
#include <QtCore/qthread.h>
#include <QtCore/qelapsedtimer.h>
#include <atomic>
#include <csignal>
#include <cstdio>
Go to the source code of this file.
|
| static QString | runHdc (const QString &hdcPath, const QStringList &args, bool printOnFailure=false) |
| static void | sigHandler (int sig) |
| static bool | isProcessAlive (const QString &hdc, const QString &bundleName) |
| static void | waitForProcessDeath (const QString &hdc, const QString &bundleName, int timeoutSecs=15) |
| static bool | waitForProcessStart (const QString &hdc, const QString &bundleName, const QString &shellExitCodePath, int timeoutSecs=30) |
| static bool | waitForStdoutFile (const QString &hdc, const QString &shellStdoutPath, int timeoutSecs=10) |
| static bool | setupStdoutLogger (QProcess &stdoutLogger, const QString &hdc, const QString &shellStdoutPath) |
| int | main (int argc, char *argv[]) |
◆ isProcessAlive()
| bool isProcessAlive |
( |
const QString & | hdc, |
|
|
const QString & | bundleName ) |
|
static |
◆ main()
| int main |
( |
int | argc, |
|
|
char * | argv[] ) |
◆ runHdc()
◆ setupStdoutLogger()
◆ sigHandler()
| void sigHandler |
( |
int | sig | ) |
|
|
static |
◆ waitForProcessDeath()
| void waitForProcessDeath |
( |
const QString & | hdc, |
|
|
const QString & | bundleName, |
|
|
int | timeoutSecs = 15 ) |
|
static |
◆ waitForProcessStart()
| bool waitForProcessStart |
( |
const QString & | hdc, |
|
|
const QString & | bundleName, |
|
|
const QString & | shellExitCodePath, |
|
|
int | timeoutSecs = 30 ) |
|
static |
◆ waitForStdoutFile()
| bool waitForStdoutFile |
( |
const QString & | hdc, |
|
|
const QString & | shellStdoutPath, |
|
|
int | timeoutSecs = 10 ) |
|
static |
◆ EXIT_CRASH
| constexpr int EXIT_CRASH = 252 |
|
staticconstexpr |
◆ EXIT_ERROR
| constexpr int EXIT_ERROR = 254 |
|
staticconstexpr |
◆ EXIT_NOEXITCODE
| constexpr int EXIT_NOEXITCODE = 253 |
|
staticconstexpr |
◆ EXIT_TIMEOUT
| constexpr int EXIT_TIMEOUT = 251 |
|
staticconstexpr |
◆ g_hdcConnectKey
◆ g_interrupted
| std::atomic< bool > g_interrupted { false } |
|
static |