66 lines
1.8 KiB
C++
Executable File
66 lines
1.8 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Gui Plugin for OnlineReports
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Hannes Baeuerle, SLSE, 2017-02-27
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <PluginInterfaces/gui_plugin_interface.h>
|
|
#include <Plugins/AlarmManagement/alm_gui_plugin_interface.h>
|
|
|
|
#include <AreaEffectSimulation/aes_dtc.h>
|
|
#include <ParticipantManagement/ppm_dtc.h>
|
|
#include <AlarmManagement/alm_ftc.h>
|
|
#include <AlarmManagement/alm_dtc.h>
|
|
|
|
namespace ParticipantManagement
|
|
{
|
|
class ForeignGuiComboboxInterface;
|
|
}
|
|
|
|
namespace ParticipantAlarms
|
|
{
|
|
|
|
class GuiPlugin final : public QObject, public GuiPluginBase::Plugin
|
|
{
|
|
Q_PLUGIN_METADATA(IID "gui:3:alm.configparticipantalarm")
|
|
Q_INTERFACES(GuiPluginBase::Plugin)
|
|
|
|
Q_OBJECT
|
|
public:
|
|
explicit GuiPlugin() = default;
|
|
~GuiPlugin() = default;
|
|
|
|
QString pluginName() override { return QLatin1String("AlarmManagement.GuiPlugin.ConfigParticipantAlarm"); }
|
|
std::shared_ptr<GuiPluginBase::Interface> createGuiInterface(LtsSession::LtsSession *session) override;
|
|
bool availableInPartition(IDL::PartitionType partition) const override
|
|
{
|
|
return (partition == IDL::PartitionType::Exercise);
|
|
}
|
|
};
|
|
|
|
class InterfaceImpl final : public QObject, public GuiPluginBase::Interface
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit InterfaceImpl(LtsSession::LtsSession *session);
|
|
|
|
bool fetchInterfaces() override;
|
|
void clearInterfaces() override;
|
|
QString menuGroup() const override;
|
|
QVector<LtsWidgets::PluginData> getActions() override;
|
|
|
|
private: // attributes
|
|
std::shared_ptr<AlarmManagement::Interface::Ftc> m_almFtc;
|
|
std::shared_ptr<AlarmManagement::Interface::Dtc> m_almDtc;
|
|
std::shared_ptr<ParticipantManagement::Interface::Dtc> m_ppmDtc;
|
|
std::shared_ptr<AreaEffectSimulation::Interface::Dtc> m_aesDtc;
|
|
std::shared_ptr<ParticipantManagement::ForeignGuiComboboxInterface> m_ppmGuiCbxIfc;
|
|
};
|
|
|
|
} // namespace OnlineReports
|