/** * @RDE_HEADER@ * ResourceManangement - Plan Edit Dialog * $Id$ * $HeadURL$ * $Author$ * * Created by Mike Wille, SLSE, 2017-04-21 */ #pragma once #include #include #include #include #include #include #include namespace Ui { class PlanEditDialog; } namespace LtsSession { class LtsSession; } namespace InfrastructureManagement { namespace Interface { class Dtc; class Ftc; } class PlanDialogModel; class PlanEditDialog : public LtsWidgets::LtsDialog , protected Interface::Ftc::MainScheduleModifyReplyHandler { Q_OBJECT public: explicit PlanEditDialog(QWidget *parent = nullptr); bool init(LtsSession::LtsSession *session, const int scheduleId, const std::shared_ptr &dtc, const std::shared_ptr &ftc, const std::shared_ptr &ismCbx); ~PlanEditDialog(); protected: void onMainScheduleModifyReply(const Core::FunctionReplyObject &replyObject) override final { m_requestHelper->requestReply(replyObject); } void enaDisa(); private: void retranslate() override; bool apply() override final; LtsSession::LtsSession *m_session{nullptr}; Ui::PlanEditDialog *m_ui; int m_scheduleId; ScheduleStatus m_currentState; std::shared_ptr m_dtc; std::shared_ptr m_ftc; std::shared_ptr m_ismGuiCbxIfc; LtsUtils::RequestHelper *m_requestHelper; NGL::INGLLogger &m_logger; }; }