Files
qt5-legatus-legacy/Lts/Services/AreaEffectSimulation/ModuleTests/aes_test_gas_pipe.h
T
2026-08-13 18:33:10 +02:00

47 lines
1.3 KiB
C++
Executable File

/**
* AES Function Topic Client test executable
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include "aes_test_base.h"
#include <LtsCoordTrans/lts_coord_trans.h>
#include <QPointF>
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