mirror of
https://github.com/overte-org/overte.git
synced 2025-04-26 20:17:00 +02:00
34 lines
881 B
C++
34 lines
881 B
C++
//
|
|
// AssignmentClientMonitor.h
|
|
// assignment-client/src
|
|
//
|
|
// Created by Stephen Birarda on 1/10/2014.
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_AssignmentClientMonitor_h
|
|
#define hifi_AssignmentClientMonitor_h
|
|
|
|
#include <QtCore/QCoreApplication>
|
|
#include <QtCore/QProcess>
|
|
|
|
#include <Assignment.h>
|
|
|
|
extern const char* NUM_FORKS_PARAMETER;
|
|
|
|
class AssignmentClientMonitor : public QCoreApplication {
|
|
Q_OBJECT
|
|
public:
|
|
AssignmentClientMonitor(int &argc, char **argv, int numAssignmentClientForks);
|
|
private slots:
|
|
void childProcessFinished(int exitCode, QProcess::ExitStatus exitStatus);
|
|
private:
|
|
void spawnChildClient();
|
|
|
|
QStringList _childArguments;
|
|
};
|
|
|
|
#endif // hifi_AssignmentClientMonitor_h
|