| 12345678910111213141516171819202122232425262728 |
- #ifndef __CALPROCESS_H__
- #define __CALPROCESS_H__
- #include <QObject>
- #include <QProcess>
- #include <QTimer>
- class CalProcess : public QObject
- {
- Q_OBJECT
- public:
- explicit CalProcess(QObject *parent = nullptr);
- ~CalProcess();
- void start(const QString &configure, const QString &fifo1, const QString &fifo2);
- void stop();
- void restart(const QString &configure, const QString &fifo1, const QString &fifo2);
- bool isRunning();
- private:
- QProcess m_process;
- QTimer m_timer;
- };
- #endif // CALPROCESS_H
|