/** * AES Function Topic Client test executable * $Id$ * $HeadURL$ * $Author$ */ #pragma once #include "aes_test_base.h" #include #include namespace AreaEffectSimulation { class TestGasPipe final : public TestBase , protected AreaEffectSimulation::Interface::Ftc::GasPipeModifyReplyHandler , protected AreaEffectSimulation::Interface::Ftc::GasPipeRemoveReplyHandler { Q_OBJECT public: explicit TestGasPipe(QObject *parent = nullptr); bool init(int domainId, int exerciseId, int testId) override; public Q_SLOTS: void startTest() override { tryCreateGasPipe(); } private Q_SLOTS: void tryCreateGasPipe(); void tryModifyGasPipe(); void waitExpireGasPipe(); protected Q_SLOTS: void gasPipeChanged(const AreaEffectSimulation::GasPipe &data, DataModification modType); protected: void onGasPipeModifyReply(const Core::FunctionReplyObject &replyObject) override; void onGasPipeRemoveReply(const Core::FunctionReplyObject &replyObject) override; private: bool checkBaseData(const AreaEffectSimulation::GasPipe &a, const AreaEffectSimulation::GasPipe &b) const; private: AreaEffectSimulation::GasPipe m_esData; LtsCoordTrans::UtmCoordinate m_refPos; }; } // namespace AreaEffectSimulation