49 lines
829 B
C++
Executable File
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
|