|
@@ -47,8 +47,8 @@ firingWidget::firingWidget(const int &row, const bool &select, const QString &uu
|
|
|
mqttThread->start();
|
|
|
connect(mqttThread, &MqttThread::projectMqttMessageReceived, this,
|
|
|
&firingWidget::handleProjectFiringMqttMessage);
|
|
|
- connect(this, &firingWidget::lastStageChanged, this, &firingWidget::hanldeFiringStageChanged);
|
|
|
- connect(this, &firingWidget::updateData, this, &firingWidget::onBlastSucess);
|
|
|
+ connect(this, &firingWidget::lastStageChanged, this, &firingWidget::handleFiringStageChanged);
|
|
|
+ connect(this, &firingWidget::updateData, this, &firingWidget::onBlastSuccess);
|
|
|
startBlasting();
|
|
|
}
|
|
|
|
|
@@ -327,7 +327,7 @@ void firingWidget::onButtonPressedReceived(const QString &topic, const QString &
|
|
|
void firingWidget::onSafeChecked(const QString projectUuid) {
|
|
|
if (projectUuid == m_uuid) {
|
|
|
lastStage = 3; // 设置为待安全确认状态
|
|
|
- emit projSafeChckSuccess(m_uuid);
|
|
|
+ emit projSafeCheckSuccess(m_uuid);
|
|
|
emit lastStageChanged(lastStage);
|
|
|
qDebug() << ANSI_COLOR_GREEN << "安全确认成功,进入待起爆状态" << ANSI_COLOR_RESET;
|
|
|
} else {
|
|
@@ -336,7 +336,7 @@ void firingWidget::onSafeChecked(const QString projectUuid) {
|
|
|
}
|
|
|
|
|
|
// 状态改变
|
|
|
-void firingWidget::hanldeFiringStageChanged(int newStage) {
|
|
|
+void firingWidget::handleFiringStageChanged(int newStage) {
|
|
|
QString topic = "hxgc/" + m_uuid + "/P";
|
|
|
QString message;
|
|
|
QString buttonText;
|
|
@@ -421,9 +421,9 @@ void firingWidget::cancelBlasting() {
|
|
|
}
|
|
|
void firingWidget::on_sendTest_4_clicked() {}
|
|
|
|
|
|
-void firingWidget::testonBlastSucess(const QJsonObject &jsonObj) { onBlastSucess(jsonObj); }
|
|
|
+void firingWidget::testOnBlastSuccess(const QJsonObject &jsonObj) { onBlastSuccess(jsonObj); }
|
|
|
// 处理爆破成功,安全验证装置通过MQTT传回的数据
|
|
|
-void firingWidget::onBlastSucess(const QJsonObject &jsonObj) {
|
|
|
+void firingWidget::onBlastSuccess(const QJsonObject &jsonObj) {
|
|
|
Logger::getInstance("blastRecord.log")
|
|
|
.info(QJsonDocument(jsonObj).toJson(QJsonDocument::Indented));
|
|
|
blast_uuid = QUuid::createUuid().toString(QUuid::WithoutBraces).remove(QRegularExpression("-"));
|
|
@@ -435,7 +435,7 @@ void firingWidget::saveAndUploadRecord(const QJsonObject &jsonObj) {
|
|
|
QSqlDatabase db = DatabaseManager::getInstance().getDatabase();
|
|
|
if (!db.transaction()) {
|
|
|
Logger::getInstance().critical(
|
|
|
- QString("Failed to start DB trasaction. Error: %1").arg(db.lastError().text()));
|
|
|
+ QString("Failed to start DB transaction. Error: %1").arg(db.lastError().text()));
|
|
|
return;
|
|
|
}
|
|
|
|