/** * @RDE_HEADER@ * Alarm Configuration * $Id$ * $HeadURL$ * $Author$ * Created by Mike Wille, SLSE, 2017-01-11 */ #pragma once #include #include #include #include namespace Ui { class NewGuezNasatDialog; } namespace GuezNasat { class NewGuezNasatDialog final : public LtsWidgets::LtsDialog , protected GuezNasat::Interface::Ftc::ModifyNasatAircraftReplyHandler { Q_OBJECT public: explicit NewGuezNasatDialog(QWidget *parent = nullptr); ~NewGuezNasatDialog(); bool init(const std::shared_ptr &ftc, const NasatAircraft &aircraft = NasatAircraft()); void retranslate() override; bool apply() override; protected: void onModifyNasatAircraftReply(const Core::FunctionReplyObject &replyObject) override final { m_requestHelper->requestReply(replyObject); } private: std::shared_ptr m_ftc; Ui::NewGuezNasatDialog *m_ui{nullptr}; LtsUtils::RequestHelper *m_requestHelper{nullptr}; int m_id{-1}; LOGGER_T m_logger; }; } // namespace GuezNasat