- training_area_telegrams.cpp: Fixed QJsonObject initializer syntax (Qt6 requires {{}} not ({}))
- training_area_telegrams.cpp: Fixed fromJson() methods to access m_* members directly
- training_area_telegrams.cpp: Fixed brace mismatches in multiple toJson() methods
- training_area_telegrams.h: Changed Header struct to public members for consistency
- tx_mixin.cpp: Fixed getEquipmentNumber() template for direct member access
- lts_coordinate.cpp: Added missing #include <iomanip>
- MIGRATION_STATUS.md: Added migration progress tracking document
C++17 constraint enforced due to RTI Connext DDS 7.7.0 incompatibility with C++20+
Build status: BUILD_RTI=OFF successful (0 errors, warnings only)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
72 lines
1.8 KiB
C++
Executable File
72 lines
1.8 KiB
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <PluginInterfaces/data_plugin_interface.h>
|
|
#include <ExerciseEventManagement/eem.hpp>
|
|
#include <QtCore/QVector>
|
|
#include <QtCore/QJsonObject>
|
|
|
|
#ifndef TLNDATAPLUGININTERFACE_EXPORT
|
|
# ifdef BUILD_STATIC_LIBRARIES
|
|
# define TLNDATAPLUGININTERFACE_EXPORT
|
|
# else
|
|
# if defined(MAKE_TLNDATAPLUGININTERFACE_LIB)
|
|
# define TLNDATAPLUGININTERFACE_EXPORT Q_DECL_EXPORT
|
|
# else
|
|
# define TLNDATAPLUGININTERFACE_EXPORT Q_DECL_IMPORT
|
|
# endif
|
|
# endif
|
|
#endif
|
|
|
|
namespace TimeLineManagement
|
|
{
|
|
class ForeignDataInterface;
|
|
|
|
|
|
|
|
class DataInterface : public DataPluginBase::Interface
|
|
{
|
|
public:
|
|
using DataPluginBase::Interface::Interface;
|
|
|
|
virtual std::shared_ptr<ForeignDataInterface> getForeignDataInterface() = 0;
|
|
};
|
|
|
|
|
|
class TimelineDataProviderInterface
|
|
{
|
|
public:
|
|
TimelineDataProviderInterface() = default;
|
|
virtual ~TimelineDataProviderInterface() = default;
|
|
|
|
virtual const QVector<ExerciseEventManagement::Event> &eventData() const = 0;
|
|
virtual int requestId() const = 0;
|
|
virtual void getRequestTime(qint64 &requestMin , qint64 &requestMax ) const = 0;
|
|
};
|
|
|
|
|
|
|
|
class TLNDATAPLUGININTERFACE_EXPORT ForeignDataInterface : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ForeignDataInterface() = default;
|
|
virtual ~ForeignDataInterface() = default;
|
|
|
|
virtual TimelineDataProviderInterface *requestData(qint64 from,
|
|
qint64 to,
|
|
const QVector<int> &eventTypeIds = QVector<int>(),
|
|
const QJsonObject &filter = QJsonObject()) = 0;
|
|
virtual QVector<ExerciseEventManagement::Event> liveHistory() const = 0;
|
|
virtual const QUrl eemUrl() const = 0;
|
|
|
|
Q_SIGNALS:
|
|
void liveEvent(const ExerciseEventManagement::Event &ev);
|
|
void requestedDataAvailable(TimelineDataProviderInterface *tldp);
|
|
};
|
|
|
|
|
|
}
|