new_docker_build.sh gains Group 12 (212 GUI/Data plugins); fixes LtsUtilsGuiDds visibility (LTO-stripped exports), LtsProjectionWorkstation unity name shadow, 6 unity-off dirs (dup file-scope statics, ddsftc INTERFACE sources) and reconfigures BUILD_FILTERMANAGEMENT/BUILD_PLUGINS_SERVICEMONITOR=ON
45 lines
1.2 KiB
C++
Executable File
45 lines
1.2 KiB
C++
Executable File
|
|
|
|
#pragma once
|
|
|
|
#include "main_dispatcher.h"
|
|
#include "logger.h"
|
|
#include "dds_handler.h"
|
|
#include <ParticipantManagement/ppm.hpp>
|
|
#include <ParticipantManagement/ppm_dtc.h>
|
|
#include <ParticipantManagement/ppm.hpp>
|
|
#include <LtsUtils/LtsUtilsCore/data_modification_enum.h>
|
|
#include <QtCore/QObject>
|
|
#include <QtCore/QHash>
|
|
#include <QtCore/QUrl>
|
|
#include <QtCore/QDateTime>
|
|
|
|
namespace ApHlaJson
|
|
{
|
|
|
|
class MainDispatcher;
|
|
class PpmHandler : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit PpmHandler(QObject *parent = nullptr);
|
|
bool init(MainDispatcher* mainDispatcher);
|
|
static QString fromDisInt(qint64 value);
|
|
void getParticipants();
|
|
bool isEqNumberInExercise(int equipmentNumber) const;
|
|
signals:
|
|
void participantChanged(const QJsonObject &jsonObj);
|
|
|
|
private slots:
|
|
void onParticipantChanged(const ParticipantManagement::Participant &data, DataModification modType);
|
|
void onParticipantPositionChanged(const ParticipantManagement::ParticipantPosition &data, DataModification modType);
|
|
void onDynamicParticipantDataChanged(const ParticipantManagement::DynamicParticipantData &data, DataModification modType);
|
|
private:
|
|
|
|
NGL::INGLLogger &m_logger;
|
|
std::shared_ptr<ParticipantManagement::Interface::Dtc> m_dtcPpm;
|
|
QHash<int, int> m_participantIdsByEqNo;
|
|
};
|
|
|
|
}
|