Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+32
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* Helper
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Christian Fröbel, NLE, 2019-08-05
|
||||
*/
|
||||
|
||||
#include "helper.h"
|
||||
#include <LtsUtilsCore/json_object.h>
|
||||
#include <AudioVideoManagement/avm.hpp>
|
||||
#include <InfrastructureManagement/ism.hpp>
|
||||
#include <QString>
|
||||
#include <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;
|
||||
}
|
||||
|
||||
} // namespace CombatNetRadio
|
||||
Reference in new issue
Block a user