Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Proxies/TrainingAreaBase/Plugins/Nmea/main_dispatcher.cpp
T
berrux-dev 855b0a6101 Remove modules not compiled by this branch's release build
Lts/Common: drop the 17 submodules excluded from the RELEASE_BUILD
branch of Lts/Common/CMakeLists.txt (CodeGen, LtsAppManager, LtsBotan,
LtsCoordinate, LtsElevation, LtsLogin, LtsMultiMonitor,
LtsPluginManager, LtsPrinting, LtsProjectionWorkstation,
LtsScriptTimeline, LtsSession, LtsTimeline, LtsTimelineClassic,
LtsVirtualKeyboard, LtsWidgets, TopicEditorBase). Only the 13
subdirectories actually built remain.

TrainingAreaBase: drop sources of targets excluded by
IF(NOT RELEASE_BUILD) / IF(BUILD_RTI) (svcTabClient, svcTabServer,
svcTrainingAreaBase exe, RecordReplayPlugin customization) and the 7
plugin directories not added in the release path (AdlerJson,
ApacheHlaJson, DebugJsonDir, HlaJson, Nmea, UAS, WlsTetra). Only
tabTelegrams, svcTabCommon and the TetraJson plugin are compiled.

Cross-checked: no kept compiled source includes headers from the
removed modules (GuiPluginInterface - the only LtsWidgets consumer -
is itself NOT RELEASE_BUILD-guarded).
2026-10-13 19:19:55 +02:00

52 lines
1.1 KiB
C++
Executable File

#include "main_dispatcher.h"
#include "main_handler_tx.h"
#include "nmea_dispatcher.h"
#include "nmea_handler_tx.h"
#include <QtCore/QSettings>
namespace Nmea
{
MainDispatcher::MainDispatcher(TrainingAreaBase::Plugin::DataProvider *pdp,
const std::shared_ptr<TrainingAreaBase::RecvFromTab> &recvFromTabCb,
NGL::Settings *settings)
: m_tetraDispatcher(new NmeaDispatcher(pdp, recvFromTabCb, settings))
, m_recvFromTabCb(recvFromTabCb)
, m_mainHandlerTx(std::make_shared<MainHandlerTx>(
std::dynamic_pointer_cast<NmeaHandlerTx>(m_tetraDispatcher->sendToTab())))
, m_settings(settings)
{
}
MainDispatcher::~MainDispatcher()
{
m_mainHandlerTx = nullptr;
m_recvFromTabCb = nullptr;
delete m_tetraDispatcher;
}
bool MainDispatcher::init()
{
return true;
}
std::shared_ptr<TrainingAreaBase::SendToTab> MainDispatcher::sendToTab()
{
return m_mainHandlerTx;
}
bool MainDispatcher::canSendData() const
{
return true;
}
void MainDispatcher::exerciseChanged()
{
m_tetraDispatcher->exerciseChanged();
}
}