Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Services/AudioVideoManagement/ModuleTests/avm_vca_tests.h
T
torstenandCopilot d5af8b9764 Session 026: Lts/Services Qt5:: to Qt6:: migration
- Migrated all 104 CMakeLists.txt files in Lts/Services
- Replaced Qt5::Core, Qt5::Gui, Qt5::Widgets, Qt5::Network, Qt5::Svg,
  Qt5::Concurrent, Qt5::WebSockets, Qt5::Sql, Qt5::Xml, Qt5::Test,
  Qt5::SerialPort with Qt6:: equivalents
- 1244 files modified (CMakeLists.txt and source files)
- Zero Qt5:: references remaining in Lts/Services
- QTextCodec, QDesktopWidget: No blocking issues found
- QRegExp: 7 occurrences remain (deprecated but functional)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-25 19:23:30 +02:00

79 lines
2.6 KiB
C++
Executable File

/**
* @RDE_HEADER@
*
* $Id$
* $HeadURL$
* $Author$
*
* Created by Gerlinde Rudolphus, SLSE, 2017-10-20
*/
#pragma once
#include <AudioVideoManagement/avm_ftc.h>
#include <AudioVideoManagement/avm_ftc_types.h>
#include <AudioVideoManagement/avm_dtc.h>
#include <DDS/DDSConnector/dds_connector.h>
#include <QObject>
#include <QVector>
namespace AudioVideoManagement
{
/**
* @author Astrid Mueller, Christian Fröbel
*/
class AvmVcaTests : public QObject
, protected Interface::Ftc::ModifyCnrTvcProfileReplyHandler
, protected Interface::Ftc::RemoveCnrTvcProfileReplyHandler
, protected Interface::Ftc::ModifyTvcConfigReplyHandler
, protected Interface::Ftc::ModifyCnrConfigReplyHandler
, protected Interface::Ftc::RemoveTvcConfigReplyHandler
, protected Interface::Ftc::RemoveCnrConfigReplyHandler
{
Q_OBJECT
public:
explicit AvmVcaTests(int domainId, int exerciseId, int operatorId);
private slots:
void initTestCase();
void cleanupTestCase();
void test();
private:
void create();
void modify();
void remove();
/** FunctionTopic replies */
///@{
void onModifyCnrTvcProfileReply(const Core::FunctionReplyObject &replyObject) override final;
void onRemoveCnrTvcProfileReply(const Core::FunctionReplyObject &replyObject) override final;
void onModifyTvcConfigReply(const Core::FunctionReplyObject &replyObject) override final;
void onModifyCnrConfigReply(const Core::FunctionReplyObject &replyObject) override final;
void onRemoveTvcConfigReply(const Core::FunctionReplyObject &replyObject) override final;
void onRemoveCnrConfigReply(const Core::FunctionReplyObject &replyObject) override final;
///@}
void createTvcConfig();
void createCnrConfig();
void removeTvcConfig();
void removeCnrConfig();
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnector;
std::shared_ptr<AudioVideoManagement::Interface::Ftc> m_ftc;
std::shared_ptr<AudioVideoManagement::Interface::Dtc> m_dtc;
const int m_exerciseId;
const int m_operatorId;
int m_circuitId{-1};
bool m_modifyReplyReceived{false};
bool m_removeReplyReceived{false};
QVector<int> m_tvcConfigIds;
QVector<int> m_cnrConfigIds;
NGL::INGLLogger &m_logger;
};
} // namespace AudioVideoManagement