| 12345678910111213141516171819202122232425262728 |
- #ifndef __NETPARSEPROCESS_H__
- #define __NETPARSEPROCESS_H__
- #include <QObject>
- #include <QProcess>
- #include <QTimer>
- 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
|