Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Services/InfrastructureManagement/handler_mounting_point_asset.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

60 lines
2.1 KiB
C++
Executable File

/**
* @RDE_HEADER@
* ISM Handler Mounting Point Assets
* $Id$
* $HeadURL$
* $Author$
* Created by Iuliana Ojog, SLSE, 2016-11-26
*/
#pragma once
#include <QHash>
#include "base.h"
//-------------------------------------------------------------------------------------------------------------
namespace InfrastructureManagement
{
class ObjectMountingPointAsset;
class MainHandler;
class HandlerMountingPointAsset final : public Base
, protected Interface::Fts::MountingPointAssetModifyRequestHandler
, protected Interface::Fts::MountingPointAssetRemoveRequestHandler
{
public:
explicit HandlerMountingPointAsset(MainHandler *mainHandler);
~HandlerMountingPointAsset();
bool init();
int getMountingPointAssetId(int assetId, int structureElementId) const;
bool mount(int32_t assetId, int32_t mountingPointId, const std::string &name = {});
bool unmountAsset(int32_t assetId);
bool unmountMountingPoint(int32_t mountingPointId);
int32_t getMountedAssetId(int32_t mountingPointId) const;
int32_t getMountedStructureElementId(int32_t assetId) const;
QHash<int, ObjectMountingPointAsset *> getMountingPointAssetMap() const { return m_objectMountingPointAssetMap;}
void setAvailableInExerciseForAssetOnMountingPoint(int32_t mountingPointId, const std::vector<int32_t> &exercises);
private:
void onMountingPointAssetModifyRequest(const rti::core::SampleIdentity &cookie,
const MountingPointAssetModifyRequest &request) override;
Core::FunctionReplyObject mountingPointAssetCreate(const MountingPointAssetModifyRequest &request);
Core::FunctionReplyObject mountingPointAssetModify(const MountingPointAssetModifyRequest &request);
void onMountingPointAssetRemoveRequest(const rti::core::SampleIdentity &cookie,
const Core::RemoveElementRequest &request) override;
bool unmount(ObjectMountingPointAsset *object);
bool syncAvailableInExercise(int32_t structureElementId, int32_t assetId) const;
private:
QHash<int, ObjectMountingPointAsset *> m_objectMountingPointAssetMap;
};
}