Trim mostly-deletion changes (~700 lines) across the modules the Release 2 build compiles: unused telegrams and receiver/handler code in TrainingAreaBase (telegrams, recv_from_dds_aes/fts, ism/main/pdm/position handlers), dead members in SqlBrowser and ProjectDataManagement, unused LtsPluginManager loader paths, LtsSession unit-test, WlsTetra and DdsView cleanups, plus the stale include_directories removal in Lts/CMakeLists.txt. Continues the Release 2 source prune (keep only what the build compiles). Excluded from this commit by design: the machine-specific .envrc (MIGRATE_PIPELINE_ROOT path fix stays uncommitted) and the untracked qt5-before/ reference tree.
42 lines
1.3 KiB
C++
Executable File
42 lines
1.3 KiB
C++
Executable File
|
|
|
|
#pragma once
|
|
|
|
#include <QtCore/QObject>
|
|
#include <ParticipantManagement/ppm.hpp>
|
|
#include <ParticipantManagement/ppm_dtc.h>
|
|
#include <LtsUtils/LtsUtilsCore/data_modification_enum.h>
|
|
#include <unordered_map>
|
|
#include <unordered_set>
|
|
#include "logger.h"
|
|
|
|
class QTimer;
|
|
namespace TrainingAreaBase
|
|
{
|
|
class MainHandler;
|
|
|
|
class PpmHandler final : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit PpmHandler(MainHandler *mainHandler);
|
|
bool init();
|
|
std::shared_ptr<ParticipantManagement::Interface::Dtc> getDtc() { return m_ppmDtc; }
|
|
std::unordered_map<int, std::unordered_set<int>> exerciseEquipmentAssignment() const { return m_exerciseEquipmentAssignments; }
|
|
|
|
Q_SIGNALS:
|
|
void position(int equipNo, const ParticipantManagement::ParticipantPosition &pos);
|
|
|
|
private Q_SLOTS:
|
|
void onParticipantPositionChanged(const ParticipantManagement::ParticipantPosition &data, DataModification modType);
|
|
void onEquipmentExerciseMappingChanged(const ParticipantManagement::EquipmentExerciseMapping &data, DataModification modType);
|
|
void sendEquipmentExerciseAssignment();
|
|
private:
|
|
NGL::INGLLogger &m_logger;
|
|
std::unordered_map<int, std::unordered_set<int>> m_exerciseEquipmentAssignments;
|
|
std::shared_ptr<ParticipantManagement::Interface::Dtc> m_ppmDtc;
|
|
MainHandler *m_mainHandler;
|
|
QTimer *m_equipExerciseMappingTimer;
|
|
};
|
|
}
|