Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Plugins/PresentationManagement/Data/pre_data_plugin.h
T
torstenandCopilot 4c9861a469 BUILD_RTI conditional fixes and Qt6 API updates
- cmake/FindRTI.cmake: Add INTERFACE placeholder targets when RTI not found
- cmake/FindRTI.cmake: Force BUILD_RTI=OFF when RTI not installed
- Lts/Common/LtsSession/CMakeLists.txt: Make LtsSessionDataDds conditional on BUILD_RTI
- Lts/Viewer/CMakeLists.txt: Make LtsDataView conditional on BUILD_RTI
- Lts/Plugins/*/CMakeLists.txt: 97 plugin files wrapped in BUILD_RTI conditionals
- cmake/NGLMacros.cmake: Fix NGL_ADD_BIG_RESOURCES macro (removed premature return())
- Multiple Qt6 API fixes: QLinkedList→std::list, QStringRef→QStringView, etc.
- BUILD_RTI_FIXES_SUMMARY.md: Comprehensive documentation of all fixes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-19 09:24:50 +02:00

46 lines
1.3 KiB
C++
Executable File

#pragma once
#include <PluginInterfaces/data_plugin_interface.h>
#include <Plugins/PresentationManagement/pre_data_plugin_interface.h>
#include <PresentationManagement/pre_dtc.h>
#include <Services/PresentationManagement/pre_ftc.h>
namespace PresentationManagement
{
class DataPlugin final : public QObject, public DataPluginBase::Plugin
{
Q_PLUGIN_METADATA(IID "data:3:pre")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT
public:
DataPlugin() = default;
~DataPlugin() = default;
QString pluginName() const override { return QStringLiteral("PresentationManagement"); }
std::shared_ptr<DataPluginBase::Interface> createDataInterface(LtsSession::LtsSessionDataDds *session) override;
bool availableInPartition(IDL::PartitionType ) const override { return true; }
};
class DataInterfaceImpl final : public DataInterface
{
public:
DataInterfaceImpl(const std::shared_ptr<PresentationManagement::Interface::Dtc> &dtc,
const std::shared_ptr<PresentationManagement::Interface::Ftc> &ftc);
std::shared_ptr<PresentationManagement::Interface::Dtc> getDtc() override { return m_dtc; }
std::shared_ptr<PresentationManagement::Interface::Ftc> getFtc() override { return m_ftc; }
private:
std::shared_ptr<PresentationManagement::Interface::Dtc> m_dtc;
std::shared_ptr<PresentationManagement::Interface::Ftc> m_ftc;
};
;
}