void Stick20Setup::on_pushButton_Ch_HiddenVol_clicked() { int ret; QMessageBox msgBox; msgBox.setText("Build a new base key for the hidden volume, all data get lost"); msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No); msgBox.setDefaultButton(QMessageBox::No); msgBox.setEscapeButton(QMessageBox::No); ret = msgBox.exec(); if (QMessageBox::Yes == ret) { ret = cryptostick->stick20SetupHiddenVolume (); if (TRUE == ret) { Stick20ResponseDialog ResponseDialog(this); ResponseDialog.cryptostick=cryptostick; ResponseDialog.NoStopWhenStatusOK (); ResponseDialog.exec(); } } }
void Stick20ResponseTask::GetResponse(void) { int i; for (i = 0; i < 15; i++) { OwnSleep::msleep(100); checkStick20Status(); if (TRUE == EndFlag) { return; } } if (FALSE == EndFlag) { Stick20ResponseDialog ResponseDialog(Stick20ResponseTaskParent, this); // ResponseDialog.Stick20Task = this; ResponseDialog.exec(); } }