81 lines
2.4 KiB
C++
Executable File
81 lines
2.4 KiB
C++
Executable File
/**
|
|
**
|
|
** @RDE_HEADER@
|
|
** flm_reply_handler.h
|
|
** $Id$
|
|
** $HeadURL$
|
|
** $Author$
|
|
**
|
|
** -----------------------------------------------------------------------------------------------
|
|
**
|
|
** Hardware-Environment: Intel-PC
|
|
** Software-Environment: Windows 7, Qt 5.7. ArcGIS 100
|
|
**
|
|
** Language ........: C++ 11
|
|
**
|
|
** -----------------------------------------------------------------------------------------------
|
|
**
|
|
** Author ...........: Jörg Turla, SPD G, Tel. 3132
|
|
**
|
|
** -----------------------------------------------------------------------------------------------
|
|
**
|
|
** Notes .........:
|
|
**
|
|
** 09.05.2017, JT : First edition for use with Qt5
|
|
**
|
|
** -----------------------------------------------------------------------------------------------
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <FileManagement/flm_ftc.h>
|
|
#include <FileManagement/flm_ftc_types.h>
|
|
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
|
|
#include <QtCore/QObject>
|
|
|
|
|
|
namespace LtsUtils
|
|
{
|
|
class RequestHelper;
|
|
}
|
|
|
|
namespace PlanOverlaysPlugin
|
|
{
|
|
class FileManagementReplyHandler
|
|
: public QObject
|
|
, public FileManagement::Interface::Ftc::FileContentModifyReplyHandler
|
|
, public FileManagement::Interface::Ftc::FileContentChangeStatusReplyHandler
|
|
, public FileManagement::Interface::Ftc::FileContentRemoveReplyHandler
|
|
, public FileManagement::Interface::Ftc::GetFileContentDataReplyHandler
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit FileManagementReplyHandler( LtsUtils::RequestHelper * );
|
|
~FileManagementReplyHandler() = default;
|
|
|
|
const std::vector<uint8_t> &getContent() const { return m_content; }
|
|
|
|
protected:
|
|
|
|
// file content
|
|
void onFileContentModifyReply ( const Core::FunctionReplyObject & replyObject) override final { requestReply(replyObject); }
|
|
void onFileContentRemoveReply ( const Core::FunctionReplyObject & replyObject) override final { requestReply(replyObject); }
|
|
void onFileContentChangeStatusReply ( const Core::FunctionReplyObject & replyObject) override final { requestReply(replyObject); }
|
|
|
|
void onGetFileContentDataReply( const FileManagement::GetFileContentDataReply & replyObject) override final;
|
|
|
|
private:
|
|
|
|
void requestReply(const Core::FunctionReplyObject &replyObject);
|
|
|
|
LtsUtils::RequestHelper *m_requestHelper;
|
|
std::vector<uint8_t> m_content;
|
|
|
|
}; // FileManagementReplyHandler
|
|
|
|
} // namespace PlanOverlaysPlugin
|