Proxmark3GUI/pm3process.h
2020-04-16 00:39:10 +08:00

27 lines
625 B
C++

#ifndef PM3PROCESS_H
#define PM3PROCESS_H
#include <QProcess>
#include <QString>
#include <QDebug>
#include <QtSerialPort/QSerialPortInfo>
#include <QtSerialPort/QSerialPort>
class PM3Process : public QProcess
{
Q_OBJECT
public:
explicit PM3Process(QObject* parent=nullptr);
bool start(const QString path, const QString port);
QStringList findPort();
QByteArray readLine(qint64 maxlen = 0);
void setRequiringOutput(bool st);
QString getRequiredOutput();
bool waitForReadyRead(int msecs = 2000);
private:
bool isRequiringOutput;
QString* requiredOutput;
};
#endif // PM3PROCESS_H