Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+58
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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
|
||||
Reference in new issue
Block a user