2020-04-24 11:15:49 +01:00
|
|
|
#ifndef Process_H
|
|
|
|
#define Process_H
|
|
|
|
|
2020-04-26 01:05:09 +01:00
|
|
|
#include <QMetaType>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QProcess>
|
|
|
|
#include <QString>
|
2018-12-08 22:21:12 +00:00
|
|
|
|
|
|
|
class Process : public QProcess
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit Process(QObject* parent = 0);
|
|
|
|
|
|
|
|
Q_INVOKABLE void start(const QString& program, const QVariantList& arguments);
|
|
|
|
|
|
|
|
Q_INVOKABLE QString getOutput();
|
|
|
|
};
|
2020-04-24 11:15:49 +01:00
|
|
|
#endif
|