File indexing completed on 2022-11-29 20:01:35

0001 /*
0002     SPDX-FileCopyrightText: 2009 George Kiagiadakis <gkiagia@users.sourceforge.net>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 #ifndef DETACHEDPROCESSMONITOR_H
0007 #define DETACHEDPROCESSMONITOR_H
0008 
0009 #include <QObject>
0010 
0011 class DetachedProcessMonitor : public QObject
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit DetachedProcessMonitor(QObject *parent = nullptr);
0016     void startMonitoring(int pid);
0017 
0018 Q_SIGNALS:
0019     void processFinished();
0020 
0021 protected:
0022     void timerEvent(QTimerEvent *) override;
0023 
0024 private:
0025     int m_pid;
0026 };
0027 
0028 #endif