/** * @RDE_HEADER@ * SetSanitationDialog - Send a Sanitation telegram in TAB * $Id$ * $HeadURL$ * $Author$ * Created by Patric Karwat - 2020-06-20 */ #pragma once //Lts #include #include //ParticipantManagement #include #include #include #include //ProjectDataManagement #include #include class QGroupBox; class QCheckBox; namespace Ui { class ParticipantSetSanitationDialog; } namespace ParticipantManagement { class ParticipantSetSanitationDialog : public LtsWidgets::LtsDialog , protected ParticipantManagement::Interface::Ftc::SetSanitationReplyHandler { Q_OBJECT public: explicit ParticipantSetSanitationDialog(int participantId, QWidget *parent = nullptr); ~ParticipantSetSanitationDialog(); bool init(LtsSession::LtsSession *session, const std::shared_ptr &dtc, const std::shared_ptr &ftc, const std::shared_ptr &dtcPdm); private slots: void onQualificationChanged(); private: void fillCb(); void setCbxName(); qint64 getProcedures(); void retranslate() override; QGroupBox *getGroupBox(std::string boxName); bool apply() override final; void onSetSanitationReply(const Core::FunctionReplyObject &replyObject) override final { m_requestHelper->requestReply(replyObject); } private: LtsUtils::RequestHelper *m_requestHelper; int m_participantId; int m_eqId{-1}; LtsSession::LtsSession *m_session; std::shared_ptr m_dtc; std::shared_ptr m_ftc; std::shared_ptr m_dtcPdm; QList m_procedures; Ui::ParticipantSetSanitationDialog *m_ui; LOGGER_T m_logger; }; } //namespace ParticipantManagement