#ifndef __NETPARSEPROCESS_H__ #define __NETPARSEPROCESS_H__ #include #include #include class NetParseProcess : public QObject { Q_OBJECT public: explicit NetParseProcess(QObject *parent = nullptr); ~NetParseProcess(); void start(const QString &configure, const QString &fifo); void stop(); void restart(const QString &configure, const QString &fifo); bool isRunning(); private: QProcess m_process; QTimer m_timer; }; #endif // NETPARSEPROCESS_H