bool RadioConnectionService::connectToDataSource()
{
    if (serialPort_.open(QIODevice::ReadWrite))
    {
        emit connectionSucceeded();
        return true;
    }
    else
    {
        emit connectionFailed(serialPort_.errorString());
        return false;
    }
}
Exemple #2
0
void GameClient::slotConnected()
{
    connected = true;
    emit connectionSucceeded();
}
void FakeConnectionService::emitSignalConnectionSucceeded()
{
   emit connectionSucceeded("Connected");
}