Files
qt5-legatus-legacy/Lts/Services/EffectShowClient/object_order.h
T
2026-08-13 18:33:10 +02:00

59 lines
1.5 KiB
C++
Executable File

/**
* Exercise object
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include "dds_handler.h"
#include "logger.h"
#include <QObject>
#include <NotificationManagement/nom_ftc.h>
#include <DDS/Core/function_reply_object.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:
// 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;
NGL::INGLLogger &m_logger;
};
} // namespace EffectShowClient