|
|
@ -158,3 +158,22 @@ void MainWindow::on_MFChkButton_clicked()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
qDebug()<<"***********\n"<<keys<<"***********\n";
|
|
|
|
qDebug()<<"***********\n"<<keys<<"***********\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_MFNestedButton_clicked()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
pm3->setRequiringOutput(true);
|
|
|
|
|
|
|
|
ui->commandEdit->setText("hf mf nested 1 *");
|
|
|
|
|
|
|
|
on_sendButton_clicked();
|
|
|
|
|
|
|
|
while(pm3->waitForReadyRead(5000))
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
QString result=pm3->getRequiredOutput();
|
|
|
|
|
|
|
|
pm3->setRequiringOutput(false);
|
|
|
|
|
|
|
|
result=result.mid(result.indexOf("|---|----------------|---|----------------|---|"));
|
|
|
|
|
|
|
|
QStringList keys=result.split("\r\n");
|
|
|
|
|
|
|
|
for(int i=0;i<16;i++)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ui->MFKeyWidget->setItem(i,1,new QTableWidgetItem(keys[i+3].mid(7,12).trimmed().toUpper()));
|
|
|
|
|
|
|
|
ui->MFKeyWidget->setItem(i,2,new QTableWidgetItem(keys[i+3].mid(28,12).trimmed().toUpper()));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
qDebug()<<"***********\n"<<keys<<"***********\n";
|
|
|
|
|
|
|
|
}
|
|
|
|