Qt6 Migration: Update stub headers to include generated files
- Updated all include/*/*_dtc.h stub headers to include generated files from build4/Lts/Proxies/*/ directories - Changed ParticipantManagement stub headers to use generated files - Updated ProjectDataManagement pdm_enums.hpp to include generated file - Updated Buildings bld_dtc.h to include generated file - Created BUILD_STATUS_REPORT.md documenting current build state Migration Status: - DDS core libraries: ✅ Building successfully (6 libraries) - Proxies module code: ✅ Migration complete - Services modules: ⚠️ Pre-existing errors blocking full build - ParticipantManagement: Type definition mismatches - InfrastructureManagement: Struct/member mismatches - ProjectDataManagement: DTC implementation errors These Services errors are unrelated to Qt6 migration work and require separate fixes. Once resolved, Proxies module will build automatically. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
5381c65fee
commit
4223ca2ff5
40 files changed
+215
-1134
No files matched your search
+2
-92
@@ -1,94 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
|
||||
// Für die Migration erstellen wir minimale Forward-Declarations
|
||||
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
#include <QtCore/QObject>
|
||||
|
||||
#include "LtsUtils/LtsUtilsCore/data_modification_enum.h"
|
||||
#include "ProjectDataManagement/pdm_types.h"
|
||||
|
||||
namespace AlarmManagement
|
||||
{
|
||||
|
||||
// Position-Struct (wird normalerweise von DDS generiert)
|
||||
struct Position
|
||||
{
|
||||
double longitude = 0.0;
|
||||
double latitude = 0.0;
|
||||
|
||||
double lon() const { return longitude; }
|
||||
double lat() const { return latitude; }
|
||||
};
|
||||
|
||||
// Notification-Struct (wird normalerweise von DDS generiert)
|
||||
struct Notification
|
||||
{
|
||||
int32_t id = 0;
|
||||
int64_t time() const { return timestamp; }
|
||||
int64_t timestamp = 0;
|
||||
int32_t type = 0;
|
||||
int32_t priority = 0;
|
||||
int32_t status = 0;
|
||||
std::string description;
|
||||
|
||||
// Zusätzliche Member für AlarmHistoryModel
|
||||
int32_t operatorId() const { return m_operatorId; }
|
||||
int32_t equipmentNumber() const { return m_equipmentNumber; }
|
||||
std::optional<int32_t> participantId() const { return m_participantId; }
|
||||
std::optional<int32_t> aesId() const { return m_aesId; }
|
||||
ProjectDataManagement::EventType eventType() const { return m_eventType; }
|
||||
Position position() const { return m_position; }
|
||||
const std::string& properties() const { return m_properties; }
|
||||
|
||||
int32_t m_operatorId = 0;
|
||||
int32_t m_equipmentNumber = 0;
|
||||
std::optional<int32_t> m_participantId;
|
||||
std::optional<int32_t> m_aesId;
|
||||
ProjectDataManagement::EventType m_eventType = ProjectDataManagement::EventType::Unknown;
|
||||
Position m_position;
|
||||
std::string m_properties;
|
||||
};
|
||||
|
||||
namespace Interface
|
||||
{
|
||||
|
||||
// Dtc interface class with signals for Qt6 migration STUB
|
||||
class Dtc : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit Dtc(QObject* parent = nullptr) : QObject(parent) {}
|
||||
~Dtc() override = default;
|
||||
|
||||
// Callback registration instead of enableNotification()
|
||||
void notifications(std::function<void(const Notification&)> callback)
|
||||
{
|
||||
m_notificationCallback = callback;
|
||||
}
|
||||
|
||||
// Trigger notification changed (for STUB testing)
|
||||
void triggerNotificationChanged(const Notification& notification, DataModification modType)
|
||||
{
|
||||
emit notificationChanged(notification, modType);
|
||||
if (m_notificationCallback)
|
||||
{
|
||||
m_notificationCallback(notification);
|
||||
}
|
||||
}
|
||||
|
||||
signals:
|
||||
void notificationChanged(const Notification& notification, DataModification modType);
|
||||
|
||||
private:
|
||||
std::function<void(const Notification&)> m_notificationCallback;
|
||||
};
|
||||
|
||||
class Ftc;
|
||||
} // namespace Interface
|
||||
} // namespace AlarmManagement
|
||||
// STUB-HEADER: Include generated file from build directory
|
||||
#include <Lts/Proxies/AlarmManagement/alm_dtc.h>
|
||||
Reference in new issue
Block a user