Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
* IsmHandler for WirelessLocationSystem
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Christian Ehrlicher, SLSE, 2016-04-14
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "main_dispatcher.h"
|
||||
#include "logger.h"
|
||||
#include "dds_handler.h"
|
||||
#include <ParticipantManagement/ppm.hpp>
|
||||
#include <ParticipantManagement/ppm_dtc.h>
|
||||
#include <LtsUtilsCore/data_modification_enum.h>
|
||||
#include <QObject>
|
||||
#include <QHash>
|
||||
#include <QUrl>
|
||||
#include <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:
|
||||
|
||||
std::shared_ptr<ParticipantManagement::Interface::Dtc> m_dtcPpm;
|
||||
LOGGER_T m_logger;
|
||||
/*!
|
||||
* \brief m_participantIdsByEqNo
|
||||
* \details Used to avoid using ppmDtc always the Apache send CesHitInformation
|
||||
*/
|
||||
QHash<int, int> m_participantIdsByEqNo; // eqNo, partId
|
||||
};
|
||||
|
||||
} // namespace ApHlaJson
|
||||
Reference in new issue
Block a user