mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 19:57:45 +00:00
Changes the PID parameter to qint64 to be consistent with KProcessList and QProcess. Also adds a QObject parent parameter.
20 lines
No EOL
397 B
C++
20 lines
No EOL
397 B
C++
// SPDX-FileCopyrightText: 2024 Joshua Goins <josh@redstrate.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QTimer>
|
|
|
|
/// Listens and waits for a process to finish.
|
|
class ProcessWatcher : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ProcessWatcher(qint64 PID, QObject *parent = nullptr);
|
|
|
|
Q_SIGNALS:
|
|
void finished();
|
|
|
|
private:
|
|
QTimer *m_timer = nullptr;
|
|
}; |