Files
qt5-legatus-legacy/Lts/Plugins/OcSituationClient/Gui/OcTerminal/osc_equip_player.h
T
2026-08-13 18:33:10 +02:00

74 lines
2.3 KiB
C++
Executable File

/**
* @RDE_HEADER@
* HMI Plugin for Observer Controller - Fault Message Dialog
* $Id$
* $HeadURL$
* $Author$
* Created by Patric Karwat, SLSE, 2018-03-27
*/
#pragma once
#include <LtsWidgets/lts_dialog.h>
#include <LtsSession/lts_session.h>
#include <OcSituationClient/logger.h>
#include <Plugins/OcSituationClient/osc_data_plugin_interface.h>
#include <LtsUtilsGuiDds/request_helper.h>
#include <Plugins/ParticipantManagement/ppm_data_plugin_interface.h>
#include <Plugins/TrainingAreaBaseOC/taboc_data_plugin_interface.h>
#include <ParticipantManagement/Gui/Common/participant_edit_model.h>
#include <Plugins/ParticipantManagement/ppm_gui_combobox_plugin_interface.h>
namespace Ui
{
class EquipPlayer;
}
namespace OcSituationClient
{
class EquipPlayer : public LtsWidgets::LtsDialog
, private OcSituationClient::Interface::Ftc::SendEquipmentRegistrationReplyHandler
, private ParticipantManagement::Interface::Ftc::RegisterParticipantReplyHandler
{
Q_OBJECT
public:
explicit EquipPlayer(LtsSession::LtsSession *session, QWidget *parent = nullptr);
~EquipPlayer();
bool init(const std::shared_ptr<Interface::Ftc> &ftc);
void onSendEquipmentRegistrationReply(const Core::FunctionReplyObject &replyObject) override { m_requestHelper->requestReply(replyObject); }
void onRegisterParticipantReply(const ParticipantManagement::RegisterReply &replyObject) override { m_requestHelper->requestReply(replyObject); }
private Q_SLOTS:
void onSlotSelectionChanged();
private:
void retranslate() override;
bool apply() override;
bool checkEqNr();
private:
LtsSession::LtsSession *m_session;
LtsUtils::RequestHelper *m_requestHelper;
int m_selectedParticipantId;
int m_maxChars;
int m_maxPartChars;
bool m_isValid;
ParticipantManagement::ParticipantEditModel *m_model;
LtsWidgets::LtsColumnFilterProxyModel *m_proxyModel;
std::shared_ptr<OcSituationClient::Interface::Ftc> m_ftc;
std::shared_ptr<ParticipantManagement::Interface::Ftc> m_ppmFtc;
std::shared_ptr<TrainingAreaBaseOC::Interface::Dtc> m_tabocDtc;
std::shared_ptr<ParticipantManagement::Interface::Dtc> m_ppmDtc;
std::shared_ptr<ParticipantManagement::ForeignGuiComboboxInterface> m_ppmCbxGui;
Ui::EquipPlayer *m_ui;
LOGGER_T m_logger;
};
} // namespace OcSituationClient