Files
qt5-legatus-legacy/Lts/Plugins/InfrastructureManagement/Gui/ResourceManagement/ism_plan_dialog_model.h
T
2026-08-13 18:33:10 +02:00

49 lines
829 B
C++
Executable File

/**
* @RDE_HEADER@
* ResourceManangement - Plan Dialog
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include <LtsWidgets/lts_abstract_table_model.h>
#include <InfrastructureManagement/ism_dtc.h>
#include <InfrastructureManagement/logger.h>
namespace InfrastructureManagement
{
class PlanDialogModel : public LtsWidgets::LtsAbstractTableModel<MainSchedule>
{
Q_OBJECT
public:
explicit PlanDialogModel(QObject *parent = nullptr);
~PlanDialogModel();
QVariant data(const QModelIndex &index, int role) const override final;
bool initModel(const std::shared_ptr<Interface::Dtc> &dtc);
enum Columns
{
ID,
NAME,
STATUS,
CREATED,
START,
END,
COMPLETE
};
private:
std::shared_ptr<Interface::Dtc> m_dtc;
LOGGER_T m_logger;
};
} // namespace InfrastructureManagement