mirror of https://github.com/wh201906/Proxmark3GUI
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.
27 lines
625 B
C++
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
|