link-scope/openocd.h

27 lines
485 B
C
Raw Permalink Normal View History

#ifndef OPENOCD_H
#define OPENOCD_H
#include <QObject>
#include <QProcess>
#include <qcoreapplication.h>
#include <windows.h>
class OpenOCD : public QObject
{
Q_OBJECT
public:
explicit OpenOCD(QObject *parent = nullptr);
~OpenOCD();
void start(const QString &chosenInterface,const QString &chosenTarget,int gdbPort);
void stop();
bool isRunning();
signals:
void onErrorOccur(const QString &info);
private:
QProcess *process;
};
#endif // OPENOCD_H