calprocess.h 423 B

1234567891011121314151617181920212223242526
  1. #ifndef __CALPROCESS_H__
  2. #define __CALPROCESS_H__
  3. #include <QObject>
  4. #include <QProcess>
  5. class CalProcess : public QObject
  6. {
  7. Q_OBJECT
  8. public:
  9. explicit CalProcess(QObject *parent = nullptr);
  10. ~CalProcess();
  11. void start(const QString &configure);
  12. void stop();
  13. void restart(const QString &configure = QString(""));
  14. bool isRunning();
  15. private:
  16. QProcess m_process;
  17. };
  18. #endif // CALPROCESS_H