/** * Handler for infrastructure data * $Id$ * $HeadURL$ * $Author$ * Created by Christian Roeskens, SLSE, 2016-09-21 */ #pragma once #include "main_handler.h" #include "logger.h" #include //#include //#include #include #include namespace ExerciseEventManagement { class HandlerEquipmentErrorRegistration : public QObject { Q_OBJECT public: explicit HandlerEquipmentErrorRegistration(MainHandler *mainHandler, const std::shared_ptr &ddsHandler, const std::shared_ptr &db, const std::shared_ptr &eventServer); ~HandlerEquipmentErrorRegistration(); /** * Initialize the handler to manage information from infrastructure management */ bool init(); /** * Returns the shared pointer to OSS DTC Interface. */ std::shared_ptr dtc() const { return m_ossDtc; } Q_SIGNALS: private Q_SLOTS: /** * Handle the signals from 'OcSituationServer' */ void onEquipmentErrorRegistrationChanged(const OcSituationServer::EquipmentErrorRegistration &data, DataModification modType); private: // methoden void publishData(const Database::EemEvent &data); ExerciseEventManagement::Event toDdsData(const Database::EemEvent &data); private: // attributes MainHandler *m_mainHandler; std::shared_ptr m_ddsHandler; std::shared_ptr m_dbHandler; std::shared_ptr m_eventServer; std::shared_ptr m_ossDtc; NGL::INGLLogger &m_logger; }; } // namespace ExerciseEventManagement