Adds initial intermediate qt6 porting state

This commit is contained in:
torsten committed 2026-08-17 17:54:56 +02:00
1 parent 99136e9460
commit d176b5e0d7
11247 files changed
+1891537

No files matched your search

@@ -0,0 +1,52 @@
/**
* ModuleTests for ASM
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include <AssetManagement/asm_ftc.h>
#include <AssetManagement/asm_ftc_types.h>
#include <AssetManagement/logger.h>
#include <DDS/DDSConnector/dds_connector.h>
#include <QObject>
namespace AssetManagement
{
class AsmTests : public QObject
, protected AssetManagement::Interface::Ftc::TrainingAreaModifyReplyHandler
, protected AssetManagement::Interface::Ftc::TrainingAreaRemoveReplyHandler
{
Q_OBJECT
public:
explicit AsmTests(QObject *parent = nullptr);
~AsmTests();
bool init(int domainId, int trainingAreaId, int testId);
bool testsSuccessful() const { return m_bTestsSuccessful; }
public Q_SLOTS:
void startTest();
protected Q_SLOTS:
void setRequestData(AssetManagement::TrainingAreaModifyRequest &request, int modId);
void tryCreate();
void tryModify();
void tryDelete();
protected:
void onTrainingAreaModifyReply(const Core::FunctionReplyObject &replyObject) override final;
void onTrainingAreaRemoveReply(const Core::FunctionReplyObject &replyObject) override final;
void failExit();
private:
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnector;
std::shared_ptr<AssetManagement::Interface::Ftc> m_ftc;
qint32 m_trainingAreaId;
int m_testId;
bool m_bTestsSuccessful;
LOGGER_T m_logger;
};
} // namespace AssetManagement