Files
qt5-legatus-legacy/Lts/Plugins/TakeHomePackageManager/THP2/Common2/tpm_topics_model.h
T
2026-08-13 18:33:10 +02:00

45 lines
1010 B
C++
Executable File

/**
* @RDE_HEADER@
* List of topics of selected thp
* $Id: tpm_exported_scripts_model.h 53111 2021-03-22 08:21:29Z wille_m $
* $HeadURL: svn://slssvn/TDS/branches/product/iterations/21_03_salted_caramel/Lts/Plugins/TakeHomePackageManager/tpm_exported_scripts_model.h $
* $Author: wille_m $
*
* Created by Mike Wille, SLTE, 2024-02-09
*/
#pragma once
#include <logger.h>
#include <Common2/thp2common_export.h>
#include <Common2Core/tpm_js_parser.h>
#include <LtsWidgets/lts_abstract_table_model.h>
namespace TakeHomePackageManager
{
class THP2COMMON_EXPORT TopicsModel : public LtsWidgets::LtsAbstractTableModel<Topic>
{
Q_OBJECT
public:
enum Columns
{
ColId,
ColChannel,
ColFilter,
ColDescription,
ColType,
ColStart,
ColDuration,
};
explicit TopicsModel(QObject *parent = nullptr);
void addTopic(const Topic &topic);
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
private:
NGL::INGLLogger &m_logger;
};
}