WIP: Build fixes und EXTERNAL_DEPENDENCIES.md
This commit is contained in:
300 files changed
+983
-417
No files matched your search
@@ -3,11 +3,56 @@
|
||||
// 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 <vector>
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "LtsUtils/LtsUtilsCore/data_modification_enum.h"
|
||||
#include "mrk_marker.h"
|
||||
|
||||
namespace MarkerManagement
|
||||
{
|
||||
|
||||
namespace Interface
|
||||
{
|
||||
class Dtc;
|
||||
|
||||
// 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 markers(std::function<void(const Marker&)> callback)
|
||||
{
|
||||
m_markerCallback = callback;
|
||||
}
|
||||
|
||||
// Trigger marker changed (for STUB testing)
|
||||
void triggerMarkerChanged(const Marker& marker, DataModification modType)
|
||||
{
|
||||
emit markerChanged(marker, modType);
|
||||
if (m_markerCallback)
|
||||
{
|
||||
m_markerCallback(marker);
|
||||
}
|
||||
}
|
||||
|
||||
signals:
|
||||
void markerChanged(const Marker& marker, DataModification modType);
|
||||
|
||||
private:
|
||||
std::function<void(const Marker&)> m_markerCallback;
|
||||
};
|
||||
|
||||
class Ftc;
|
||||
|
||||
} // namespace Interface
|
||||
|
||||
} // namespace MarkerManagement
|
||||
@@ -4,6 +4,7 @@
|
||||
// Für die Migration erstellen wir minimale Typ-Definitionen
|
||||
|
||||
#include <QString>
|
||||
#include <vector>
|
||||
#include "mrkcommon_export.h"
|
||||
|
||||
namespace MarkerManagement
|
||||
@@ -12,6 +13,17 @@ namespace MarkerManagement
|
||||
// STUB: MarkerType enum
|
||||
enum class MarkerType : int { Unknown = 0, Situation = 1, Audio = 2, Video = 3 };
|
||||
|
||||
// STUB: MarkerDescription - wird durch echten DDS-Typ ersetzt (muss VOR Marker deklariert werden)
|
||||
struct MRKCOMMON_EXPORT MarkerDescription
|
||||
{
|
||||
int id = 0;
|
||||
QString name;
|
||||
MarkerType markerType() const { return MarkerType::Unknown; }
|
||||
void setMarkerType(MarkerType type) { Q_UNUSED(type); }
|
||||
std::string content() const { return ""; }
|
||||
// Weitere Felder werden bei Bedarf ergänzt
|
||||
};
|
||||
|
||||
// STUB: Marker - wird durch echten DDS-Typ ersetzt
|
||||
struct MRKCOMMON_EXPORT Marker
|
||||
{
|
||||
@@ -19,17 +31,25 @@ struct MRKCOMMON_EXPORT Marker
|
||||
QString name;
|
||||
int exerciseId = 0;
|
||||
qint64 timeStamp() const { return 0; }
|
||||
qint64 timeStampOffset() const { return 0; }
|
||||
int operatorId() const { return 0; }
|
||||
int fileContentId() const { return 0; }
|
||||
std::string note() const { return ""; }
|
||||
std::vector<MarkerDescription> descriptions() const { return {}; }
|
||||
// Weitere Felder werden bei Bedarf ergänzt
|
||||
};
|
||||
|
||||
// STUB: MarkerDescription - wird durch echten DDS-Typ ersetzt
|
||||
struct MRKCOMMON_EXPORT MarkerDescription
|
||||
// STUB: toString Funktion für MarkerType
|
||||
inline QString toString(MarkerType type)
|
||||
{
|
||||
int id = 0;
|
||||
QString name;
|
||||
MarkerType markerType() const { return MarkerType::Unknown; }
|
||||
void setMarkerType(MarkerType type) { Q_UNUSED(type); }
|
||||
// Weitere Felder werden bei Bedarf ergänzt
|
||||
};
|
||||
switch (type)
|
||||
{
|
||||
case MarkerType::Unknown: return QStringLiteral("Unknown");
|
||||
case MarkerType::Situation: return QStringLiteral("Situation");
|
||||
case MarkerType::Audio: return QStringLiteral("Audio");
|
||||
case MarkerType::Video: return QStringLiteral("Video");
|
||||
default: return QStringLiteral("Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace MarkerManagement
|
||||
Reference in new issue
Block a user