diff --git a/mainwindow.cpp b/mainwindow.cpp
index 9839938..ccc00e0 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -205,6 +205,36 @@ void MainWindow::on_MF_RW_readAllButton_clicked()
}
+void MainWindow::on_MF_RW_readBlockButton_clicked()
+{
+ QString result = execCMDWithOutput("hf mf rdbl "
+ + ui->MF_RW_blockBox->text()
+ + " "
+ + ui->MF_RW_keyTypeBox->currentText()
+ + " "
+ + ui->MF_RW_keyEdit->text());
+ if(result.indexOf("isOk:01") != -1)
+ {
+ ui->MF_RW_dataEdit->setText(result.mid(result.indexOf("isOk:01")+13, 47).toUpper());
+ }
+}
+
+void MainWindow::on_MF_RW_writeBlockButton_clicked()
+{
+ QString result = execCMDWithOutput("hf mf wrbl "
+ + ui->MF_RW_blockBox->text()
+ + " "
+ + ui->MF_RW_keyTypeBox->currentText()
+ + " "
+ + ui->MF_RW_keyEdit->text()
+ + " "
+ + ui->MF_RW_dataEdit->text().replace(" ",""));
+ if(result.indexOf("isOk:01") != -1)
+ {
+
+ }
+}
+
// ************************************************
diff --git a/mainwindow.h b/mainwindow.h
index 1d9cf0a..d9eeae8 100644
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -59,6 +59,10 @@ private slots:
void on_MF_RW_readAllButton_clicked();
+ void on_MF_RW_readBlockButton_clicked();
+
+ void on_MF_RW_writeBlockButton_clicked();
+
private:
Ui::MainWindow *ui;
PM3Process* pm3;
diff --git a/mainwindow.ui b/mainwindow.ui
index 25d4a20..1ddfbab 100644
--- a/mainwindow.ui
+++ b/mainwindow.ui
@@ -415,12 +415,16 @@
-
-
+
+
+ FFFFFFFFFFFF
+
+
-
- Type:
+ Key Type:
@@ -428,12 +432,12 @@
-
- KeyA
+ A
-
- KeyB
+ B