1#ifndef QX_PROCCESSWAITER_H
2#define QX_PROCCESSWAITER_H
12class AbstractProcessWaiter :
public QObject
17 static const int CLEAN_KILL_GRACE_MS = 5000;
26 std::function<void(
bool)> mDeadWaitCallback;
30 explicit AbstractProcessWaiter(
QObject* parent);
34 void postDeadWait(
bool died);
38 void waitForDead(std::chrono::milliseconds timeout, std::function<
void(
bool)> callback);
39 virtual void closeImpl(std::chrono::milliseconds timeout,
bool force) = 0;
42 virtual bool wait() = 0;
43 virtual bool isWaiting()
const = 0;
44 void close(std::chrono::milliseconds timeout,
bool force);
45 void setId(quint32
id);
49 virtual void handleProcessSignaled() = 0;
The Qx namespace is the main namespace through which all non-global functionality of the Qx library i...
Definition qx-processwaiter.cpp:5