Proxmark3GUI/ui/mf_uid_parameterdialog.cpp

28 lines
740 B
C++
Raw Normal View History

2020-04-29 14:47:40 +08:00
#include "mf_uid_parameterdialog.h"
#include "ui_mf_uid_parameterdialog.h"
2020-04-29 14:47:40 +08:00
MF_UID_parameterDialog::MF_UID_parameterDialog(const QString& uid, const QString& atqa, const QString& sak, QWidget *parent) :
QDialog(parent),
ui(new Ui::MF_UID_parameterDialog)
{
ui->setupUi(this);
2020-04-29 14:47:40 +08:00
ui->UIDLineEdit->setText(uid);
ui->ATQALineEdit->setText(atqa);
ui->SAKLineEdit->setText(sak);
}
MF_UID_parameterDialog::~MF_UID_parameterDialog()
{
delete ui;
}
2020-04-29 14:47:40 +08:00
void MF_UID_parameterDialog::on_buttonBox_accepted()
{
emit sendCMD("hf mf csetuid "
+ ui->UIDLineEdit->text()
+ " "
+ ui->ATQALineEdit->text()
+ " "
+ ui->SAKLineEdit->text());
}