mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-22 04:37:46 +00:00
21 lines
392 B
C
21 lines
392 B
C
|
// SPDX-FileCopyrightText: 2024 Joshua Goins <josh@redstrate.com>
|
||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QTimer>
|
||
|
|
||
|
/// Listens and waits for a process to finish.
|
||
|
class ProcessWatcher : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit ProcessWatcher(const int PID);
|
||
|
|
||
|
Q_SIGNALS:
|
||
|
void finished();
|
||
|
|
||
|
private:
|
||
|
QTimer *m_timer = nullptr;
|
||
|
};
|