software/final/alf_gui/src/mainwindow.cpp
void MainWindow::disConServer() {

    if (connected) {

        if (closeFlag)
            QMessageBox::information(this, "Information", "Connection closed!");

        ui->disconnect_pb->setEnabled(false);
        ui->connect_pb->setEnabled(true);

        connected = false;
        client->closeConnection();

    }
}
/**
 * disconnect from the server on ALF
 */
disconnect from the server on ALF
disconnect from the server on ALF
void MainWindow::disConServer() {
    if (connected) {
        if (closeFlag)
            QMessageBox::information(this, "Information", "Connection closed!");
        ui->disconnect_pb->setEnabled(false);
        ui->connect_pb->setEnabled(true);
        connected = false;
        client->closeConnection();
    }
}
void MainWindow :: disConServer ( ) { if ( connected ) { if ( closeFlag ) QMessageBox :: information ( this , " " , " " ) ; ui -> disconnect_pb -> setEnabled ( false ) ; ui -> connect_pb -> setEnabled ( true ) ; connected = false ; client -> closeConnection ( ) ; } }
disconnect from the server on ALF
disconnect from the server on ALF