cutter/src/utils/CommandTask.h

28 lines
424 B
C
Raw Normal View History

2018-06-22 17:29:42 +00:00
#ifndef COMMANDTASK_H
#define COMMANDTASK_H
#include "utils/AsyncTask.h"
#include "Cutter.h"
class CommandTask : public AsyncTask
{
Q_OBJECT
public:
CommandTask(const QString &cmd);
QString getTitle() override { return tr("Running Command"); }
signals:
void finished(const QString &result);
protected:
void runTask() override;
private:
QString cmd;
};
#endif //COMMANDTASK_H