- 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>
58 lines
1.5 KiB
C++
Executable File
58 lines
1.5 KiB
C++
Executable File
/**
|
|
* Exercise object
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
#pragma once
|
|
|
|
#include "dds_handler.h"
|
|
#include "logger.h"
|
|
#include <QtCore/QObject>
|
|
#include <NotificationManagement/nom_ftc.h>
|
|
|
|
#include <Core/core_types.h>
|
|
|
|
// Generated
|
|
#include <EffectShowClient/esc_db.h>
|
|
|
|
namespace EffectShowClient
|
|
{
|
|
class MainHandler;
|
|
|
|
class ObjectOrder
|
|
: public QObject
|
|
, protected NotificationManagement::Interface::Ftc::CreateNotificationReplyHandler
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ObjectOrder(MainHandler *mainHandler, QObject *parent = nullptr);
|
|
~ObjectOrder();
|
|
|
|
Core::FunctionReplyObject createObject(const Database::EscOrder &data);
|
|
Core::FunctionReplyObject updateObject(const Database::EscOrder &data);
|
|
Core::FunctionReplyObject removeObject();
|
|
|
|
int getId() const { return m_data.id; }
|
|
const Database::EscOrder &getData() const { return m_data; }
|
|
|
|
void setOrderConfirmation(int orderConfirmation) { m_data.orderConfirmation = orderConfirmation; }
|
|
Core::FunctionReplyObject updateObject() { return updateObject(m_data); }
|
|
|
|
protected:
|
|
NGL::INGLLogger &m_logger;
|
|
// Callbackfunctions for FTC
|
|
void onCreateNotificationReply(const Core::FunctionReplyObject &replyObject) override final;
|
|
|
|
protected Q_SLOTS:
|
|
void onPublishData();
|
|
|
|
private:
|
|
void createNotificationRequest();
|
|
void getCreateNotificationRequestData(NotificationManagement::CreateNotification &data);
|
|
|
|
MainHandler *m_mainHandler;
|
|
Database::EscOrder m_data;
|
|
};
|
|
} // namespace EffectShowClient
|