You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Proxmark3GUI/pm3process.h

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 = 3000);
private:
bool isRequiringOutput;
QString* requiredOutput;
};
#endif // PM3PROCESS_H