/** * Plugin Blocked Areas * $Id$ * $HeadURL$ * $Author$ * Created by Gerlinde Rudolphus, SLTE, 2016-04-14 */ #pragma once #include #include "handler_participant_building.h" #include "handler_blocked_areas.h" #include #include #include #include #include #include namespace CesParticipantBuildings { class CesParticipantBuildingsPlugin : public QObject, public CentralEffectSimulation::Plugin::Plugin { Q_OBJECT Q_PLUGIN_METADATA(IID "special:3:ces.CentralEffectSimulationParticipantBuildingsPlugin") Q_INTERFACES(CentralEffectSimulation::Plugin::Plugin) public: CesParticipantBuildingsPlugin() = default; ~CesParticipantBuildingsPlugin() = default; std::shared_ptr createInterface(CentralEffectSimulation::Plugin::DataProvider *pdp, const std::shared_ptr &dDSConnector, NGL::Settings *settings, CentralEffectSimulation::MainHandler *mainHandler) override; }; class CesParticipantBuildingsInterfaceImpl final : public CentralEffectSimulation::Plugin::Interface { Q_OBJECT public: CesParticipantBuildingsInterfaceImpl(CentralEffectSimulation::Plugin::DataProvider *pdp, const std::shared_ptr &dDSConnector, NGL::Settings *settings, CentralEffectSimulation::MainHandler *mainHandler); ~CesParticipantBuildingsInterfaceImpl(); //bool init(); const char *name() const override { return "CentralEffectSimulationParticipantBuildings"; } QString echo(const QString &message) override; private Q_SLOTS: bool init(int domainId, int exerciseId) override; private: private: CentralEffectSimulation::Plugin::DataProvider *m_pdp; std::shared_ptr m_ddsConnector; CentralEffectSimulation::MainHandler *m_mainHandler{nullptr}; std::shared_ptr m_ddsHandler; std::shared_ptr m_db; std::shared_ptr m_handlerBuildingData; ///< Pointer to AES Building handler std::shared_ptr m_handlerParticipant; ///< Pointer to handler for all participants std::shared_ptr m_handlerParticipantBuilding; ///< Pointer to handler for participant inside from Buildings std::shared_ptr m_handlerBlockedAreas; ///< Pointer to handler for Blocked Areas CentralEffectSimulation::LOGGER_T &m_logger; ///< Interface to the Logging-Facility int m_domainId = 0; int m_exerciseId = 0; }; } // namespace CesParticipantBuildings