void Dialog::performConnections() { connect(socketClient, SIGNAL(sendOutputText(QString)),this, SLOT(setOutputText(QString))); connect(socketClient, SIGNAL(alertConnectionState(bool)),this, SLOT(changeBtConnectState(bool))); connect(socketClient, SIGNAL(sendConnectionError(QString)),this, SLOT(displayConnectionError(QString))); connect(ui->btCon, SIGNAL(clicked(bool)),this, SLOT(tryConnection(bool))); connect(ui->btSend, SIGNAL(clicked(bool)),this, SLOT(sendMessage(bool))); }
void DetectorState::handleResult(DetectorState::DetectionResult result) { recorder->stopRecording(map_result[result].willSaveVideo); emit sendOutputText("Finished recording - " + map_result[result].message); }