56 lines
1.6 KiB
C++
Executable File
56 lines
1.6 KiB
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <Lts/Services/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:
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|