Adds NmeaManagement tests, fixes codegen includes and Qt6 SerialPort CMake target.
27 lines
595 B
C++
Executable File
27 lines
595 B
C++
Executable File
|
|
|
|
|
|
#include "helper.h"
|
|
#include <LtsUtilsCore/json_object.h>
|
|
#include <AudioVideoManagement/avm.hpp>
|
|
#include <InfrastructureManagement/ism.hpp>
|
|
#include <QtCore/QString>
|
|
#include <QtCore/QJsonDocument>
|
|
|
|
namespace CombatNetRadio
|
|
{
|
|
|
|
int stationId(const InfrastructureManagement::MainStructureElement &radioStation)
|
|
{
|
|
return LtsUtils::JsonObject::fromJson(radioStation.properties).valueOr<int>("stationId", 0);
|
|
}
|
|
|
|
QString toRcIdString(const AudioVideoManagement::CnrChannel &cnrChannel)
|
|
{
|
|
QString result = QString::fromStdString(cnrChannel.name);
|
|
result.remove(1, 2);
|
|
return result;
|
|
}
|
|
|
|
}
|